public class TileBloodInfuser extends TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt> implements net.minecraft.inventory.container.INamedContainerProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
TileBloodInfuser.Inventory |
static class |
TileBloodInfuser.Metadata |
| Modifier and Type | Field and Description |
|---|---|
static int |
LIQUID_PER_SLOT
The capacity of the tank.
|
static TileBloodInfuser.Metadata |
METADATA |
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 int |
TICKERS |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_BLOODUSAGE |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_FILLBLOODPERTICK |
static Upgrades.UpgradeEventType |
UPGRADEEVENT_SPEED |
INVENTORY_SIZE_UPGRADES, upgradeBehaviourtickingTileComponenttankSize| Constructor and Description |
|---|
TileBloodInfuser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItemHandlerCapabilities() |
void |
addXp(float xp) |
boolean |
canWork()
Check if this tile is valid and can start working.
|
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) |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
java.util.Optional<RecipeBloodInfuser> |
getRecipe(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.crafting.IRecipeType<RecipeBloodInfuser> |
getRegistry() |
net.minecraft.util.Direction |
getRotation() |
TileBloodInfuser.Metadata |
getTileWorkingMetadata() |
protected int |
getWorkTicker() |
float |
getXp() |
void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
read(net.minecraft.nbt.CompoundNBT data) |
void |
resetXp() |
void |
setXp(float xp) |
net.minecraft.nbt.CompoundNBT |
write(net.minecraft.nbt.CompoundNBT data) |
getBasicInventorySize, getNewState, getRequiredWorkTicks, getTankTierMultiplier, getUpgradeBehaviour, getUpgradeItems, getUpgradeLevel, getUpgradeLevels, getUpgradeType, getWorkTick, getWorkTickScaled, hasJustWorked, isVisuallyWorking, isWorking, onUpgradeSlotChanged, resetUpgradeLevels, resetWork, resetWork, updateTileEntityaddTicker, getCurrentState, getTickersaddFluidHandlerCapabilities, getInventory, getTank, onTankChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, getCapability, getNBTTagCompound, getStoredCapabilities, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, isTicking, onDataPacket, onDirty, onLoad, onSendUpdate, onUpdateReceived, read, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, transformFacingForRotation, 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, getCapabilities, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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 final int LIQUID_PER_SLOT
public static TileBloodInfuser.Metadata METADATA
public static int TICKERS
public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
public static final Upgrades.UpgradeEventType UPGRADEEVENT_FILLBLOODPERTICK
protected void addItemHandlerCapabilities()
addItemHandlerCapabilities in class TankInventoryTileEntityprotected org.cyclops.cyclopscore.inventory.SimpleInventory createInventory(int inventorySize,
int stackSize)
createInventory in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>public net.minecraft.nbt.CompoundNBT write(net.minecraft.nbt.CompoundNBT data)
write in class TickingTankInventoryTileEntity<TileBloodInfuser>public void read(net.minecraft.nbt.CompoundNBT data)
read in class TickingTankInventoryTileEntity<TileBloodInfuser>public net.minecraft.util.Direction getRotation()
getRotation in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected org.cyclops.cyclopscore.fluid.SingleUseTank createTank(int tankSize)
createTank in class TankInventoryTileEntitypublic java.util.Optional<RecipeBloodInfuser> getRecipe(net.minecraft.item.ItemStack itemStack)
public void onStateChanged()
TickingTankInventoryTileEntityonStateChanged in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>public TileBloodInfuser.Metadata getTileWorkingMetadata()
getTileWorkingMetadata in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>public boolean canWork()
TileWorkingcanWork in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>protected int getWorkTicker()
getWorkTicker in class TileWorking<TileBloodInfuser,org.apache.commons.lang3.mutable.MutableInt>@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.item.crafting.IRecipeType<RecipeBloodInfuser> getRegistry()
public net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.inventory.container.INamedContainerProviderpublic void setXp(float xp)
public float getXp()
public void addXp(float xp)
public void resetXp()