public class FeederBlockEntity
extends net.minecraft.tileentity.TileEntityLockable
implements net.minecraft.util.ITickable, net.minecraft.inventory.ISidedInventory
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
customName |
int |
openAnimation |
int |
prevOpenAnimation |
| Constructor and Description |
|---|
FeederBlockEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction) |
boolean |
canFeedDinosaur(DinosaurEntity dinosaur) |
boolean |
canInsertItem(int index,
net.minecraft.item.ItemStack itemStackIn,
net.minecraft.util.EnumFacing direction) |
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 player) |
net.minecraft.item.ItemStack |
decrStackSize(int index,
int count) |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
DinosaurEntity |
getFeeding() |
int |
getField(int id) |
int |
getFieldCount() |
java.lang.String |
getGuiID() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
int |
getSizeInventory() |
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
net.minecraft.item.ItemStack |
getStackInSlot(int index) |
boolean |
hasCustomName() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
boolean |
receiveClientEvent(int id,
int type) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
void |
setCustomInventoryName(java.lang.String customName) |
void |
setFeeding(DinosaurEntity feeding) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
net.minecraft.item.ItemStack stack) |
void |
setOpen(boolean open) |
void |
update() |
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, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic int prevOpenAnimation
public int openAnimation
protected java.lang.String customName
public net.minecraft.inventory.Container createContainer(net.minecraft.entity.player.InventoryPlayer inventory,
net.minecraft.entity.player.EntityPlayer player)
createContainer in interface net.minecraft.world.IInteractionObjectpublic java.lang.String getGuiID()
getGuiID in interface net.minecraft.world.IInteractionObjectpublic 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 int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic 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 boolean isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic 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 boolean receiveClientEvent(int id,
int type)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void clear()
clear 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 void update()
update in interface net.minecraft.util.ITickablepublic void setOpen(boolean open)
public boolean canFeedDinosaur(DinosaurEntity dinosaur)
public DinosaurEntity getFeeding()
public void setFeeding(DinosaurEntity feeding)
public boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventory@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 int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorypublic boolean canInsertItem(int index,
net.minecraft.item.ItemStack itemStackIn,
net.minecraft.util.EnumFacing direction)
canInsertItem in interface net.minecraft.inventory.ISidedInventorypublic boolean canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction)
canExtractItem in interface net.minecraft.inventory.ISidedInventory