Class AbstractBaseNetworkNodeContainerBlockEntity<T extends com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode>
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity<T>
com.refinedmods.refinedstorage.common.support.network.AbstractBaseNetworkNodeContainerBlockEntity<T>
- All Implemented Interfaces:
ConfigurationCardTarget, NetworkItemTargetBlockEntity, PlayerAwareBlockEntity, net.minecraft.core.TypedInstance<net.minecraft.world.level.block.entity.BlockEntityType<?>>, net.minecraft.util.debug.DebugValueSource, net.minecraft.world.Nameable
- Direct Known Subclasses:
AbstractCableLikeBlockEntity, AbstractDiskContainerBlockEntity, AbstractGridBlockEntity, AutocrafterBlockEntity, AutocrafterManagerBlockEntity, AutocraftingMonitorBlockEntity, ControllerBlockEntity, DetectorBlockEntity, InterfaceBlockEntity, NetworkReceiverBlockEntity, NetworkTransmitterBlockEntity, RelayBlockEntity, SecurityManagerBlockEntity, StorageBlockBlockEntity, StorageMonitorBlockEntity, WirelessTransmitterBlockEntity
public abstract class AbstractBaseNetworkNodeContainerBlockEntity<T extends com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode>
extends AbstractNetworkNodeContainerBlockEntity<T>
implements NetworkItemTargetBlockEntity, ConfigurationCardTarget, PlayerAwareBlockEntity, net.minecraft.world.Nameable
-
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
FieldsFields inherited from class AbstractNetworkNodeContainerBlockEntity
containers, mainNetworkNodeFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBaseNetworkNodeContainerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, T networkNode) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivenessChanged(boolean newActive) protected voidapplyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) protected booleanprotected voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) protected InWorldNetworkNodeContainercreateMainContainer(T networkNode) protected booleandoesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) voiddoWork()final @Nullable net.minecraft.network.chat.Componentintfinal net.minecraft.network.chat.Componentprotected final net.minecraft.world.entity.player.PlayergetFakePlayer(net.minecraft.server.level.ServerLevel serverLevel) @Nullable Network@Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> net.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider registries) protected booleanprotected final voidinitialize(net.minecraft.server.level.ServerLevel level) protected voidinitialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) protected final booleanisPlacedBy(UUID playerId) voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) protected final net.minecraft.network.chat.ComponentoverrideName(net.minecraft.network.chat.Component defaultName) voidreadConfiguration(net.minecraft.world.level.storage.ValueInput input) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidsetBlockState(net.minecraft.world.level.block.state.BlockState newBlockState) voidprotected final voidsetCustomName(@Nullable net.minecraft.network.chat.Component customName) voidsetLevel(net.minecraft.world.level.Level level) voidsetPlacedBy(UUID playerId) voidsetRedstoneMode(RedstoneMode redstoneMode) voidupdateActiveness(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.state.properties.BooleanProperty activenessProperty) voidvoidwriteConfiguration(net.minecraft.world.level.storage.ValueOutput output) Methods 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.Nameable
getName, getPlainTextName, hasCustomNameMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags
-
Field Details
-
ticker
-
-
Constructor Details
-
AbstractBaseNetworkNodeContainerBlockEntity
protected AbstractBaseNetworkNodeContainerBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, T networkNode)
-
-
Method Details
-
createMainContainer
- Overrides:
createMainContainerin classAbstractNetworkNodeContainerBlockEntity<T extends com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode>
-
calculateActive
protected boolean calculateActive() -
updateActiveness
public void updateActiveness(net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.state.properties.BooleanProperty activenessProperty) -
activenessChanged
protected void activenessChanged(boolean newActive) -
doWork
public void doWork() -
doesBlockStateChangeWarrantNetworkNodeUpdate
protected boolean doesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState) -
setBlockState
public void setBlockState(net.minecraft.world.level.block.state.BlockState newBlockState) - Overrides:
setBlockStatein classnet.minecraft.world.level.block.entity.BlockEntity
-
setLevel
public void setLevel(net.minecraft.world.level.Level level) - Overrides:
setLevelin classnet.minecraft.world.level.block.entity.BlockEntity
-
initialize
protected final void initialize(net.minecraft.server.level.ServerLevel level) -
initialize
protected void initialize(net.minecraft.server.level.ServerLevel level, net.minecraft.core.Direction direction) -
getNetworkForItem
- Specified by:
getNetworkForItemin interfaceNetworkItemTargetBlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
loadAdditional
public void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
getDebugNetworkId
public int getDebugNetworkId() -
writeConfiguration
public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output) - Specified by:
writeConfigurationin interfaceConfigurationCardTarget
-
readConfiguration
public void readConfiguration(net.minecraft.world.level.storage.ValueInput input) - Specified by:
readConfigurationin interfaceConfigurationCardTarget
-
hasRedstoneMode
protected boolean hasRedstoneMode() -
getRedstoneMode
-
setRedstoneMode
-
setChanged
public void setChanged()- Overrides:
setChangedin classnet.minecraft.world.level.block.entity.BlockEntity
-
applyImplicitComponents
protected void applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
collectImplicitComponents
protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
setCustomName
protected final void setCustomName(@Nullable net.minecraft.network.chat.Component customName) -
getCustomName
public final @Nullable net.minecraft.network.chat.Component getCustomName()- Specified by:
getCustomNamein interfacenet.minecraft.world.Nameable
-
overrideName
protected final net.minecraft.network.chat.Component overrideName(net.minecraft.network.chat.Component defaultName) -
getDisplayName
public final net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.Nameable
-
setPlacedBy
- Specified by:
setPlacedByin interfacePlayerAwareBlockEntity
-
getFakePlayer
protected final net.minecraft.world.entity.player.Player getFakePlayer(net.minecraft.server.level.ServerLevel serverLevel) -
isPlacedBy
-
getUpdatePacket
public @Nullable net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
updateDebugNetworkId
public void updateDebugNetworkId()
-