Class BaseNetworkNodeContainerBlockEntity<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.BaseNetworkNodeContainerBlockEntity<T>
All Implemented Interfaces:
ConfigurationCardTarget, NetworkItemTargetBlockEntity
Direct Known Subclasses:
AbstractRedstoneModeNetworkNodeContainerBlockEntity, NetworkReceiverBlockEntity

public class BaseNetworkNodeContainerBlockEntity<T extends com.refinedmods.refinedstorage.api.network.impl.node.AbstractNetworkNode> extends AbstractNetworkNodeContainerBlockEntity<T> implements NetworkItemTargetBlockEntity, ConfigurationCardTarget
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
  • Field Summary

    Fields inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity

    containers, mainNetworkNode

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

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseNetworkNodeContainerBlockEntity(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 Type
    Method
    Description
    protected void
    activenessChanged(boolean newActive)
     
    protected void
    applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
     
    protected boolean
     
    protected void
    collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components)
     
    createMainContainer(T networkNode)
     
    protected boolean
    doesBlockStateChangeWarrantNetworkNodeUpdate(net.minecraft.world.level.block.state.BlockState oldBlockState, net.minecraft.world.level.block.state.BlockState newBlockState)
     
    void
     
    protected final net.minecraft.network.chat.Component
    getName(net.minecraft.network.chat.Component defaultName)
     
     
    void
    loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    readConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     
    void
    setBlockState(net.minecraft.world.level.block.state.BlockState newBlockState)
     
    void
    updateActiveness(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.properties.BooleanProperty activenessProperty)
     
    void
    writeConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
     

    Methods inherited from class com.refinedmods.refinedstorage.common.api.support.network.AbstractNetworkNodeContainerBlockEntity

    clearRemoved, containerInitialized, createContainerProvider, getContainerProvider, setRemoved

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

    addEntityType, applyComponents, applyComponentsFromItemStack, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setChanged, setChanged, setComponents, setLevel, triggerEvent

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.refinedmods.refinedstorage.common.api.configurationcard.ConfigurationCardTarget

    addUpgradeItem, getUpgradeItems
  • Constructor Details

    • BaseNetworkNodeContainerBlockEntity

      public BaseNetworkNodeContainerBlockEntity(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
    • getNetworkForItem

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

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • writeConfiguration

      public void writeConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      writeConfiguration in interface ConfigurationCardTarget
    • readConfiguration

      public void readConfiguration(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      readConfiguration in interface ConfigurationCardTarget
    • applyImplicitComponents

      protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput)
      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
    • getName

      protected final net.minecraft.network.chat.Component getName(net.minecraft.network.chat.Component defaultName)