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
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()getNode(net.minecraft.core.BlockPos pos) Gets a network node from the registry at a given position.voidload(net.minecraft.nbt.CompoundTag tag) voidMarks the network node manager for saving.voidremoveNode(net.minecraft.core.BlockPos pos) Removes a node from the registry at a given position.net.minecraft.nbt.CompoundTagsave(net.minecraft.nbt.CompoundTag tag) voidsetNode(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
saveMethods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, setDirty, setDirty
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
NetworkNodeManager
public NetworkNodeManager(net.minecraft.world.level.Level level)
-
-
Method Details
-
load
public void load(net.minecraft.nbt.CompoundTag tag) - Specified by:
loadin classRSSavedData
-
save
public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag tag) - Specified by:
savein classRSSavedData
-
getNode
Description copied from interface:INetworkNodeManagerGets a network node from the registry at a given position.- Specified by:
getNodein interfaceINetworkNodeManager- 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:INetworkNodeManagerRemoves a node from the registry at a given position.- Specified by:
removeNodein interfaceINetworkNodeManager- Parameters:
pos- the position of the node
-
setNode
Description copied from interface:INetworkNodeManagerSets a node in the registry at a given position.- Specified by:
setNodein interfaceINetworkNodeManager- Parameters:
pos- the position of the nodenode- the node
-
all
- Specified by:
allin interfaceINetworkNodeManager- Returns:
- all nodes in this registry
-
markForSaving
public void markForSaving()Description copied from interface:INetworkNodeManagerMarks the network node manager for saving.- Specified by:
markForSavingin interfaceINetworkNodeManager
-