public class TileBloodInfuser extends TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.fluids.Fluid |
ACCEPTED_FLUID
The fluid that is accepted in the tank.
|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
static int |
SLOT_CONTAINER
The id of the fluid container drainer slot.
|
static int |
SLOT_INFUSE
The id of the infusion slot.
|
static int |
SLOT_INFUSE_RESULT
The id of the infusion result slot.
|
static int |
SLOTS
The total amount of slots in this machine.
|
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_FILLBLOODPERTICK |
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 |
|---|
TileBloodInfuser()
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.
|
int |
getConsumeSlot()
Get the id of the infusion slot.
|
int |
getProduceSlot()
Get the id of the result slot.
|
org.cyclops.cyclopscore.recipe.custom.api.IRecipe<ItemFluidStackAndTierRecipeComponent,org.cyclops.cyclopscore.recipe.custom.component.ItemStackRecipeComponent,DurationXpRecipeProperties> |
getRecipe(net.minecraft.item.ItemStack itemStack)
Get the recipe for the maximum current tier available.
|
net.minecraft.util.EnumFacing |
getRotation() |
protected int |
getWorkTicker() |
boolean |
isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack) |
protected org.cyclops.cyclopscore.fluid.SingleUseTank |
newTank(java.lang.String tankName,
int tankSize) |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
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, resetUpgradeLevels, resetWork, resetWork, setInventorySlotContentsaddTicker, getCurrentState, getTickers, readFromNBT, updateTileEntity, writeToNBTcanDrain, canFill, drain, drain, drain, drain, fill, fill, getTank, getTankInfo, isSendUpdateOnTankChanged, onSendUpdate, setSendUpdateOnTankChangedaddSlotsToSide, getInventory, getSlotsForFacecanAccess, clear, closeInventory, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getStackInSlot, hasCustomName, isSendUpdateOnInventoryChanged, isUseableByPlayer, onInventoryChanged, openInventory, removeStackFromSlot, setField, setSendUpdateOnInventoryChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, destroy, getBlock, getCapabilities, getCapability, getDescriptionPacket, getNBTTagCompound, getUpdateBackoffTicks, hasCapability, isRotatable, isTicking, onDataPacket, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, setRotatable, setRotation, shouldRefresh, writeGeneratedFieldsToNBTaddInfoToCrashReport, addMapping, canRenderBreaking, createTileEntity, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRenderInPass, updateContainingBlockInfo, validatepublic static final int SLOTS
public static final int SLOT_CONTAINER
public static final int SLOT_INFUSE
public static final int SLOT_INFUSE_RESULT
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 final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
public static final Upgrades.UpgradeEventType UPGRADEEVENT_FILLBLOODPERTICK
public net.minecraft.util.EnumFacing getRotation()
getRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected org.cyclops.cyclopscore.fluid.SingleUseTank newTank(java.lang.String tankName,
int tankSize)
newTank in class org.cyclops.cyclopscore.tileentity.TankInventoryTileEntitypublic org.cyclops.cyclopscore.recipe.custom.api.IRecipe<ItemFluidStackAndTierRecipeComponent,org.cyclops.cyclopscore.recipe.custom.component.ItemStackRecipeComponent,DurationXpRecipeProperties> getRecipe(net.minecraft.item.ItemStack itemStack)
itemStack - The input item.public boolean canConsume(net.minecraft.item.ItemStack itemStack)
WorkingTileEntitycanConsume in class WorkingTileEntity<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>itemStack - The item to check.public int getConsumeSlot()
public int getProduceSlot()
public boolean isItemValidForSlot(int slot,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventoryisItemValidForSlot in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class WorkingTileEntity<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>public boolean canWork()
WorkingTileEntitycanWork in class WorkingTileEntity<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>protected int getWorkTicker()
getWorkTicker in class WorkingTileEntity<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>