Class DiskDriveNetworkNode
java.lang.Object
com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode
com.refinedmods.refinedstorage.apiimpl.network.node.diskdrive.DiskDriveNetworkNode
- All Implemented Interfaces:
INetworkNodeVisitor,INetworkNode,IStorageDiskContainerContext,IStorageProvider,IAccessType,IComparable,IPrioritizable,IType,IWhitelistBlacklist
public class DiskDriveNetworkNode
extends NetworkNode
implements IStorageProvider, IComparable, IWhitelistBlacklist, IPrioritizable, IType, IAccessType, IStorageDiskContainerContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.refinedmods.refinedstorage.api.network.INetworkNodeVisitor
INetworkNodeVisitor.Operator -
Field Summary
FieldsFields inherited from class com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode
level, network, owner, pos, redstoneMode, ticks, versionFields inherited from interface com.refinedmods.refinedstorage.blockentity.config.IType
FLUIDS, ITEMSFields inherited from interface com.refinedmods.refinedstorage.blockentity.config.IWhitelistBlacklist
BLACKLIST, WHITELIST -
Constructor Summary
ConstructorsConstructorDescriptionDiskDriveNetworkNode(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFluidStorages(List<IStorage<net.neoforged.neoforge.fluids.FluidStack>> storages) voidaddItemStorages(List<IStorage<net.minecraft.world.item.ItemStack>> storages) intnet.neoforged.neoforge.items.IItemHandlergetDisks()net.neoforged.neoforge.items.IItemHandlergetDrops()intnet.minecraft.resources.ResourceLocationgetId()net.neoforged.neoforge.items.IItemHandlerModifiableintintgetType()intvoidonConnectedStateChange(INetwork network, boolean state, ConnectivityStateChangeCause cause) voidread(net.minecraft.nbt.CompoundTag tag) voidreadConfiguration(net.minecraft.nbt.CompoundTag tag) voidsetAccessType(AccessType value) voidsetCompare(int compare) voidsetPriority(int priority) voidsetType(int type) voidsetWhitelistBlacklistMode(int mode) voidupdate()Updates a network node.net.minecraft.nbt.CompoundTagwrite(net.minecraft.nbt.CompoundTag tag) Writes the network node data to NBT.net.minecraft.nbt.CompoundTagwriteConfiguration(net.minecraft.nbt.CompoundTag tag) Methods inherited from class com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode
canConduct, canUpdate, getDirection, getFacingBlockEntity, getItemStack, getLevel, getNetwork, getOwner, getPos, getRedstoneMode, getUpdateThrottleActiveToInactive, getUpdateThrottleInactiveToActive, isActive, markDirty, onConnected, onDirectionChanged, onDisconnected, setOwner, setRedstoneMode, setRedstonePowered, shouldRebuildGraphOnChange, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.refinedmods.refinedstorage.api.network.node.INetworkNode
canReceive
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
DiskDriveNetworkNode
public DiskDriveNetworkNode(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
-
-
Method Details
-
getItemDisks
-
getFluidDisks
-
getEnergyUsage
public int getEnergyUsage()- Specified by:
getEnergyUsagein interfaceINetworkNode- Returns:
- the energy usage of this node
-
update
public void update()Description copied from interface:INetworkNodeUpdates a network node.- Specified by:
updatein interfaceINetworkNode- Overrides:
updatein classNetworkNode
-
onConnectedStateChange
public void onConnectedStateChange(INetwork network, boolean state, ConnectivityStateChangeCause cause) - Overrides:
onConnectedStateChangein classNetworkNode
-
addItemStorages
- Specified by:
addItemStoragesin interfaceIStorageProvider- Parameters:
storages- the item storages
-
addFluidStorages
- Specified by:
addFluidStoragesin interfaceIStorageProvider- Parameters:
storages- the fluid storages
-
read
public void read(net.minecraft.nbt.CompoundTag tag) - Overrides:
readin classNetworkNode
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfaceINetworkNode- Returns:
- the id of this node as specified in
INetworkNodeRegistry
-
write
public net.minecraft.nbt.CompoundTag write(net.minecraft.nbt.CompoundTag tag) Description copied from interface:INetworkNodeWrites the network node data to NBT.- Specified by:
writein interfaceINetworkNode- Overrides:
writein classNetworkNode- Parameters:
tag- the tag- Returns:
- the written tag
-
writeConfiguration
public net.minecraft.nbt.CompoundTag writeConfiguration(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeConfigurationin classNetworkNode
-
readConfiguration
public void readConfiguration(net.minecraft.nbt.CompoundTag tag) - Overrides:
readConfigurationin classNetworkNode
-
getCompare
public int getCompare()- Specified by:
getComparein interfaceIComparable
-
setCompare
public void setCompare(int compare) - Specified by:
setComparein interfaceIComparable
-
getWhitelistBlacklistMode
public int getWhitelistBlacklistMode()- Specified by:
getWhitelistBlacklistModein interfaceIWhitelistBlacklist
-
setWhitelistBlacklistMode
public void setWhitelistBlacklistMode(int mode) - Specified by:
setWhitelistBlacklistModein interfaceIWhitelistBlacklist
-
getAccessType
- Specified by:
getAccessTypein interfaceIAccessType- Specified by:
getAccessTypein interfaceIStorageDiskContainerContext- Returns:
- the access type
-
setAccessType
- Specified by:
setAccessTypein interfaceIAccessType
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceIPrioritizable
-
setPriority
public void setPriority(int priority) - Specified by:
setPriorityin interfaceIPrioritizable
-
getDiskState
-
getDisks
public net.neoforged.neoforge.items.IItemHandler getDisks() -
getType
public int getType() -
setType
public void setType(int type) -
getItemFilters
public net.neoforged.neoforge.items.IItemHandlerModifiable getItemFilters()- Specified by:
getItemFiltersin interfaceIType
-
getFluidFilters
- Specified by:
getFluidFiltersin interfaceIType
-
getDrops
public net.neoforged.neoforge.items.IItemHandler getDrops()- Overrides:
getDropsin classNetworkNode
-