Class PressureChamberInterfaceBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
me.desht.pneumaticcraft.common.block.entity.PressureChamberWallBlockEntity
me.desht.pneumaticcraft.common.block.entity.PressureChamberInterfaceBlockEntity
- All Implemented Interfaces:
IManoMeasurable,IGUIButtonSensitive,ILuaMethodProvider,IRedstoneControl<PressureChamberInterfaceBlockEntity>,IDescSynced,IInfoForwarder,IUpgradeHolder,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.minecraft.world.Nameable,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class PressureChamberInterfaceBlockEntity
extends PressureChamberWallBlockEntity
implements IRedstoneControl<PressureChamberInterfaceBlockEntity>, net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNested classes/interfaces inherited from class me.desht.pneumaticcraft.common.block.entity.PressureChamberWallBlockEntity
PressureChamberWallBlockEntity.PressureWallStateManagerNested classes/interfaces inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
AbstractPneumaticCraftBlockEntity.UpgradeHandlerNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatstatic final intstatic final intfloatfloatfloatFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionPressureChamberInterfaceBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnet.minecraft.world.inventory.AbstractContainerMenucreateMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler>net.minecraftforge.items.IItemHandlerGet the redstone controller object for this BEnet.minecraft.world.item.ItemStackvoidhandleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) booleanbooleanisGuiUseableByPlayer(net.minecraft.world.entity.player.Player player) voidload(net.minecraft.nbt.CompoundTag tag) Reads a block entity from NBT.voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidCalled on both server and client, before anything elseMethods inherited from class me.desht.pneumaticcraft.common.block.entity.PressureChamberWallBlockEntity
getInfoBlockEntity, getPrimaryValve, onBlockBreak, onDescUpdate, printManometerMessage, shouldRerenderChunkOnDescUpdateMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractTickingBlockEntity
tickClient, tickCommonPost, tickServerMethods inherited from class me.desht.pneumaticcraft.common.block.entity.AbstractPneumaticCraftBlockEntity
addLuaMethods, countPlayersUsing, getCachedNeighbor, getCapability, getContentsToDrop, getCurrentRecipeIdSynced, getCustomName, getDescriptionFields, getDisplayName, getHeatCap, getLuaMethodRegistry, getModelData, getName, getPeripheralType, getPosition, getRotation, getSpeedMultiplierFromUpgrades, getSpeedUsageMultiplierFromUpgrades, getUpdateTag, getUpgradeCache, getUpgradeHandler, getUpgrades, handleUpdateTag, nonNullLevel, onBlockRotated, onGuiUpdate, onLoad, onNeighborBlockUpdate, onNeighborTileUpdate, onUpgradesChanged, readFromPacket, requestModelDataUpdate, sendDescriptionPacket, serializeExtraItemData, setChanged, setCustomName, setPreserveStateOnBreak, setRemoved, shouldPreserveStateOnBreak, shouldSyncField, updateNeighbours, writeToPacketMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getTileData, getType, getUpdatePacket, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getRenderBoundingBox, onDataPacket, serializeNBTMethods inherited from interface me.desht.pneumaticcraft.common.block.entity.IRedstoneControl
getCurrentRedstonePower, getRedstoneMode, getRedstoneTabTitle, onRedstoneModeChangedMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
MAX_PROGRESS
public static final int MAX_PROGRESS- See Also:
-
INVENTORY_SIZE
public static final int INVENTORY_SIZE- See Also:
-
inputProgress
public float inputProgress -
oldInputProgress
public float oldInputProgress -
outputProgress
public float outputProgress -
oldOutputProgress
public float oldOutputProgress -
interfaceMode
-
rsController
-
exportAny
public boolean exportAny
-
-
Constructor Details
-
PressureChamberInterfaceBlockEntity
public PressureChamberInterfaceBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
clearCachedItems
public static void clearCachedItems() -
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int i, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
tickCommonPre
public void tickCommonPre()Description copied from class:AbstractTickingBlockEntityCalled on both server and client, before anything else- Overrides:
tickCommonPrein classAbstractTickingBlockEntity
-
getStackInInterface
public net.minecraft.world.item.ItemStack getStackInInterface() -
hasEnoughPressure
public boolean hasEnoughPressure() -
load
public void load(net.minecraft.nbt.CompoundTag tag) Description copied from class:PressureChamberWallBlockEntityReads a block entity from NBT.- Overrides:
loadin classPressureChamberWallBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classPressureChamberWallBlockEntity
-
isGuiUseableByPlayer
public boolean isGuiUseableByPlayer(net.minecraft.world.entity.player.Player player) - Overrides:
isGuiUseableByPlayerin classAbstractPneumaticCraftBlockEntity
-
getPrimaryInventory
public net.minecraftforge.items.IItemHandler getPrimaryInventory()- Overrides:
getPrimaryInventoryin classPressureChamberWallBlockEntity
-
handleGUIButtonPress
public void handleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) - Specified by:
handleGUIButtonPressin interfaceIGUIButtonSensitive- Overrides:
handleGUIButtonPressin classAbstractPneumaticCraftBlockEntity
-
getRedstoneController
Description copied from interface:IRedstoneControlGet the redstone controller object for this BE- Specified by:
getRedstoneControllerin interfaceIRedstoneControl<PressureChamberInterfaceBlockEntity>- Returns:
- the redstone controller
-
getInventoryCap
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventoryCap()- Overrides:
getInventoryCapin classAbstractPneumaticCraftBlockEntity
-