Class P2PTunnelAttunement

java.lang.Object
appeng.api.features.P2PTunnelAttunement

public final class P2PTunnelAttunement extends Object
A Registry for how p2p Tunnels are attuned
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for energy (i.e.
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for fluid tunnels.
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for item tunnels.
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for light tunnels.
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for ME tunnels.
    static final net.minecraft.world.level.ItemLike
    The default tunnel part for redstone tunnels.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    getAttunementTag(net.minecraft.world.level.ItemLike tunnel)
     
    static net.minecraft.world.item.ItemStack
    getTunnelPartByTriggerItem(net.minecraft.world.item.ItemStack trigger)
     
    static void
    registerAttunementApi(net.minecraft.world.level.ItemLike tunnelPart, net.neoforged.neoforge.capabilities.ItemCapability<?,Void> cap, net.minecraft.network.chat.Component description)
    Attunement based on the ability of getting a capability from the item.
    static void
    registerAttunementTag(net.minecraft.world.level.ItemLike tunnel)
    Attunement based on the standard item tag: <tunnel item namespace>:p2p_attunements/<tunnel item path>

    Methods inherited from class java.lang.Object

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

    • ME_TUNNEL

      public static final net.minecraft.world.level.ItemLike ME_TUNNEL
      The default tunnel part for ME tunnels. Use this to register additional attunement options.
    • ENERGY_TUNNEL

      public static final net.minecraft.world.level.ItemLike ENERGY_TUNNEL
      The default tunnel part for energy (i.e. Forge Energy) tunnels. Use this to register additional attunement options.
    • REDSTONE_TUNNEL

      public static final net.minecraft.world.level.ItemLike REDSTONE_TUNNEL
      The default tunnel part for redstone tunnels. Use this to register additional attunement options.
    • FLUID_TUNNEL

      public static final net.minecraft.world.level.ItemLike FLUID_TUNNEL
      The default tunnel part for fluid tunnels. Use this to register additional attunement options.
    • ITEM_TUNNEL

      public static final net.minecraft.world.level.ItemLike ITEM_TUNNEL
      The default tunnel part for item tunnels. Use this to register additional attunement options.
    • LIGHT_TUNNEL

      public static final net.minecraft.world.level.ItemLike LIGHT_TUNNEL
      The default tunnel part for light tunnels. Use this to register additional attunement options.
  • Method Details

    • getAttunementTag

      public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> getAttunementTag(net.minecraft.world.level.ItemLike tunnel)
    • registerAttunementTag

      public static void registerAttunementTag(net.minecraft.world.level.ItemLike tunnel)
      Attunement based on the standard item tag: <tunnel item namespace>:p2p_attunements/<tunnel item path>
    • registerAttunementApi

      public static void registerAttunementApi(net.minecraft.world.level.ItemLike tunnelPart, net.neoforged.neoforge.capabilities.ItemCapability<?,Void> cap, net.minecraft.network.chat.Component description)
      Attunement based on the ability of getting a capability from the item.
      Parameters:
      tunnelPart - The P2P-tunnel part item.
      description - Description for display in REI/JEI.
    • getTunnelPartByTriggerItem

      public static net.minecraft.world.item.ItemStack getTunnelPartByTriggerItem(net.minecraft.world.item.ItemStack trigger)
      Parameters:
      trigger - attunement trigger
      Returns:
      The part item for a P2P-Tunnel that should handle the given attunement, or an empty item stack.