public class TileColossalBloodChest extends TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat> implements net.minecraft.inventory.container.INamedContainerProvider, net.minecraft.tileentity.IChestLid
TileWorking.Inventory<T extends TileWorking<T,?>>| Modifier and Type | Field and Description |
|---|---|
protected static org.cyclops.cyclopscore.block.multi.ExactSizeValidator |
exactSizeValidator |
float |
lidAngle
The current angle of the lid.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
static int |
MAX_EFFICIENCY |
static org.cyclops.evilcraft.tileentity.TileColossalBloodChest.Metadata |
METADATA |
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 int |
TICKERS |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_BLOODUSAGE |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_SPEED |
INVENTORY_SIZE_UPGRADES, upgradeBehaviourtickingTileComponenttankSize| Constructor and Description |
|---|
TileColossalBloodChest()
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItemHandlerCapabilities() |
boolean |
canWork()
Check if this tile is valid and can start working.
|
static boolean |
canWork(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location)
Check if the spirit furnace on the given location is valid and can start working.
|
protected org.cyclops.cyclopscore.inventory.SimpleInventory |
createInventory(int inventorySize,
int stackSize) |
net.minecraft.inventory.container.Container |
createMenu(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
createTank(int tankSize) |
static void |
detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.vector.Vector3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
Callback for when a structure has been detected for a spirit furnace block.
|
static org.cyclops.cyclopscore.block.multi.CubeDetector |
getCubeDetector() |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
float |
getLidAngle(float partialTicks) |
int |
getNewState()
Get the new (numerical) state for this tile entity.
|
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
net.minecraft.util.math.vector.Vector3i |
getRenderOffset() |
net.minecraft.util.Direction |
getRotation() |
net.minecraft.util.math.vector.Vector3i |
getSize() |
int |
getSizeSingular() |
org.cyclops.evilcraft.tileentity.TileColossalBloodChest.Metadata |
getTileWorkingMetadata() |
protected int |
getWorkTicker() |
boolean |
isStructureComplete() |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
boolean |
receiveClientEvent(int i,
int j) |
protected void |
resetSlotHistory() |
void |
setCenter(net.minecraft.util.math.BlockPos center) |
void |
setRotation(net.minecraft.util.Direction rotation) |
void |
setSize(net.minecraft.util.math.vector.Vector3i size) |
void |
updateTileEntity() |
getBasicInventorySize, getRequiredWorkTicks, getTankTierMultiplier, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevel, getUpgradeLevels, getUpgradeType, getWorkTick, getWorkTickScaled, hasJustWorked, isVisuallyWorking, isWorking, onUpgradeSlotChanged, resetUpgradeLevels, resetWork, resetWorkaddTicker, getCurrentState, getTickers, read, writeaddFluidHandlerCapabilities, getInventory, getTank, onTankChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, getCapability, getNBTTagCompound, getStoredCapabilities, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, isTicking, onDataPacket, onDirty, onLoad, onSendUpdate, onUpdateReceived, read, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, transformFacingForRotation, writeGeneratedFieldsToNBT, writeToItemStackaddInfoToCrashReport, getBlockState, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onChunkUnloaded, onlyOpsCanSetNbt, readTileEntity, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final int SLOTS_CHEST
public static final int SLOTS
public static final int SLOT_CONTAINER
public static final int LIQUID_PER_SLOT
public static final int MAX_EFFICIENCY
public static org.cyclops.evilcraft.tileentity.TileColossalBloodChest.Metadata METADATA
public float prevLidAngle
public float lidAngle
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
public static int TICKERS
protected static final org.cyclops.cyclopscore.block.multi.ExactSizeValidator exactSizeValidator
public static org.cyclops.cyclopscore.block.multi.CubeDetector getCubeDetector()
protected void addItemHandlerCapabilities()
addItemHandlerCapabilities in class TankInventoryTileEntityprotected void resetSlotHistory()
protected org.cyclops.cyclopscore.fluid.SingleUseTank createTank(int tankSize)
createTank in class TankInventoryTileEntitypublic boolean isStructureComplete()
public int getSizeSingular()
public net.minecraft.util.math.vector.Vector3i getSize()
public void setSize(net.minecraft.util.math.vector.Vector3i size)
size - the size to setpublic org.cyclops.evilcraft.tileentity.TileColossalBloodChest.Metadata getTileWorkingMetadata()
getTileWorkingMetadata in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public boolean canWork()
TileWorkingcanWork in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public static boolean canWork(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location)
world - The world.location - The location.protected int getWorkTicker()
getWorkTicker in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public int getNewState()
TickingTankInventoryTileEntitygetNewState in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public void updateTileEntity()
updateTileEntity in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public boolean receiveClientEvent(int i,
int j)
receiveClientEvent in class net.minecraft.tileentity.TileEntityprotected org.cyclops.cyclopscore.inventory.SimpleInventory createInventory(int inventorySize,
int stackSize)
createInventory in class TileWorking<TileColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>public net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic void setCenter(net.minecraft.util.math.BlockPos center)
public void setRotation(net.minecraft.util.Direction rotation)
public net.minecraft.util.Direction getRotation()
getRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntitypublic net.minecraft.util.math.vector.Vector3i getRenderOffset()
@Nullable
public net.minecraft.inventory.container.Container createMenu(int id,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity)
createMenu in interface net.minecraft.inventory.container.IContainerProviderpublic static void detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.vector.Vector3i size,
boolean valid,
net.minecraft.util.math.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 cornerpublic net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.inventory.container.INamedContainerProviderpublic float getLidAngle(float partialTicks)
getLidAngle in interface net.minecraft.tileentity.IChestLid