public class TileSpiritFurnace extends TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble> implements FakeWorldItemDelegator.IItemDropListener
| 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.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
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, upgradeBehavioursendUpdateOnTankChanged, tankSizeinventory, sendUpdateOnInventoryChanged, slotSides, slotSidesSize| 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 |
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 |
caughtError()
If an error was caught while killing a spirit.
|
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.
|
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.
|
Size |
getEntitySize()
Get the size of the box entity.
|
Size |
getInnerSize() |
int[] |
getProduceSlots()
Get the ids of the result slots.
|
Size |
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 |
isSizeValidForEntity()
If the size is valid for the contained entity to cook.
|
protected SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onItemDrop(net.minecraft.item.ItemStack itemStack)
When an item has been dropped in the fake world.
|
void |
resetWork(boolean hardReset)
Resets the ticks of the work.
|
void |
setSize(Size size) |
areUpgradeSlotsValidForTier, canExtractItem, canExtractItem, canInsertItem, 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, canUpdate, getCurrentState, getTickers, readFromNBT, updateTileEntity, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, closeInventory, getAccessibleSlotsFromSide, getInventory, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, 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, getRenderBoundingBox, getWorldObj, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, setWorldObj, shouldRefresh, 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
public static CubeDetector detector
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
protected SingleUseTank newTank(java.lang.String tankName, int tankSize)
newTank in class TankInventoryTileEntityprotected int getWorkTicker()
getWorkTicker in class WorkingTileEntity<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public net.minecraft.entity.EntityLiving getEntity()
public Size 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,
ILocation location)
world - The world.location - The location.public static net.minecraft.item.Item getAllowedCookItem()
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.public 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.IInventorypublic Size getSize()
public Size getInnerSize()
public void setSize(Size size)
size - the size to setpublic void onItemDrop(net.minecraft.item.ItemStack itemStack)
FakeWorldItemDelegator.IItemDropListeneronItemDrop in interface FakeWorldItemDelegator.IItemDropListeneritemStack - The dropped item.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()