Class EBAccessoriesIntegration

java.lang.Object
com.binaris.wizardry.core.integrations.accessories.EBAccessoriesIntegration

public final class EBAccessoriesIntegration extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.Item
    getArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect)
    Creates an artifact item, using Accessories integration if available, otherwise defaults to a standard artifact item.
    static @Nullable net.minecraft.world.item.ItemStack
    getEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
    Retrieves the equipped item stack for a specific item from Accessories mod if available.
    static List<net.minecraft.world.item.ItemStack>
    getEquippedItems(net.minecraft.world.entity.player.Player player)
    Retrieves a list of all equipped items from Accessories mod if available, otherwise returns the player's hotbar and offhand items.
    static boolean
    Checks if Accessories mod is loaded.
    static boolean
    isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
    Checks if a specific item is equipped in Accessories mod if available.

    Methods inherited from class java.lang.Object

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

    • isAccessoriesLoaded

      public static boolean isAccessoriesLoaded()
      Checks if Accessories mod is loaded.
      Returns:
      true if Accessories is loaded, false otherwise
    • getArtifact

      public static net.minecraft.world.item.Item getArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect)
      Creates an artifact item, using Accessories integration if available, otherwise defaults to a standard artifact item.
      Parameters:
      rarity - the rarity of the artifact
      effect - the artifact effect
      Returns:
      the created artifact item
    • getEquippedItems

      public static List<net.minecraft.world.item.ItemStack> getEquippedItems(net.minecraft.world.entity.player.Player player)
      Retrieves a list of all equipped items from Accessories mod if available, otherwise returns the player's hotbar and offhand items.
      Parameters:
      player - the player whose equipped items are to be retrieved
      Returns:
      a list of equipped item stacks
    • isEquipped

      public static boolean isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
      Checks if a specific item is equipped in Accessories mod if available.
      Parameters:
      player - the player to check
      item - the item to check for
      Returns:
      true if the item is equipped, false otherwise
    • getEquipped

      @Nullable public static @Nullable net.minecraft.world.item.ItemStack getEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
      Retrieves the equipped item stack for a specific item from Accessories mod if available.
      Parameters:
      player - the player whose equipped item is to be retrieved
      item - the item to retrieve
      Returns:
      the equipped item stack, or null if not found