public class CookingPotTileEntity
extends net.minecraft.tileentity.TileEntity
implements net.minecraft.inventory.IInventory, net.minecraft.tileentity.ITickableTileEntity, net.minecraft.inventory.container.INamedContainerProvider
Modifier and Type | Field and Description |
---|---|
double |
fanningPoints |
double |
frame
The current animation frame.
|
net.minecraftforge.items.ItemStackHandler |
itemStacks |
int |
renderPass
Rendering only fields
|
Constructor and Description |
---|
CookingPotTileEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
canPlaceItem(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Automation.
|
boolean |
canStart() |
void |
clearContent() |
net.minecraft.inventory.container.Container |
createMenu(int id,
net.minecraft.entity.player.PlayerInventory inventory,
net.minecraft.entity.player.PlayerEntity player) |
int |
getContainerSize()
Returns the number of slots in the inventory.
|
net.minecraft.util.text.ITextComponent |
getDisplayName() |
net.minecraft.item.ItemStack |
getItem(int slotIndex)
Returns the stack in slot i.
|
int |
getMaxStackSize() |
net.minecraft.network.play.server.SUpdateTileEntityPacket |
getUpdatePacket() |
net.minecraft.nbt.CompoundNBT |
getUpdateTag() |
boolean |
isCooking() |
boolean |
isEmpty() |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT nbtTagCompound) |
void |
onDataPacket(net.minecraft.network.NetworkManager net,
net.minecraft.network.play.server.SUpdateTileEntityPacket pkt) |
void |
processCookingInteract() |
net.minecraft.item.ItemStack |
removeItem(int index,
int count) |
net.minecraft.item.ItemStack |
removeItemNoUpdate(int index) |
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT compound) |
void |
setItem(int index,
net.minecraft.item.ItemStack stack) |
void |
startCooking(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
startOpen(net.minecraft.entity.player.PlayerEntity playerIn) |
boolean |
stillValid(net.minecraft.entity.player.PlayerEntity player)
Do not give this method the name canInteractWith because it clashes with Container.
|
void |
stopOpen(net.minecraft.entity.player.PlayerEntity playerIn) |
void |
tick() |
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
public int renderPass
public net.minecraftforge.items.ItemStackHandler itemStacks
public double fanningPoints
public double frame
public int getContainerSize()
getContainerSize
in interface net.minecraft.inventory.IInventory
public boolean isEmpty()
isEmpty
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack getItem(int slotIndex)
getItem
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack removeItem(int index, int count)
removeItem
in interface net.minecraft.inventory.IInventory
public net.minecraft.item.ItemStack removeItemNoUpdate(int index)
removeItemNoUpdate
in interface net.minecraft.inventory.IInventory
public void setItem(int index, net.minecraft.item.ItemStack stack)
setItem
in interface net.minecraft.inventory.IInventory
public int getMaxStackSize()
getMaxStackSize
in interface net.minecraft.inventory.IInventory
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid
in interface net.minecraft.inventory.IInventory
public boolean canPlaceItem(int slotIndex, net.minecraft.item.ItemStack itemStack)
canPlaceItem
in interface net.minecraft.inventory.IInventory
public void startOpen(net.minecraft.entity.player.PlayerEntity playerIn)
startOpen
in interface net.minecraft.inventory.IInventory
public void stopOpen(net.minecraft.entity.player.PlayerEntity playerIn)
stopOpen
in interface net.minecraft.inventory.IInventory
public void clearContent()
clearContent
in interface net.minecraft.inventory.IClearable
public void tick()
tick
in interface net.minecraft.tileentity.ITickableTileEntity
public boolean isCooking()
public boolean canStart()
public void startCooking(net.minecraft.entity.player.ServerPlayerEntity player)
public void processCookingInteract()
public void load(net.minecraft.block.BlockState state, net.minecraft.nbt.CompoundNBT nbtTagCompound)
load
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT compound)
save
in class net.minecraft.tileentity.TileEntity
public net.minecraft.network.play.server.SUpdateTileEntityPacket getUpdatePacket()
getUpdatePacket
in class net.minecraft.tileentity.TileEntity
public net.minecraft.nbt.CompoundNBT getUpdateTag()
getUpdateTag
in class net.minecraft.tileentity.TileEntity
public void onDataPacket(net.minecraft.network.NetworkManager net, net.minecraft.network.play.server.SUpdateTileEntityPacket pkt)
onDataPacket
in interface net.minecraftforge.common.extensions.IForgeTileEntity
public net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName
in interface net.minecraft.inventory.container.INamedContainerProvider
@Nullable public net.minecraft.inventory.container.Container createMenu(int id, net.minecraft.entity.player.PlayerInventory inventory, net.minecraft.entity.player.PlayerEntity player)
createMenu
in interface net.minecraft.inventory.container.IContainerProvider