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, upgradeBehaviourtickingTileComponentsendUpdateOnTankChanged, tankSizeinventory, slotSides| 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,
net.minecraft.util.BlockPos location)
Check if the spirit furnace on the given location is valid and can start working.
|
void |
closeInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
static void |
detectStructure(net.minecraft.world.World world,
net.minecraft.util.BlockPos location,
net.minecraft.util.Vec3i size,
boolean valid,
net.minecraft.util.BlockPos originCorner)
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() |
net.minecraft.util.Vec3i |
getRenderOffset() |
net.minecraft.util.Vec3i |
getSize() |
protected int |
getWorkTicker() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer) |
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
openInventory(net.minecraft.entity.player.EntityPlayer entityPlayer) |
boolean |
receiveClientEvent(int i,
int j) |
protected void |
resetSlotHistory() |
void |
setCenter(net.minecraft.util.BlockPos center) |
void |
setSize(net.minecraft.util.Vec3i size) |
void |
updateTileEntity() |
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, getCurrentState, getTickers, readFromNBT, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, getInventory, getSlotsForFacecanAccess, clear, getCapability, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCapability, hasCustomName, isSendUpdateOnInventoryChanged, onInventoryChanged, removeStackFromSlot, setField, setSendUpdateOnInventoryChangedafterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getDescriptionPacket, getNBTTagCompound, getRotation, getUpdateBackoffTicks, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, addMapping, canRenderBreaking, createAndLoadEntity, deserializeNBT, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getWorld, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, restrictNBTCopy, serializeNBT, setPos, setWorldObj, 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 org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>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 net.minecraft.util.Vec3i getSize()
public void setSize(net.minecraft.util.Vec3i 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,
net.minecraft.util.BlockPos 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()
updateTileEntity in class TickingTankInventoryTileEntity<TileColossalBloodChest>public boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntitypublic void openInventory(net.minecraft.entity.player.EntityPlayer entityPlayer)
openInventory in interface net.minecraft.inventory.IInventoryopenInventory in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic void closeInventory(net.minecraft.entity.player.EntityPlayer entityPlayer)
closeInventory in interface net.minecraft.inventory.IInventorycloseInventory in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer entityPlayer)
isUseableByPlayer in interface net.minecraft.inventory.IInventoryisUseableByPlayer in class org.cyclops.cyclopscore.tileentity.InventoryTileEntityBasepublic net.minecraft.util.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in class net.minecraft.tileentity.TileEntitypublic void setCenter(net.minecraft.util.BlockPos center)
public net.minecraft.util.Vec3i getRenderOffset()
public static void detectStructure(net.minecraft.world.World world,
net.minecraft.util.BlockPos location,
net.minecraft.util.Vec3i size,
boolean valid,
net.minecraft.util.BlockPos originCorner)
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.originCorner - The origin corner