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
  • Field Details

  • 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

      protected InWorldNetworkNodeContainer createMainContainer(T networkNode)
      Overrides:
      createMainContainer in class AbstractNetworkNodeContainerBlockEntity<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:
      setBlockState in class net.minecraft.world.level.block.entity.BlockEntity
    • setLevel

      public void setLevel(net.minecraft.world.level.Level level)
      Overrides:
      setLevel in class net.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

      public @Nullable Network getNetworkForItem()
      Specified by:
      getNetworkForItem in interface NetworkItemTargetBlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • loadAdditional

      public void loadAdditional(net.minecraft.world.level.storage.ValueInput input)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getDebugNetworkId

      public int getDebugNetworkId()
    • writeConfiguration

      public void writeConfiguration(net.minecraft.world.level.storage.ValueOutput output)
      Specified by:
      writeConfiguration in interface ConfigurationCardTarget
    • readConfiguration

      public void readConfiguration(net.minecraft.world.level.storage.ValueInput input)
      Specified by:
      readConfiguration in interface ConfigurationCardTarget
    • hasRedstoneMode

      protected boolean hasRedstoneMode()
    • getRedstoneMode

      public RedstoneMode getRedstoneMode()
    • setRedstoneMode

      public void setRedstoneMode(RedstoneMode redstoneMode)
    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class net.minecraft.world.level.block.entity.BlockEntity
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.core.component.DataComponentGetter components)
      Overrides:
      applyImplicitComponents in class net.minecraft.world.level.block.entity.BlockEntity
    • collectImplicitComponents

      protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
      Overrides:
      collectImplicitComponents in class net.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:
      getCustomName in interface net.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:
      getDisplayName in interface net.minecraft.world.Nameable
    • setPlacedBy

      public void setPlacedBy(UUID playerId)
      Specified by:
      setPlacedBy in interface PlayerAwareBlockEntity
    • getFakePlayer

      protected final net.minecraft.world.entity.player.Player getFakePlayer(net.minecraft.server.level.ServerLevel serverLevel)
    • isPlacedBy

      protected final boolean isPlacedBy(UUID playerId)
    • getUpdatePacket

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

      public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • updateDebugNetworkId

      public void updateDebugNetworkId()