public class TileFruitPod extends net.minecraft.tileentity.TileEntity implements IFruitBearer, IStreamable
| Constructor and Description |
|---|
TileFruitPod() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRipeness(float add)
Increases the ripeness of the fruit.
|
boolean |
canMature() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getDrops() |
IFruitFamily |
getFruitFamily() |
short |
getMaturity() |
net.minecraft.item.ItemStack |
getPickBlock() |
float |
getRipeness() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
void |
handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag) |
boolean |
hasFruit() |
void |
onBlockTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SPacketUpdateTileEntity pkt) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
pickFruit(net.minecraft.item.ItemStack tool)
Picks the fruits of this tile, resetting it to unripe fruits.
|
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setProperties(ITreeGenome genome,
IAlleleFruit allele,
float yield) |
boolean |
shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState) |
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic void setProperties(ITreeGenome genome, IAlleleFruit allele, float yield)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class net.minecraft.tileentity.TileEntitypublic void onBlockTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
public boolean canMature()
public short getMaturity()
public net.minecraft.item.ItemStack getPickBlock()
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getDrops()
@Nullable public net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic void handleUpdateTag(net.minecraft.nbt.NBTTagCompound tag)
handleUpdateTag in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SPacketUpdateTileEntity pkt)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic boolean hasFruit()
hasFruit in interface IFruitBearerpublic IFruitFamily getFruitFamily()
getFruitFamily in interface IFruitBearerpublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> pickFruit(net.minecraft.item.ItemStack tool)
IFruitBearerpickFruit in interface IFruitBearertool - Tool used in picking the fruits. May be empty.public float getRipeness()
getRipeness in interface IFruitBearerpublic void addRipeness(float add)
IFruitBeareraddRipeness in interface IFruitBeareradd - Float to add to the ripeness. Will truncate to valid values.public boolean shouldRefresh(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState oldState,
net.minecraft.block.state.IBlockState newState)
shouldRefresh in class net.minecraft.tileentity.TileEntitypublic void writeData(PacketBufferForestry data)
writeData in interface IStreamablepublic void readData(PacketBufferForestry data)
readData in interface IStreamable