示例#1
0
 @Override
 public ArrayList<ItemStack> getFruitsOnHarvest(int gain, Random rand) {
   ArrayList<ItemStack> li = new ArrayList();
   int n = BlockCanola.getDrops(GAIN_FORTUNE_MAPPING[gain - 1], rand);
   while (n > 0) {
     int rem = Math.min(n, ItemRegistry.CANOLA.getItemInstance().getItemStackLimit());
     li.add(ItemRegistry.CANOLA.getCraftedProduct(rem));
     n -= rem;
   }
   return li;
 }
示例#2
0
 @Override
 public float getHeight(int meta) {
   return BlockCanola.getPlantHeight(METADATA_CONVERSION[meta]);
 }
示例#3
0
 @Override
 public boolean isFertile(World world, int x, int y, int z) {
   return BlockCanola.canGrowAt(world, x, y, z);
 }