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
  • 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 interface INetworkNode
      Returns:
      the energy usage of this node
    • update

      public void update()
      Description copied from interface: INetworkNode
      Updates a network node.
      Specified by:
      update in interface INetworkNode
      Overrides:
      update in class NetworkNode
    • getCompare

      public int getCompare()
      Specified by:
      getCompare in interface IComparable
    • setCompare

      public void setCompare(int compare)
      Specified by:
      setCompare in interface IComparable
    • getWhitelistBlacklistMode

      public int getWhitelistBlacklistMode()
      Specified by:
      getWhitelistBlacklistMode in interface IWhitelistBlacklist
    • setWhitelistBlacklistMode

      public void setWhitelistBlacklistMode(int mode)
      Specified by:
      setWhitelistBlacklistMode in interface IWhitelistBlacklist
    • read

      public void read(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      read in class NetworkNode
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface INetworkNode
      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 interface INetworkNode
      Overrides:
      write in class NetworkNode
      Parameters:
      tag - the tag
      Returns:
      the written tag
    • writeConfiguration

      public net.minecraft.nbt.CompoundTag writeConfiguration(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      writeConfiguration in class NetworkNode
    • readConfiguration

      public void readConfiguration(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      readConfiguration in class NetworkNode
    • getUpgrades

      public net.neoforged.neoforge.items.IItemHandler getUpgrades()
    • getDrops

      public net.neoforged.neoforge.items.IItemHandler getDrops()
      Overrides:
      getDrops in class NetworkNode
    • getType

      public int getType()
      Specified by:
      getType in interface IType
    • setType

      public void setType(int type)
      Specified by:
      setType in interface IType
    • getItemFilters

      public net.neoforged.neoforge.items.IItemHandlerModifiable getItemFilters()
      Specified by:
      getItemFilters in interface IType
    • getFluidFilters

      public FluidInventory getFluidFilters()
      Specified by:
      getFluidFilters in interface IType
    • isPickupItem

      public boolean isPickupItem()
    • setPickupItem

      public void setPickupItem(boolean pickupItem)
    • getCoverManager

      public CoverManager getCoverManager()
      Specified by:
      getCoverManager in interface ICoverable