Class RBMKColumnBlockEntity
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
- 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>
- Direct Known Subclasses:
RBMKAbsorberBlockEntity,RBMKAutoloaderBlockEntity,RBMKBlankBlockEntity,RBMKBoilerBlockEntity,RBMKControlBlockEntity,RBMKCoolerBlockEntity,RBMKCraneConsoleBlockEntity,RBMKHeaterBlockEntity,RBMKLoaderBlockEntity,RBMKModeratorBlockEntity,RBMKOutgasserBlockEntity,RBMKPanelBlockEntity,RBMKReflectorBlockEntity,RBMKRodBlockEntity,RBMKStorageBlockEntity
public abstract class RBMKColumnBlockEntity
extends net.minecraft.world.level.block.entity.BlockEntity
-
Nested Class Summary
Nested ClassesNested 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 TypeFieldDescriptionintdoubleprotected int0 = no lid, 1 = concrete lid, 2 = glass lidstatic final intstatic final intintintFields 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
ConstructorsModifierConstructorDescriptionprotectedRBMKColumnBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidbaseTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RBMKColumnBlockEntity be) protected voidcoolPassively(net.minecraft.world.level.Level level, int neighbors) abstract RBMKColumnBlockEntity.ColumnTypeintnet.minecraft.nbt.CompoundTagReturns NBT data for the RBMK console panel display.net.minecraft.world.phys.AABBExpands the render bounding box to cover the full column height so the BESR isn't culled early.Returns the texture-name prefix used by the BESR to look upblock/rbmk/<prefix>_sideandblock/rbmk/<prefix>_top.net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>net.minecraft.nbt.CompoundTagbooleanhasLid()booleanbooleanvoidload(net.minecraft.nbt.CompoundTag tag) doublemaxHeat()voidonMelt(net.minecraft.world.level.Level level, int reduce) protected static net.minecraft.nbt.CompoundTagsafeItemSave(net.minecraft.world.item.ItemStack stack) protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) voidsetLidState(int state) protected voidspawnDebris(net.minecraft.world.level.Level level, String type) protected voidstandardMelt(net.minecraft.world.level.Level level, int reduce) Methods 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
-
heat
public double heat -
reasimWater
public int reasimWater -
reasimSteam
public int reasimSteam -
MAX_WATER
public static final int MAX_WATER- See Also:
-
MAX_STEAM
public static final int MAX_STEAM- See Also:
-
craneIndicator
public int craneIndicator -
lidState
protected int lidState0 = no lid, 1 = concrete lid, 2 = glass lid
-
-
Constructor Details
-
RBMKColumnBlockEntity
protected RBMKColumnBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
baseTick
protected static void baseTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RBMKColumnBlockEntity be) -
coolPassively
protected void coolPassively(net.minecraft.world.level.Level level, int neighbors) -
maxHeat
public double maxHeat() -
onMelt
public void onMelt(net.minecraft.world.level.Level level, int reduce) -
standardMelt
protected void standardMelt(net.minecraft.world.level.Level level, int reduce) -
spawnDebris
-
hasLid
public boolean hasLid() -
getLidState
public int getLidState() -
isLidRemovable
public boolean isLidRemovable() -
setLidState
public void setLidState(int state) -
getRBMKType
-
isModerated
public boolean isModerated() -
getConsoleType
-
getNBTForConsole
public net.minecraft.nbt.CompoundTag getNBTForConsole()Returns NBT data for the RBMK console panel display. Override in subclasses with relevant data. -
getRenderBoundingBox
public net.minecraft.world.phys.AABB getRenderBoundingBox()Expands the render bounding box to cover the full column height so the BESR isn't culled early. -
getRenderTexturePrefix
Returns the texture-name prefix used by the BESR to look upblock/rbmk/<prefix>_sideandblock/rbmk/<prefix>_top. Matches the texture names in the block-model JSON. Override where the block entity type doesn't map 1:1 to the ColumnType name. -
safeItemSave
protected static net.minecraft.nbt.CompoundTag safeItemSave(net.minecraft.world.item.ItemStack stack) -
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-