@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; }
@Override public float getHeight(int meta) { return BlockCanola.getPlantHeight(METADATA_CONVERSION[meta]); }
@Override public boolean isFertile(World world, int x, int y, int z) { return BlockCanola.canGrowAt(world, x, y, z); }