Package btw.block.tileentity
Class WickerBasketTileEntity
java.lang.Object
net.minecraft.src.TileEntity
btw.block.tileentity.BasketTileEntity
btw.block.tileentity.WickerBasketTileEntity
- All Implemented Interfaces:
TileEntityDataPacketHandler
-
Field Summary
FieldsFields inherited from class btw.block.tileentity.BasketTileEntity
closing, LID_CLOSE_RATE, LID_OPEN_RATE, lidOpenRatio, MAX_KEEP_OPEN_RANGE, prevLidOpenRatioFields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateComparatorPower(WickerBasketTileEntity tileEntity) voidOverriden in a sign to provide the text.getSlotStack(int index) booleaninsertStack(ItemStack itemStack) booleanbooleanvoidReads a tile entity from NBT.voidvoidsetSlotStack(int index, ItemStack stack) booleanvoidAllows the entity to update its state.voidwriteToNBT(NBTTagCompound tag) Writes a tile entity to NBT.Methods inherited from class btw.block.tileentity.BasketTileEntity
onFinishedClosing, receiveClientEvent, startClosingServerSideMethods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, setWorldObj, updateContainingBlockInfo, validate
-
Field Details
-
MAX_STORAGE_STACKS
public static final int MAX_STORAGE_STACKS- See Also:
-
-
Constructor Details
-
WickerBasketTileEntity
public WickerBasketTileEntity()
-
-
Method Details
-
updateEntity
public void updateEntity()Description copied from class:TileEntityAllows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.- Overrides:
updateEntityin classBasketTileEntity
-
readFromNBT
Description copied from class:TileEntityReads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
Description copied from class:TileEntityWrites a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
ejectContents
public void ejectContents()- Specified by:
ejectContentsin classBasketTileEntity
-
getDescriptionPacket
Description copied from class:TileEntityOverriden in a sign to provide the text.- Overrides:
getDescriptionPacketin classTileEntity
-
readNBTFromPacket
- Specified by:
readNBTFromPacketin interfaceTileEntityDataPacketHandler
-
shouldStartClosingServerSide
public boolean shouldStartClosingServerSide()- Specified by:
shouldStartClosingServerSidein classBasketTileEntity
-
setSlotStack
-
insertStack
-
takeLatestSlotStack
-
isBasketFull
public boolean isBasketFull() -
isBasketEmpty
public boolean isBasketEmpty() -
getSlotStack
-
calculateComparatorPower
-