public class CleaningStationBlockEntity extends net.minecraft.tileentity.TileEntityLockable implements net.minecraft.util.ITickable, net.minecraft.inventory.ISidedInventory, ISyncable
| Modifier and Type | Field and Description |
|---|---|
float |
cleaningRotation |
float |
rotationAmount |
| Constructor and Description |
|---|
CleaningStationBlockEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction) |
boolean |
canInsertItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction) |
void |
cleanItem() |
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.inventory.Container |
createContainer(net.minecraft.entity.player.InventoryPlayer inventory,
net.minecraft.entity.player.EntityPlayer playerIn) |
net.minecraft.item.ItemStack |
decrStackSize(int index,
int count) |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
int |
getField(int id) |
int |
getFieldCount() |
java.lang.String |
getGuiID() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
float |
getRenderCleaningRotation(float particialTicks) |
int |
getSizeInventory() |
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
net.minecraft.item.ItemStack |
getStackInSlot(int index) |
int |
getStackWashTime(net.minecraft.item.ItemStack stack) |
net.minecraft.util.NonNullList |
getSyncFields(net.minecraft.util.NonNullList fields) |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
boolean |
hasCustomName() |
boolean |
hasWater() |
boolean |
isCleaning() |
static boolean |
isCleaning(net.minecraft.inventory.IInventory inventory) |
boolean |
isEmpty() |
static boolean |
isItemFuel(net.minecraft.item.ItemStack stack) |
boolean |
isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet) |
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
void |
packetDataHandler(io.netty.buffer.ByteBuf fields) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
void |
setCustomInventoryName(java.lang.String customName) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
net.minecraft.item.ItemStack stack) |
void |
update() |
void |
updateRotation() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
createUnSidedHandler, getDisplayName, getLockCode, hasCapability, isLocked, setLockCodeaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic float cleaningRotation
public float rotationAmount
public static boolean isCleaning(net.minecraft.inventory.IInventory inventory)
public static boolean isItemFuel(net.minecraft.item.ItemStack stack)
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int index)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int index,
int count)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int index,
net.minecraft.item.ItemStack stack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic void setCustomInventoryName(java.lang.String customName)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class net.minecraft.tileentity.TileEntityLockablepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class net.minecraft.tileentity.TileEntityLockablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean hasWater()
public boolean isCleaning()
public void update()
update in interface net.minecraft.util.ITickablepublic int getStackWashTime(net.minecraft.item.ItemStack stack)
public void cleanItem()
public net.minecraft.util.NonNullList getSyncFields(net.minecraft.util.NonNullList fields)
getSyncFields in interface ISyncablepublic void openInventory(net.minecraft.entity.player.EntityPlayer player)
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory(net.minecraft.entity.player.EntityPlayer player)
closeInventory in interface net.minecraft.inventory.IInventorypublic int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorypublic boolean canInsertItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction)
canInsertItem in interface net.minecraft.inventory.ISidedInventorypublic boolean isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic boolean canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction)
canExtractItem in interface net.minecraft.inventory.ISidedInventory@Nullable
public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
@Nullable
net.minecraft.util.EnumFacing facing)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraft.tileentity.TileEntityLockablepublic java.lang.String getGuiID()
getGuiID in interface net.minecraft.world.IInteractionObjectpublic net.minecraft.inventory.Container createContainer(net.minecraft.entity.player.InventoryPlayer inventory,
net.minecraft.entity.player.EntityPlayer playerIn)
createContainer in interface net.minecraft.world.IInteractionObjectpublic int getField(int id)
getField in interface net.minecraft.inventory.IInventorypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IInventorypublic net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class net.minecraft.tileentity.TileEntitypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class net.minecraft.tileentity.TileEntitypublic void onDataPacket(net.minecraft.network.NetworkManager networkManager,
net.minecraft.network.play.server.SPacketUpdateTileEntity packet)
onDataPacket in class net.minecraft.tileentity.TileEntitypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic void packetDataHandler(io.netty.buffer.ByteBuf fields)
packetDataHandler in interface ISyncablepublic void updateRotation()
public float getRenderCleaningRotation(float particialTicks)