public class TileSpiritFurnace extends TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble> implements net.minecraft.inventory.container.INamedContainerProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TileSpiritFurnace.Metadata |
TileWorking.Inventory<T extends TileWorking<T,?>>| Modifier and Type | Field and Description |
|---|---|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
static TileSpiritFurnace.Metadata |
METADATA |
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 int |
TICKERS |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_BLOODUSAGE |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_SPEED |
INVENTORY_SIZE_UPGRADES, upgradeBehaviourtickingTileComponenttankSize| Constructor and Description |
|---|
TileSpiritFurnace() |
| 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.
|
void |
caughtError()
If an error was caught while killing a spirit.
|
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.IWorldReader 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 net.minecraft.item.Item |
getAllowedCookItem()
Get the allowed cooking item for this furnace.
|
int |
getConsumeSlot()
Get the id of the infusion slot.
|
static org.cyclops.cyclopscore.block.multi.CubeDetector |
getCubeDetector() |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
net.minecraft.entity.Entity |
getEntity()
Get the entity that is contained in a box.
|
net.minecraft.util.math.vector.Vector3i |
getEntitySize()
Get the size of the box entity.
|
net.minecraft.util.math.vector.Vector3i |
getInnerSize() |
java.lang.String |
getPlayerId() |
java.lang.String |
getPlayerName() |
int[] |
getProduceSlots()
Get the ids of the result slots.
|
net.minecraft.util.math.vector.Vector3i |
getSize() |
TileSpiritFurnace.Metadata |
getTileWorkingMetadata() |
protected int |
getWorkTicker() |
boolean |
isCaughtError() |
boolean |
isForceHalt()
If the cooking is being halted because the inventory is full.
|
boolean |
isPlayer() |
boolean |
isSizeValidForEntity()
If the size is valid for the contained entity to cook.
|
void |
onItemDrop(net.minecraft.item.ItemStack itemStack) |
void |
resetWork(boolean hardReset)
Resets the ticks of the work.
|
void |
setSize(net.minecraft.util.math.vector.Vector3i size) |
protected net.minecraft.util.Direction |
transformFacingForRotation(net.minecraft.util.Direction facing) |
getBasicInventorySize, getNewState, getRequiredWorkTicks, getTankTierMultiplier, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevel, getUpgradeLevels, getUpgradeType, getWorkTick, getWorkTickScaled, hasJustWorked, isVisuallyWorking, isWorking, onStateChanged, onUpgradeSlotChanged, resetUpgradeLevels, resetWork, updateTileEntityaddTicker, getCurrentState, getTickers, read, writeaddFluidHandlerCapabilities, getInventory, getTank, onTankChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, getCapability, getNBTTagCompound, getRotation, getStoredCapabilities, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, isTicking, onDataPacket, onDirty, onLoad, onSendUpdate, onUpdateReceived, read, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, writeGeneratedFieldsToNBT, writeToItemStackaddInfoToCrashReport, getBlockState, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onChunkUnloaded, onlyOpsCanSetNbt, readTileEntity, receiveClientEvent, 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 SLOT_CONTAINER
public static final int SLOT_BOX
public static final int[] SLOTS_DROP
public static final int SLOTS
public static TileSpiritFurnace.Metadata METADATA
public static final int LIQUID_PER_SLOT
protected static final org.cyclops.cyclopscore.block.multi.MinimumSizeValidator minimumSizeValidator
public static int TICKERS
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
public static org.cyclops.cyclopscore.block.multi.CubeDetector getCubeDetector()
protected void addItemHandlerCapabilities()
addItemHandlerCapabilities in class TankInventoryTileEntityprotected org.cyclops.cyclopscore.inventory.SimpleInventory createInventory(int inventorySize,
int stackSize)
createInventory in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>protected org.cyclops.cyclopscore.fluid.SingleUseTank createTank(int tankSize)
createTank in class TankInventoryTileEntityprotected int getWorkTicker()
getWorkTicker in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public net.minecraft.entity.Entity getEntity()
public java.lang.String getPlayerId()
public java.lang.String getPlayerName()
public boolean isPlayer()
public net.minecraft.util.math.vector.Vector3i getEntitySize()
public boolean isSizeValidForEntity()
public TileSpiritFurnace.Metadata getTileWorkingMetadata()
getTileWorkingMetadata in class TileWorking<TileSpiritFurnace,org.apache.commons.lang3.mutable.MutableDouble>public boolean canWork()
TileWorkingcanWork in class TileWorking<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.IWorldReader 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 int getConsumeSlot()
public int[] getProduceSlots()
public net.minecraft.util.math.vector.Vector3i getSize()
public net.minecraft.util.math.vector.Vector3i getInnerSize()
public void setSize(net.minecraft.util.math.vector.Vector3i size)
size - the size to setpublic void onItemDrop(net.minecraft.item.ItemStack itemStack)
public void resetWork(boolean hardReset)
TileWorkingresetWork in class TileWorking<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()
protected net.minecraft.util.Direction transformFacingForRotation(net.minecraft.util.Direction facing)
transformFacingForRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntity@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 net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.inventory.container.INamedContainerProvider