public class CampfireTileEntity extends TileEntity implements IClearable, ITickableTileEntity
pos, removed, worldINFINITE_EXTENT_AABB| コンストラクタと説明 |
|---|
CampfireTileEntity() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
addItem(ItemStack itemStackIn,
int cookTime) |
void |
clear() |
void |
dropAllItems() |
java.util.Optional<CampfireCookingRecipe> |
findMatchingRecipe(ItemStack itemStackIn) |
NonNullList<ItemStack> |
getInventory()
Returns a NonNullList
|
SUpdateTileEntityPacket |
getUpdatePacket()
Retrieves packet to send to the client whenever this Tile Entity is resynced via World.notifyBlockUpdate.
|
CompoundNBT |
getUpdateTag()
Get an NBT compound to sync to the client with SPacketChunkData, used for initial loading of the chunk or when
many blocks change at once.
|
void |
read(CompoundNBT compound) |
void |
tick() |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearObjcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilitypublic void tick()
tick インタフェース内 ITickableTileEntitypublic NonNullList<ItemStack> getInventory()
public void read(CompoundNBT compound)
read クラス内 TileEntitypublic CompoundNBT write(CompoundNBT compound)
write クラス内 TileEntity@Nullable public SUpdateTileEntityPacket getUpdatePacket()
IForgeTileEntity.onDataPacket(net.minecraft.network.NetworkManager, net.minecraft.network.play.server.SUpdateTileEntityPacket)getUpdatePacket クラス内 TileEntitypublic CompoundNBT getUpdateTag()
handleUpdateTaggetUpdateTag クラス内 TileEntitypublic java.util.Optional<CampfireCookingRecipe> findMatchingRecipe(ItemStack itemStackIn)
public boolean addItem(ItemStack itemStackIn, int cookTime)
public void clear()
clear インタフェース内 IClearablepublic void dropAllItems()