T - The subclass of TankInventoryTileEntity, will be in
most cases just the extension class.public abstract class TickingTankInventoryTileEntity<T extends TankInventoryTileEntity> extends TankInventoryTileEntity implements org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile
TickComponent that are able to tick.
And these components will contain a collection of ITickAction
that can perform specific actions depending on the condition of the TickComponent.TickComponent| Modifier and Type | Field and Description |
|---|---|
protected org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile |
tickingTileComponent |
tankSize| Constructor and Description |
|---|
TickingTankInventoryTileEntity(net.minecraft.tileentity.TileEntityType<?> type,
int inventorySize,
int stackSize,
int tankSize,
net.minecraft.fluid.Fluid acceptedFluid) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addTicker(TickComponent<T,ITickAction<T>> ticker)
Add a new ticker.
|
int |
getCurrentState()
Get the current (numerical) state.
|
abstract int |
getNewState()
Get the new (numerical) state for this tile entity.
|
java.util.List<TickComponent<T,ITickAction<T>>> |
getTickers()
Get the tickers this TileEntity has.
|
protected boolean |
hasJustWorked() |
abstract void |
onStateChanged()
What needs to happen when the (numerical) state is changed.
|
void |
read(net.minecraft.nbt.CompoundNBT data) |
void |
updateTileEntity() |
net.minecraft.nbt.CompoundNBT |
write(net.minecraft.nbt.CompoundNBT data) |
addFluidHandlerCapabilities, addItemHandlerCapabilities, createInventory, createTank, getInventory, getTank, onTankChangedaddCapabilityInternal, addCapabilitySided, afterSendUpdate, beforeSendUpdate, canInteractWith, getCapability, getNBTTagCompound, getRotation, getStoredCapabilities, getUpdateBackoffTicks, getUpdatePacket, getUpdateTag, invalidateCaps, isTicking, onDataPacket, onDirty, onLoad, onSendUpdate, onUpdateReceived, readGeneratedFieldsFromNBT, sendImmediateUpdate, sendUpdate, transformFacingForRotation, writeGeneratedFieldsToNBT, writeToItemStackaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final org.cyclops.cyclopscore.tileentity.CyclopsTileEntity.ITickingTile tickingTileComponent
public TickingTankInventoryTileEntity(net.minecraft.tileentity.TileEntityType<?> type,
int inventorySize,
int stackSize,
int tankSize,
net.minecraft.fluid.Fluid acceptedFluid)
protected int addTicker(TickComponent<T,ITickAction<T>> ticker)
ticker - The ticker to (try) run every tick.public java.util.List<TickComponent<T,ITickAction<T>>> getTickers()
public void read(net.minecraft.nbt.CompoundNBT data)
read in class TankInventoryTileEntitypublic net.minecraft.nbt.CompoundNBT write(net.minecraft.nbt.CompoundNBT data)
write in class TankInventoryTileEntitypublic void updateTileEntity()
updateTileEntity in class org.cyclops.cyclopscore.tileentity.CyclopsTileEntityprotected boolean hasJustWorked()
public abstract int getNewState()
public abstract void onStateChanged()
public int getCurrentState()