Class RBMKRodBlockEntity
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.RBMKRodBlockEntity
- All Implemented Interfaces:
IRBMKFluxReceiver,IRBMKLoadable,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,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 RBMKRodBlockEntity
extends RBMKColumnBlockEntity
implements IRBMKFluxReceiver, IRBMKLoadable, net.minecraft.world.MenuProvider
-
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>>Nested classes/interfaces inherited from interface com.hbm_m.block.entity.machines.rbmk.IRBMKFluxReceiver
IRBMKFluxReceiver.NType -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final net.minecraft.core.Direction[]doubledoublenet.minecraft.world.item.ItemStackbooleandoubledoublebooleanintFields 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
ConstructorsConstructorDescriptionRBMKRodBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanLoad(net.minecraft.world.item.ItemStack s) booleanbooleanTrue when the rod is cool enough for the autoloader to handle.booleanTrue when the rod is cool enough for manual (player/crane) handling.net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) net.minecraft.network.chat.Componentnet.minecraft.nbt.CompoundTagReturns NBT data for the RBMK console panel display.booleanvoidload(net.minecraft.nbt.CompoundTag tag) voidload(net.minecraft.world.item.ItemStack s) doublemaxHeat()voidonMelt(net.minecraft.world.level.Level level, int reduce) net.minecraft.world.item.ItemStackvoidprotected 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, RBMKRodBlockEntity be) voidunload()Methods inherited from class com.hbm_m.block.entity.machines.rbmk.RBMKColumnBlockEntity
baseTick, coolPassively, getLidState, getRenderBoundingBox, getRenderTexturePrefix, getUpdatePacket, getUpdateTag, hasLid, isLidRemovable, 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
-
fluxFastRatio
public double fluxFastRatio -
fluxQuantity
public double fluxQuantity -
lastFluxQuantity
public double lastFluxQuantity -
lastFluxRatio
public double lastFluxRatio -
hasRod
public boolean hasRod -
rodColor
public int rodColor -
moderated
public boolean moderated -
explodeOnBroken
public boolean explodeOnBroken -
fuelSlot
public net.minecraft.world.item.ItemStack fuelSlot -
FLUX_DIRS
public static final net.minecraft.core.Direction[] FLUX_DIRS
-
-
Constructor Details
-
RBMKRodBlockEntity
public RBMKRodBlockEntity(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, RBMKRodBlockEntity be) -
receiveFlux
- Specified by:
receiveFluxin interfaceIRBMKFluxReceiver
-
onMelt
public void onMelt(net.minecraft.world.level.Level level, int reduce) - Overrides:
onMeltin classRBMKColumnBlockEntity
-
coldEnoughForAutoloader
public boolean coldEnoughForAutoloader()True when the rod is cool enough for the autoloader to handle. -
coldEnoughForManual
public boolean coldEnoughForManual()True when the rod is cool enough for manual (player/crane) handling. -
getNBTForConsole
public net.minecraft.nbt.CompoundTag getNBTForConsole()Description copied from class:RBMKColumnBlockEntityReturns NBT data for the RBMK console panel display. Override in subclasses with relevant data.- Overrides:
getNBTForConsolein classRBMKColumnBlockEntity
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
canLoad
public boolean canLoad(net.minecraft.world.item.ItemStack s) - Specified by:
canLoadin interfaceIRBMKLoadable
-
load
public void load(net.minecraft.world.item.ItemStack s) - Specified by:
loadin interfaceIRBMKLoadable
-
canUnload
public boolean canUnload()- Specified by:
canUnloadin interfaceIRBMKLoadable
-
provideNext
public net.minecraft.world.item.ItemStack provideNext()- Specified by:
provideNextin interfaceIRBMKLoadable
-
unload
public void unload()- Specified by:
unloadin interfaceIRBMKLoadable
-
getRBMKType
- Overrides:
getRBMKTypein classRBMKColumnBlockEntity
-
isModerated
public boolean isModerated()- Overrides:
isModeratedin classRBMKColumnBlockEntity
-
maxHeat
public double maxHeat()- Overrides:
maxHeatin 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
-