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, stillValidclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPlaceItem, clearContent, startOpen, stopOpenpublic void closeFridge()
public void openFridge()
public boolean isOpenDoor()
public int getFrame()
getFrame in interface IFrameCounterpublic void setFrame(int frame)
setFrame in interface IFrameCounterpublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT nbt)
load in class InventoryTileEntitypublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT nbt)
save in class InventoryTileEntitypublic net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic 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