public class FridgeTileEntity extends InventoryTileEntity implements IFrameCounter
Constructor and Description |
---|
FridgeTileEntity() |
Modifier and Type | Method and Description |
---|---|
void |
closeFridge() |
int |
getFrame() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
boolean |
isOpenDoor()
Checks if the fridge is open.
|
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT nbt) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt) |
void |
openFridge()
Executes the fridge opening animation.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT nbt) |
void |
sendAnimation(java.lang.String str)
Updates the client with the fridge animation.
|
void |
setFrame(int frame) |
addToInventory, createMenu, getContainerSize, getContents, getCustomName, getDisplayName, getItem, getMaxStackSize, hasCustomName, isEmpty, removeItem, removeItemNoUpdate, setItem, stillValid
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPlaceItem, clearContent, startOpen, stopOpen
public void closeFridge()
public void openFridge()
public boolean isOpenDoor()
public int getFrame()
getFrame
in interface IFrameCounter
public void setFrame(int frame)
setFrame
in interface IFrameCounter
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT nbt)
load
in class InventoryTileEntity
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT nbt)
save
in class InventoryTileEntity
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public void sendAnimation(java.lang.String str)
str
- The current fridge animation.public void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity