Class RBMKPanelBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.hbm_m.block.entity.machines.rbmk.RBMKColumnBlockEntity
com.hbm_m.block.entity.machines.rbmk.RBMKPanelBlockEntity
- All Implemented Interfaces:
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>
Shared block entity for all RBMK panel/display blocks (gauge, indicator, lever, numitron, etc.).
Stores a linked console position and a display value.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hbm_m.block.entity.machines.rbmk.RBMKColumnBlockEntity
RBMKColumnBlockEntity.ColumnTypeNested 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 TypeFieldDescriptionintPanel-specific mode/channel index.doubleDisplay value (int) â€" interpretation depends on block type.net.minecraft.core.BlockPosPosition of the linked RBMK console, or null if not linked.Fields inherited from class com.hbm_m.block.entity.machines.rbmk.RBMKColumnBlockEntity
craneIndicator, heat, lidState, MAX_STEAM, MAX_WATER, reasimSteam, reasimWaterFields 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
ConstructorsConstructorDescriptionRBMKPanelBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidload(net.minecraft.nbt.CompoundTag tag) protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) static voidtick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RBMKPanelBlockEntity be) Methods inherited from class com.hbm_m.block.entity.machines.rbmk.RBMKColumnBlockEntity
baseTick, coolPassively, getLidState, getNBTForConsole, getRenderBoundingBox, getRenderTexturePrefix, getUpdatePacket, getUpdateTag, hasLid, isLidRemovable, isModerated, maxHeat, onMelt, safeItemSave, setLidState, spawnDebris, standardMeltMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, 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
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
linkedConsole
public net.minecraft.core.BlockPos linkedConsolePosition of the linked RBMK console, or null if not linked. -
displayValue
public double displayValueDisplay value (int) â€" interpretation depends on block type. -
channel
public int channelPanel-specific mode/channel index.
-
-
Constructor Details
-
RBMKPanelBlockEntity
public RBMKPanelBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RBMKPanelBlockEntity be) -
getRBMKType
- Overrides:
getRBMKTypein classRBMKColumnBlockEntity
-
getConsoleType
- Specified by:
getConsoleTypein classRBMKColumnBlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classRBMKColumnBlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classRBMKColumnBlockEntity
-