public final class CropManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z) |
static ICropHandler |
getDefaultHandler() |
static boolean |
harvestCrop(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops) |
static boolean |
isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.Block block,
int meta,
int x,
int y,
int z) |
static boolean |
isSeed(net.minecraft.item.ItemStack stack) |
static boolean |
plantCrop(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z) |
static void |
registerHandler(ICropHandler cropHandler) |
static void |
setDefaultHandler(ICropHandler cropHandler) |
public static void registerHandler(ICropHandler cropHandler)
public static void setDefaultHandler(ICropHandler cropHandler)
public static ICropHandler getDefaultHandler()
public static boolean isSeed(net.minecraft.item.ItemStack stack)
public static boolean canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z)
public static boolean plantCrop(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack seed,
int x,
int y,
int z)
public static boolean isMature(net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.block.Block block,
int meta,
int x,
int y,
int z)
public static boolean harvestCrop(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.List<net.minecraft.item.ItemStack> drops)