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 Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    int
     
    double
     
    protected int
    0 = no lid, 1 = concrete lid, 2 = glass lid
    static final int
     
    static final int
     
    int
     
    int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RBMKColumnBlockEntity(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 Type
    Method
    Description
    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)
     
    protected void
    coolPassively(net.minecraft.world.level.Level level, int neighbors)
     
     
    int
     
    net.minecraft.nbt.CompoundTag
    Returns NBT data for the RBMK console panel display.
     
    net.minecraft.world.phys.AABB
    Expands 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 up block/rbmk/<prefix>_side and block/rbmk/<prefix>_top.
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    net.minecraft.nbt.CompoundTag
     
    boolean
     
    boolean
     
    boolean
     
    void
    load(net.minecraft.nbt.CompoundTag tag)
     
    double
     
    void
    onMelt(net.minecraft.world.level.Level level, int reduce)
     
    protected static net.minecraft.nbt.CompoundTag
    safeItemSave(net.minecraft.world.item.ItemStack stack)
     
    protected void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
     
    void
    setLidState(int state)
     
    protected void
    spawnDebris(net.minecraft.world.level.Level level, String type)
     
    protected void
    standardMelt(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, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods 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 lidState
      0 = 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

      protected void spawnDebris(net.minecraft.world.level.Level level, String type)
    • hasLid

      public boolean hasLid()
    • getLidState

      public int getLidState()
    • isLidRemovable

      public boolean isLidRemovable()
    • setLidState

      public void setLidState(int state)
    • getRBMKType

      public RBMKNeutronHandler.RBMKType getRBMKType()
    • isModerated

      public boolean isModerated()
    • getConsoleType

      public abstract RBMKColumnBlockEntity.ColumnType 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

      public String getRenderTexturePrefix()
      Returns the texture-name prefix used by the BESR to look up block/rbmk/<prefix>_side and block/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:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity