Class RelayBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
com.refinedmods.refinedstorage.common.networking.RelayBlockEntity
- All Implemented Interfaces:
ConfigurationCardTarget, NetworkItemTargetBlockEntity, ExtendedMenuProvider<ResourceContainerData>, NetworkNodeExtendedMenuProvider<ResourceContainerData>, NetworkNodeMenuProvider, PlayerAwareBlockEntity, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable
public class RelayBlockEntity
extends AbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
implements NetworkNodeExtendedMenuProvider<ResourceContainerData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T> -
Field Summary
Fields inherited from class AbstractBaseNetworkNodeContainerBlockEntity
tickerFields inherited from class AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNodeFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsConstructorDescriptionRelayBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivenessChanged(boolean newActive) protected InWorldNetworkNodeContainercreateMainContainer(com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode networkNode) @Nullable net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) protected booleandoesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) voiddoWork()net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ResourceContainerData> net.minecraft.network.chat.ComponentgetName()protected voidinitialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) voidreadConfiguration(net.minecraft.world.level.storage.ValueInput input) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidwriteConfiguration(net.minecraft.world.level.storage.ValueOutput output) Methods inherited from class AbstractBaseNetworkNodeContainerBlockEntity
applyImplicitComponents, calculateActive, collectImplicitComponents, getCustomName, getDebugNetworkId, getDisplayName, getFakePlayer, getNetworkForItem, getRedstoneMode, getUpdatePacket, getUpdateTag, hasRedstoneMode, initialize, isPlacedBy, overrideName, setBlockState, setChanged, setCustomName, setLevel, setPlacedBy, setRedstoneMode, updateActiveness, updateDebugNetworkIdMethods inherited from class AbstractNetworkNodeContainerBlockEntity
clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemovedMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setChanged, setComponents, triggerEvent, typeHolderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationCardTarget
addUpgrade, getUpgradesMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayNameMethods inherited from interface net.minecraft.world.Nameable
getPlainTextName, hasCustomNameMethods inherited from interface NetworkNodeMenuProvider
canOpen, getContainerProviderMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags
-
Constructor Details
-
RelayBlockEntity
public RelayBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
doWork
public void doWork()- Overrides:
doWorkin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
activenessChanged
protected void activenessChanged(boolean newActive) - Overrides:
activenessChangedin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
createMainContainer
protected InWorldNetworkNodeContainer createMainContainer(com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode networkNode) - Overrides:
createMainContainerin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
getMenuData
- Specified by:
getMenuDatain interfaceExtendedMenuProvider<ResourceContainerData>
-
getMenuCodec
public net.minecraft.network.codec.StreamEncoder<net.minecraft.network.RegistryFriendlyByteBuf, ResourceContainerData> getMenuCodec()- Specified by:
getMenuCodecin interfaceExtendedMenuProvider<ResourceContainerData>
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable
-
createMenu
public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
initialize
protected void initialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) - Overrides:
initializein classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
loadAdditional
public void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
writeConfiguration
public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output) - Specified by:
writeConfigurationin interfaceConfigurationCardTarget- Overrides:
writeConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
readConfiguration
public void readConfiguration(net.minecraft.world.level.storage.ValueInput input) - Specified by:
readConfigurationin interfaceConfigurationCardTarget- Overrides:
readConfigurationin classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-
doesBlockStateChangeWarrantNetworkNodeUpdate
protected boolean doesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) - Overrides:
doesBlockStateChangeWarrantNetworkNodeUpdatein classAbstractBaseNetworkNodeContainerBlockEntity<com.refinedmods.refinedstorage.api.network.impl.node.relay.RelayInputNetworkNode>
-