Class DestructorNetworkNode
java.lang.Object
com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode
com.refinedmods.refinedstorage.apiimpl.network.node.DestructorNetworkNode
- All Implemented Interfaces:
INetworkNodeVisitor
,ICoverable
,INetworkNode
,IComparable
,IType
,IWhitelistBlacklist
public class DestructorNetworkNode
extends NetworkNode
implements IComparable, IWhitelistBlacklist, IType, ICoverable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.refinedmods.refinedstorage.api.network.INetworkNodeVisitor
INetworkNodeVisitor.Operator
-
Field Summary
Fields inherited from class com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode
level, network, owner, pos, redstoneMode, ticks, version
Fields inherited from interface com.refinedmods.refinedstorage.blockentity.config.IType
FLUIDS, ITEMS
Fields inherited from interface com.refinedmods.refinedstorage.blockentity.config.IWhitelistBlacklist
BLACKLIST, WHITELIST
-
Constructor Summary
ConstructorDescriptionDestructorNetworkNode
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionint
net.neoforged.neoforge.items.IItemHandler
getDrops()
int
net.minecraft.resources.ResourceLocation
getId()
net.neoforged.neoforge.items.IItemHandlerModifiable
int
getType()
net.neoforged.neoforge.items.IItemHandler
int
boolean
void
read
(net.minecraft.nbt.CompoundTag tag) void
readConfiguration
(net.minecraft.nbt.CompoundTag tag) void
setCompare
(int compare) void
setPickupItem
(boolean pickupItem) void
setType
(int type) void
setWhitelistBlacklistMode
(int mode) void
update()
Updates a network node.net.minecraft.nbt.CompoundTag
write
(net.minecraft.nbt.CompoundTag tag) Writes the network node data to NBT.net.minecraft.nbt.CompoundTag
writeConfiguration
(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, onConnectedStateChange, onDirectionChanged, onDisconnected, setOwner, setRedstoneMode, setRedstonePowered, shouldRebuildGraphOnChange, visit
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.api.network.node.INetworkNode
canReceive
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
DestructorNetworkNode
public DestructorNetworkNode(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
-
-
Method Details
-
getEnergyUsage
public int getEnergyUsage()- Specified by:
getEnergyUsage
in interfaceINetworkNode
- Returns:
- the energy usage of this node
-
update
public void update()Description copied from interface:INetworkNode
Updates a network node.- Specified by:
update
in interfaceINetworkNode
- Overrides:
update
in classNetworkNode
-
getCompare
public int getCompare()- Specified by:
getCompare
in interfaceIComparable
-
setCompare
public void setCompare(int compare) - Specified by:
setCompare
in interfaceIComparable
-
getWhitelistBlacklistMode
public int getWhitelistBlacklistMode()- Specified by:
getWhitelistBlacklistMode
in interfaceIWhitelistBlacklist
-
setWhitelistBlacklistMode
public void setWhitelistBlacklistMode(int mode) - Specified by:
setWhitelistBlacklistMode
in interfaceIWhitelistBlacklist
-
read
public void read(net.minecraft.nbt.CompoundTag tag) - Overrides:
read
in classNetworkNode
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getId
in 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:INetworkNode
Writes the network node data to NBT.- Specified by:
write
in interfaceINetworkNode
- Overrides:
write
in classNetworkNode
- Parameters:
tag
- the tag- Returns:
- the written tag
-
writeConfiguration
public net.minecraft.nbt.CompoundTag writeConfiguration(net.minecraft.nbt.CompoundTag tag) - Overrides:
writeConfiguration
in classNetworkNode
-
readConfiguration
public void readConfiguration(net.minecraft.nbt.CompoundTag tag) - Overrides:
readConfiguration
in classNetworkNode
-
getUpgrades
public net.neoforged.neoforge.items.IItemHandler getUpgrades() -
getDrops
public net.neoforged.neoforge.items.IItemHandler getDrops()- Overrides:
getDrops
in classNetworkNode
-
getType
public int getType() -
setType
public void setType(int type) -
getItemFilters
public net.neoforged.neoforge.items.IItemHandlerModifiable getItemFilters()- Specified by:
getItemFilters
in interfaceIType
-
getFluidFilters
- Specified by:
getFluidFilters
in interfaceIType
-
isPickupItem
public boolean isPickupItem() -
setPickupItem
public void setPickupItem(boolean pickupItem) -
getCoverManager
- Specified by:
getCoverManager
in interfaceICoverable
-