public class TileSpiritFurnace extends TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.fluids.Fluid |
ACCEPTED_FLUID
The fluid that is accepted in the tank.
|
static org.cyclops.cyclopscore.block.multi.CubeDetector |
detector
The multiblock structure detector for this furnace.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
protected static org.cyclops.cyclopscore.block.multi.MinimumSizeValidator |
minimumSizeValidator |
static int |
SLOT_BOX
The id of the box slot.
|
static int |
SLOT_CONTAINER
The id of the fluid container drainer slot.
|
static int |
SLOTS
The total amount of slots in this machine.
|
static int[] |
SLOTS_DROP
The id of the drops slot.
|
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 |
|---|
TileSpiritFurnace()
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 |
canExtractItem(int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side) |
boolean |
canInsertItem(int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side) |
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.
|
void |
caughtError()
If an error was caught while killing a spirit.
|
static void |
detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i size,
boolean valid,
net.minecraft.util.math.BlockPos originCorner)
Callback for when a structure has been detected for a spirit furnace block.
|
static net.minecraft.item.Item |
getAllowedCookItem()
Get the allowed cooking item for this furnace.
|
int |
getConsumeSlot()
Get the id of the infusion slot.
|
net.minecraft.entity.EntityLiving |
getEntity()
Get the entity that is contained in a box.
|
net.minecraft.util.math.Vec3i |
getEntitySize()
Get the size of the box entity.
|
net.minecraft.util.math.Vec3i |
getInnerSize() |
java.lang.String |
getPlayerId() |
java.lang.String |
getPlayerName() |
int[] |
getProduceSlots()
Get the ids of the result slots.
|
net.minecraft.util.math.Vec3i |
getSize() |
protected int |
getWorkTicker() |
boolean |
isCaughtError() |
boolean |
isForceHalt()
If the cooking is being halted because the inventory is full.
|
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
boolean |
isPlayer() |
boolean |
isSizeValidForEntity()
If the size is valid for the contained entity to cook.
|
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onItemDrop(net.minecraft.item.ItemStack itemStack) |
void |
resetWork(boolean hardReset)
Resets the ticks of the work.
|
void |
setSize(net.minecraft.util.math.Vec3i size) |
protected net.minecraft.util.EnumFacing |
transformFacingForRotation(net.minecraft.util.EnumFacing facing) |
areUpgradeSlotsValidForTier, canExtractItem, canInsertItem, getRequiredTierForSlot, getTankTierMultiplier, getTier, getUpgradeLevel, getUpgradeType, isUpgradeSlotEnabled, onUpgradeSlotChanged, resetTierdecrStackSize, getBasicInventorySize, getNewState, getRequiredWorkTicks, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevels, getUpgrades, getWorkTick, getWorkTickScaled, isUpgradeSlot, isVisuallyWorking, isWorking, onStateChanged, resetUpgradeLevels, resetWork, setInventorySlotContentsaddTicker, getCurrentState, getTickers, readFromNBT, updateTileEntity, writeToNBTdrain, drain, fill, getTank, isSendUpdateOnTankChanged, isUpdateInventoryHashOnTankContentsChanged, newTank, onSendUpdate, onTankChanged, setSendUpdateOnTankChangedaddSlotsToSide, getInventory, getSlotsForFaceaddInventoryStateCapability, canAccess, canInteractWith, clear, closeInventory, getDisplayName, getField, getFieldCount, getInventoryHash, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isEmpty, isSendUpdateOnInventoryChanged, isUsableByPlayer, markDirty, onInventoryChanged, openInventory, removeStackFromSlot, setField, setSendUpdateOnInventoryChanged, updateInventoryHashaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, destroy, getBlock, getCapabilities, getCapability, getNBTTagCompound, getRotation, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, mirror, onChunkUnload, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int SLOT_CONTAINER
public static final int SLOT_BOX
public static final int[] SLOTS_DROP
public static final int SLOTS
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
protected static final org.cyclops.cyclopscore.block.multi.MinimumSizeValidator minimumSizeValidator
public static org.cyclops.cyclopscore.block.multi.CubeDetector detector
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
protected org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntityprotected int getWorkTicker()
getWorkTicker in class WorkingTileEntity<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public net.minecraft.entity.EntityLiving getEntity()
public java.lang.String getPlayerId()
public java.lang.String getPlayerName()
public boolean isPlayer()
public net.minecraft.util.math.Vec3i getEntitySize()
public boolean isSizeValidForEntity()
public boolean canWork()
WorkingTileEntitycanWork in class WorkingTileEntity<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public static boolean canWork(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location)
world - The world.location - The location.public static net.minecraft.item.Item getAllowedCookItem()
public static void detectStructure(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location,
net.minecraft.util.math.Vec3i 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 boolean canConsume(net.minecraft.item.ItemStack itemStack)
WorkingTileEntitycanConsume in class WorkingTileEntity<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>itemStack - The item to check.public int getConsumeSlot()
public int[] getProduceSlots()
public boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public net.minecraft.util.math.Vec3i getSize()
public net.minecraft.util.math.Vec3i getInnerSize()
public void setSize(net.minecraft.util.math.Vec3i size)
size - the size to setpublic void onItemDrop(net.minecraft.item.ItemStack itemStack)
public void resetWork(boolean hardReset)
WorkingTileEntityresetWork in class WorkingTileEntity<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>hardReset - If the tick and required tick should also be set to zero.public boolean isForceHalt()
public boolean isCaughtError()
public void caughtError()
public boolean canInsertItem(int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side)
canInsertItem in interface net.minecraft.inventory.ISidedInventorycanInsertItem in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public boolean canExtractItem(int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side)
canExtractItem in interface net.minecraft.inventory.ISidedInventorycanExtractItem in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>protected net.minecraft.util.EnumFacing transformFacingForRotation(net.minecraft.util.EnumFacing facing)
transformFacingForRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntity