Class NetworkNodeManager

java.lang.Object
net.minecraft.world.level.saveddata.SavedData
com.refinedmods.refinedstorage.apiimpl.util.RSSavedData
com.refinedmods.refinedstorage.apiimpl.network.NetworkNodeManager
All Implemented Interfaces:
INetworkNodeManager

public class NetworkNodeManager extends RSSavedData implements INetworkNodeManager
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData

    net.minecraft.world.level.saveddata.SavedData.Factory<T extends net.minecraft.world.level.saveddata.SavedData>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NetworkNodeManager(net.minecraft.world.level.Level level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
     
    getNode(net.minecraft.core.BlockPos pos)
    Gets a network node from the registry at a given position.
    void
    load(net.minecraft.nbt.CompoundTag tag)
     
    void
    Marks the network node manager for saving.
    void
    removeNode(net.minecraft.core.BlockPos pos)
    Removes a node from the registry at a given position.
    net.minecraft.nbt.CompoundTag
    save(net.minecraft.nbt.CompoundTag tag)
     
    void
    setNode(net.minecraft.core.BlockPos pos, INetworkNode node)
    Sets a node in the registry at a given position.

    Methods inherited from class com.refinedmods.refinedstorage.apiimpl.util.RSSavedData

    save

    Methods inherited from class net.minecraft.world.level.saveddata.SavedData

    isDirty, setDirty, setDirty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • NetworkNodeManager

      public NetworkNodeManager(net.minecraft.world.level.Level level)
  • Method Details

    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      load in class RSSavedData
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag)
      Specified by:
      save in class RSSavedData
    • getNode

      @Nullable public INetworkNode getNode(net.minecraft.core.BlockPos pos)
      Description copied from interface: INetworkNodeManager
      Gets a network node from the registry at a given position.
      Specified by:
      getNode in interface INetworkNodeManager
      Parameters:
      pos - the position of the node
      Returns:
      the network node at the given position, or null if no network node was found
    • removeNode

      public void removeNode(net.minecraft.core.BlockPos pos)
      Description copied from interface: INetworkNodeManager
      Removes a node from the registry at a given position.
      Specified by:
      removeNode in interface INetworkNodeManager
      Parameters:
      pos - the position of the node
    • setNode

      public void setNode(net.minecraft.core.BlockPos pos, INetworkNode node)
      Description copied from interface: INetworkNodeManager
      Sets a node in the registry at a given position.
      Specified by:
      setNode in interface INetworkNodeManager
      Parameters:
      pos - the position of the node
      node - the node
    • all

      public Collection<INetworkNode> all()
      Specified by:
      all in interface INetworkNodeManager
      Returns:
      all nodes in this registry
    • markForSaving

      public void markForSaving()
      Description copied from interface: INetworkNodeManager
      Marks the network node manager for saving.
      Specified by:
      markForSaving in interface INetworkNodeManager