public enum CropHandlerReeds extends java.lang.Enum<CropHandlerReeds> implements ICropHandler
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HEIGHT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
Check if the item can be planted.
|
boolean |
harvestCrop(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
Harvest the crop.
|
boolean |
isMature(net.minecraft.world.IBlockAccess access,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos)
Check if a crop is mature and can be harvested.
|
boolean |
isSeed(net.minecraft.item.ItemStack stack)
Check if an item is a seed.
|
boolean |
plantCrop(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
Plant the item in the block.
|
static CropHandlerReeds |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CropHandlerReeds[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CropHandlerReeds INSTANCE
public static final int MAX_HEIGHT
public static CropHandlerReeds[] values()
for (CropHandlerReeds c : CropHandlerReeds.values()) System.out.println(c);
public static CropHandlerReeds valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isSeed(net.minecraft.item.ItemStack stack)
ICropHandlerisSeed in interface ICropHandlerpublic boolean canSustainPlant(net.minecraft.world.World world,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
ICropHandlercanSustainPlant in interface ICropHandlerpublic boolean plantCrop(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack seed,
net.minecraft.util.math.BlockPos pos)
ICropHandlerplantCrop in interface ICropHandlerpublic boolean isMature(net.minecraft.world.IBlockAccess access,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos)
ICropHandlerisMature in interface ICropHandlerpublic boolean harvestCrop(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> drops)
ICropHandlerharvestCrop in interface ICropHandlerdrops - a list to return the harvest's drops.