public class TileColossalBloodChest extends TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.fluids.Fluid |
ACCEPTED_FLUID
The fluid that is accepted in the tank.
|
static CubeDetector |
detector
The multiblock structure detector for this furnace.
|
float |
lidAngle
The current angle of the lid.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
static int |
MAX_EFFICIENCY |
float |
prevLidAngle
The previous angle of the lid.
|
static int |
SLOT_CONTAINER
The id of the fluid container slot.
|
static int |
SLOTS
The total amount of slots.
|
static int |
SLOTS_CHEST
The amount of slots in the chest.
|
static java.lang.String |
TANKNAME
The name of the tank, used for NBT storage.
|
static int |
TICKS_PER_LIQUID
The amount of ticks per mB the tank can accept per tick.
|
static Upgrades.UpgradeEventType |
UPGRADEEVENT_BLOODUSAGE |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_SPEED |
UPGRADE_ITEMINVENTORY_SIZE_UPGRADES, UPGRADE_EFFICIENCY, UPGRADE_SPEED, UPGRADE_TIER1, UPGRADE_TIER2, UPGRADE_TIER3, upgradeBehavioursendUpdateOnTankChanged, tankSizeinventory, sendUpdateOnInventoryChanged, slotSides, slotSidesSize| Constructor and Description |
|---|
TileColossalBloodChest()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConsume(net.minecraft.item.ItemStack itemStack)
Check if the given item can be infused.
|
boolean |
canWork()
Check if this tile is valid and can start working.
|
static boolean |
canWork(net.minecraft.world.World world,
ILocation location)
Check if the spirit furnace on the given location is valid and can start working.
|
void |
closeInventory() |
static void |
detectStructure(net.minecraft.world.World world,
ILocation location,
Size size,
boolean valid)
Callback for when a structure has been detected for a spirit furnace block.
|
int |
getNewState()
Get the new (numerical) state for this tile entity.
|
net.minecraft.util.AxisAlignedBB |
getRenderBoundingBox() |
ILocation |
getRenderOffset() |
Size |
getSize() |
protected int |
getWorkTicker() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer) |
protected SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
openInventory() |
boolean |
receiveClientEvent(int i,
int j) |
protected void |
resetSlotHistory() |
void |
setCenter(ILocation center) |
void |
setSize(Size size) |
void |
updateTileEntity()
Override this method instead of
EvilCraftTileEntity.updateEntity(). |
areUpgradeSlotsValidForTier, canExtractItem, canExtractItem, canInsertItem, canInsertItem, getRequiredTierForSlot, getTankTierMultiplier, getTier, getUpgradeLevel, getUpgradeType, isUpgradeSlotEnabled, onUpgradeSlotChanged, resetTierdecrStackSize, getBasicInventorySize, getRequiredWorkTicks, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevels, getUpgrades, getWorkTick, getWorkTickScaled, isUpgradeSlot, isVisuallyWorking, isWorking, resetUpgradeLevels, resetWork, resetWork, setInventorySlotContentsaddTicker, canUpdate, getCurrentState, getTickers, readFromNBT, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, getAccessibleSlotsFromSide, getInventory, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isSendUpdateOnInventoryChanged, onInventoryChanged, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTileValid, onDataPacket, onLoad, onUpdateReceived, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, updateEntityaddMapping, createAndLoadEntity, func_145828_a, getBlockMetadata, getBlockType, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int SLOTS_CHEST
public static final int SLOTS
public static final int SLOT_CONTAINER
public static java.lang.String TANKNAME
public static final int LIQUID_PER_SLOT
public static final int TICKS_PER_LIQUID
public static final net.minecraftforge.fluids.Fluid ACCEPTED_FLUID
public static final int MAX_EFFICIENCY
public float prevLidAngle
public float lidAngle
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
public static CubeDetector detector
protected void resetSlotHistory()
protected SingleUseTank newTank(java.lang.String tankName, int tankSize)
newTank in class TankInventoryTileEntitypublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
public boolean canConsume(net.minecraft.item.ItemStack itemStack)
WorkingTileEntitycanConsume in class WorkingTileEntity<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>itemStack - The item to check.public Size getSize()
public void setSize(Size size)
size - the size to setpublic boolean canWork()
WorkingTileEntitycanWork in class WorkingTileEntity<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public static boolean canWork(net.minecraft.world.World world,
ILocation location)
world - The world.location - The location.protected int getWorkTicker()
getWorkTicker in class WorkingTileEntity<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public int getNewState()
TickingTankInventoryTileEntitygetNewState in class WorkingTileEntity<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class WorkingTileEntity<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public void updateTileEntity()
EvilCraftTileEntityEvilCraftTileEntity.updateEntity().
This method is called each tick.updateTileEntity in class TickingTankInventoryTileEntity<TileColossalBloodChest>public boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void openInventory()
openInventory in interface net.minecraft.inventory.IInventoryopenInventory in class InventoryTileEntitypublic void closeInventory()
closeInventory in interface net.minecraft.inventory.IInventorycloseInventory in class InventoryTileEntitypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventoryisUseableByPlayer in class InventoryTileEntitypublic net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic void setCenter(ILocation center)
public ILocation getRenderOffset()
public static void detectStructure(net.minecraft.world.World world,
ILocation location,
Size size,
boolean valid)
world - The world.location - The location of one block of the structure.size - The size of the structure.valid - If the structure is being validated(/created), otherwise invalidated.