public class CultivatorBlockEntity extends MachineBaseBlockEntity implements TemperatureControl, ISyncable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUTRIENTS |
customName, processTime, totalProcessTime| Constructor and Description |
|---|
CultivatorBlockEntity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int slotID,
net.minecraft.item.ItemStack itemstack,
net.minecraft.util.EnumFacing side) |
protected boolean |
canProcess(int process) |
net.minecraft.inventory.Container |
createContainer(net.minecraft.entity.player.InventoryPlayer playerInventory,
net.minecraft.entity.player.EntityPlayer playerIn) |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
net.minecraftforge.items.IItemHandler |
getCapabilityHandler() |
Dinosaur |
getDinosaur() |
DinosaurEntity |
getDinosaurEntity() |
int |
getField(int id) |
int |
getFieldCount() |
java.lang.String |
getGuiID() |
protected int[] |
getInputs() |
protected int[] |
getInputs(int process) |
int |
getLipids() |
protected int |
getMainOutput(int process) |
int |
getMaxNutrients() |
int |
getMinerals() |
java.lang.String |
getName() |
protected int[] |
getOutputs() |
protected int |
getProcess(int slot) |
protected int |
getProcessCount() |
int |
getProximates() |
protected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getSlots() |
protected int |
getStackProcessTime(net.minecraft.item.ItemStack stack) |
net.minecraft.util.NonNullList |
getSyncFields(net.minecraft.util.NonNullList fields) |
int |
getTemperature(int index) |
int |
getTemperatureCount() |
net.minecraft.network.play.server.SPacketUpdateTileEntity |
getUpdatePacket() |
int |
getVitamins() |
int |
getWaterLevel() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack) |
protected void |
onSlotUpdate() |
void |
packetDataHandler(io.netty.buffer.ByteBuf fields) |
protected void |
processItem(int process) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
void |
setField(int id,
int value) |
protected void |
setSlots(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> slot) |
void |
setTemperature(int index,
int value) |
void |
update() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
canInsertItem, clear, closeInventory, decreaseStackSize, decrStackSize, getInventoryStackLimit, getOutputSlot, getSizeInventory, getSlotsForFace, getStackInSlot, getUpdateTag, hasCustomName, hasOutputSlot, isProcessing, isProcessing, isUsableByPlayer, mergeStack, onDataPacket, openInventory, removeStackFromSlot, setCustomInventoryName, setInventorySlotContents, shouldResetProgresscreateUnSidedHandler, 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, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int MAX_NUTRIENTS
protected int getProcess(int slot)
getProcess in class MachineBaseBlockEntityprotected boolean canProcess(int process)
canProcess in class MachineBaseBlockEntitypublic void packetDataHandler(io.netty.buffer.ByteBuf fields)
packetDataHandler in interface ISyncablepacketDataHandler in class MachineBaseBlockEntityprotected void processItem(int process)
processItem in class MachineBaseBlockEntitypublic void update()
update in interface net.minecraft.util.ITickableupdate in class MachineBaseBlockEntityprotected void onSlotUpdate()
onSlotUpdate in class MachineBaseBlockEntitypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in class MachineBaseBlockEntitypublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class MachineBaseBlockEntityprotected int getMainOutput(int process)
getMainOutput in class MachineBaseBlockEntityprotected int getStackProcessTime(net.minecraft.item.ItemStack stack)
getStackProcessTime in class MachineBaseBlockEntityprotected int getProcessCount()
getProcessCount in class MachineBaseBlockEntityprotected int[] getInputs()
getInputs in class MachineBaseBlockEntityprotected int[] getInputs(int process)
getInputs in class MachineBaseBlockEntityprotected int[] getOutputs()
getOutputs in class MachineBaseBlockEntitypublic DinosaurEntity getDinosaurEntity()
public net.minecraft.util.NonNullList getSyncFields(net.minecraft.util.NonNullList fields)
getSyncFields in interface ISyncablegetSyncFields in class MachineBaseBlockEntitypublic net.minecraft.inventory.Container createContainer(net.minecraft.entity.player.InventoryPlayer playerInventory,
net.minecraft.entity.player.EntityPlayer playerIn)
createContainer in interface net.minecraft.world.IInteractionObjectcreateContainer in class MachineBaseBlockEntitypublic java.lang.String getGuiID()
getGuiID in interface net.minecraft.world.IInteractionObjectgetGuiID in class MachineBaseBlockEntitypublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablegetName in class MachineBaseBlockEntitypublic int getWaterLevel()
public int getMaxNutrients()
public int getProximates()
public int getMinerals()
public int getVitamins()
public int getLipids()
public int getField(int id)
getField in interface net.minecraft.inventory.IInventorygetField in class MachineBaseBlockEntitypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorysetField in class MachineBaseBlockEntitypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorygetFieldCount in class MachineBaseBlockEntitypublic Dinosaur getDinosaur()
public void setTemperature(int index,
int value)
setTemperature in interface TemperatureControlpublic int getTemperature(int index)
getTemperature in interface TemperatureControlpublic int getTemperatureCount()
getTemperatureCount in interface TemperatureControlpublic boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventoryisEmpty in class MachineBaseBlockEntitypublic boolean canExtractItem(int slotID,
net.minecraft.item.ItemStack itemstack,
net.minecraft.util.EnumFacing side)
canExtractItem in interface net.minecraft.inventory.ISidedInventorycanExtractItem in class MachineBaseBlockEntitypublic boolean isItemValidForSlot(int slotID,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class MachineBaseBlockEntityprotected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getSlots()
getSlots in class MachineBaseBlockEntityprotected void setSlots(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> slot)
setSlots in class MachineBaseBlockEntitypublic net.minecraft.network.play.server.SPacketUpdateTileEntity getUpdatePacket()
getUpdatePacket in class MachineBaseBlockEntity@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 MachineBaseBlockEntitypublic net.minecraftforge.items.IItemHandler getCapabilityHandler()