public class TileEntityChargingStation extends TileEntityPneumaticBase implements IRedstoneControl<TileEntityChargingStation>, ICamouflageableTE, net.minecraft.inventory.container.INamedContainerProvider
TileEntityBase.UpgradeHandler| Modifier and Type | Field and Description |
|---|---|
static int |
CHARGE_INVENTORY_INDEX |
boolean |
charging |
float |
chargingItemPressure |
boolean |
discharging |
boolean |
upgradeOnly |
airHandler| Constructor and Description |
|---|
TileEntityChargingStation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectPneumatic(net.minecraft.util.Direction side)
Checks if the given side of this TE can be pneumatically connected to.
|
void |
clearRemoved() |
net.minecraft.inventory.container.Container |
createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity) |
net.minecraft.block.BlockState |
getCamouflage()
Get the camouflage state; the blockstate which will be used to render this tile entity's block.
|
ChargeableItemHandler |
getChargeableInventory() |
net.minecraft.item.ItemStack |
getChargingStack() |
net.minecraft.item.ItemStack |
getChargingStackSynced() |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
getInventoryCap() |
net.minecraftforge.items.IItemHandler |
getPrimaryInventory() |
RedstoneController<TileEntityChargingStation> |
getRedstoneController()
Get the redstone controller object for this TE
|
net.minecraft.util.math.AxisAlignedBB |
getRenderBoundingBox() |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
void |
load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag) |
void |
onUpgradesChanged()
Called when a machine's upgrades have changed in any way.
|
void |
readFromPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
net.minecraft.nbt.CompoundNBT |
save(net.minecraft.nbt.CompoundNBT tag) |
void |
serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
Get any extra data to be serialized onto a dropped item stack.
|
void |
setCamouflage(net.minecraft.block.BlockState state)
Set the camouflage for the tile entity.
|
void |
setRemoved() |
protected boolean |
shouldRerenderChunkOnDescUpdate() |
void |
tick() |
void |
writeToPacket(net.minecraft.nbt.CompoundNBT tag)
Encoded into the description packet.
|
addAir, addLuaMethods, forceLeak, getCapability, getCriticalPressure, getDangerPressure, getDefaultVolume, getPressure, handleUpdateTag, hasNoConnectedAirHandlers, initializeHullAirHandlerClient, initializeHullAirHandlers, onBlockRotated, onFirstServerTick, onNeighborBlockUpdatecountPlayersUsing, getApplicableUpgrades, getCachedNeighbor, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeAcceptorTranslationKey, getUpgradeCache, getUpgradeHandler, getUpgrades, isGuiUseableByPlayer, onDescUpdate, onGuiUpdate, onNeighborTileUpdate, requestModelDataUpdate, sendDescriptionPacket, setChanged, setCustomName, setPreserveStateOnBreak, shouldPreserveStateOnBreak, shouldSyncField, updateNeighboursclearCache, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentRedstonePower, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedgetStackForState, readCamo, syncToClient, writeCamogetDisplayNamepublic static final int CHARGE_INVENTORY_INDEX
public float chargingItemPressure
public boolean charging
public boolean discharging
public boolean upgradeOnly
@Nonnull public net.minecraft.item.ItemStack getChargingStack()
@Nonnull public net.minecraft.item.ItemStack getChargingStackSynced()
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class TileEntityPneumaticBasepublic boolean canConnectPneumatic(net.minecraft.util.Direction side)
TileEntityPneumaticBasecanConnectPneumatic in class TileEntityPneumaticBaseside - the side to checkpublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class TileEntityBasepublic net.minecraftforge.items.IItemHandler getPrimaryInventory()
getPrimaryInventory in class TileEntityBasepublic net.minecraft.util.math.AxisAlignedBB getRenderBoundingBox()
getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeTileEntitypublic ChargeableItemHandler getChargeableInventory()
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()
getInventoryCap in class TileEntityBasepublic void load(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT tag)
load in class TileEntityPneumaticBasepublic net.minecraft.nbt.CompoundNBT save(net.minecraft.nbt.CompoundNBT tag)
save in class TileEntityPneumaticBasepublic void serializeExtraItemData(net.minecraft.nbt.CompoundNBT blockEntityTag,
boolean preserveState)
TileEntityBaseTileEntity.load(BlockState, CompoundNBT) method) when the itemblock is next placed.serializeExtraItemData in class TileEntityBaseblockEntityTag - the existing "BlockEntityTag" subtag to add data topreserveState - true when dropped with a wrench, false when broken with a pickaxe etc.public void writeToPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase.save(CompoundNBT)
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.writeToPacket in interface IDescSyncedwriteToPacket in class TileEntityPneumaticBasetag - NBT tagpublic void readFromPacket(net.minecraft.nbt.CompoundNBT tag)
TileEntityBaseTileEntityBase.load(BlockState, CompoundNBT).
Prefer to use @DescSynced where possible - use this either for complex fields not handled by @DescSynced,
or for non-ticking tile entities.readFromPacket in interface IDescSyncedreadFromPacket in class TileEntityPneumaticBasetag - NBT tagpublic void onUpgradesChanged()
TileEntityBaseonUpgradesChanged in interface IUpgradeHolderonUpgradesChanged in class TileEntityPneumaticBasepublic RedstoneController<TileEntityChargingStation> getRedstoneController()
IRedstoneControlgetRedstoneController in interface IRedstoneControl<TileEntityChargingStation>protected boolean shouldRerenderChunkOnDescUpdate()
shouldRerenderChunkOnDescUpdate in class TileEntityBasepublic net.minecraft.block.BlockState getCamouflage()
ICamouflageableTEgetCamouflage in interface ICamouflageableTEpublic void setCamouflage(net.minecraft.block.BlockState state)
ICamouflageableTEsetCamouflage in interface ICamouflageableTEstate - the camo block statepublic void setRemoved()
setRemoved in class TileEntityPneumaticBasepublic void clearRemoved()
clearRemoved in class net.minecraft.tileentity.TileEntity@Nullable
public net.minecraft.inventory.container.Container createMenu(int i,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.entity.player.PlayerEntity playerEntity)
createMenu in interface net.minecraft.inventory.container.IContainerProvider