public class FarmableAgingCrop extends java.lang.Object implements IFarmable
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.block.properties.IProperty<java.lang.Integer> |
ageProperty |
protected net.minecraft.block.Block |
cropBlock |
protected net.minecraft.item.ItemStack |
germling |
protected int |
minHarvestAge |
protected net.minecraft.item.ItemStack[] |
products |
protected java.lang.Integer |
replantAge |
| Constructor and Description |
|---|
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge) |
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
java.lang.Integer replantAge) |
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack[] products,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge) |
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack[] products,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
java.lang.Integer replantAge) |
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack product,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge) |
FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack product,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
java.lang.Integer replantAge) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(IFarmableInfo info) |
ICrop |
getCropAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
protected net.minecraft.block.state.IBlockState |
getReplantState(net.minecraft.block.state.IBlockState blockState) |
boolean |
isGermling(net.minecraft.item.ItemStack itemstack) |
boolean |
isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState) |
boolean |
isWindfall(net.minecraft.item.ItemStack itemstack) |
boolean |
plantSaplingAt(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Plants a sapling by manipulating the world.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSaplingAtprotected final net.minecraft.item.ItemStack germling
protected final net.minecraft.block.Block cropBlock
protected final net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty
protected final int minHarvestAge
@Nullable protected final java.lang.Integer replantAge
protected final net.minecraft.item.ItemStack[] products
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge)
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
@Nullable
java.lang.Integer replantAge)
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack product,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge)
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack product,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
@Nullable
java.lang.Integer replantAge)
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack[] products,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge)
public FarmableAgingCrop(net.minecraft.item.ItemStack germling,
net.minecraft.block.Block cropBlock,
net.minecraft.item.ItemStack[] products,
net.minecraft.block.properties.IProperty<java.lang.Integer> ageProperty,
int minHarvestAge,
@Nullable
java.lang.Integer replantAge)
public boolean isSaplingAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState blockState)
isSaplingAt in interface IFarmable@Nullable public ICrop getCropAt(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState blockState)
@Nullable protected net.minecraft.block.state.IBlockState getReplantState(net.minecraft.block.state.IBlockState blockState)
public boolean isGermling(net.minecraft.item.ItemStack itemstack)
isGermling in interface IFarmablepublic void addInformation(IFarmableInfo info)
addInformation in interface IFarmablepublic boolean plantSaplingAt(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
IFarmableIFarmLogic should have verified the given location as valid. Called by the IFarmHousing
which handles resources.plantSaplingAt in interface IFarmablepublic boolean isWindfall(net.minecraft.item.ItemStack itemstack)
isWindfall in interface IFarmable