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, upgradeBehaviourtickingTileComponentsendUpdateOnTankChanged, tankSize| 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,
net.minecraft.util.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.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.
|
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.Vec3i |
getEntitySize()
Get the size of the box entity.
|
net.minecraft.util.Vec3i |
getInnerSize() |
java.lang.String |
getPlayerId() |
java.lang.String |
getPlayerName() |
int[] |
getProduceSlots()
Get the ids of the result slots.
|
net.minecraft.util.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)
When an item has been dropped in the fake world.
|
void |
resetWork(boolean hardReset)
Resets the ticks of the work.
|
void |
setSize(net.minecraft.util.Vec3i 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, getCurrentState, getTickers, readFromNBT, updateTileEntity, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, clear, closeInventory, getCommandSenderName, getDisplayName, getField, getFieldCount, getInventory, getInventoryStackLimit, getSizeInventory, getSlotsForFace, getStackInSlot, getStackInSlotOnClosing, hasCustomName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, 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, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, receiveClientEvent, restrictNBTCopy, setPos, setWorldObj, 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 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.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.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.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 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.Vec3i getSize()
public net.minecraft.util.Vec3i getInnerSize()
public void setSize(net.minecraft.util.Vec3i 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()