Interface ArtifactIntegration

All Known Implementing Classes:
AccessoriesArtifactImpl, AccessoriesIntegration, TrinketsArtifactImpl, TrinketsIntegration, VanillaArtifactIntegration

public interface ArtifactIntegration
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item
    createArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect)
    Creates an artifact item base on the artifact dependency if loaded.
    List<net.minecraft.world.item.ItemStack>
    getEquippedArtifacts(net.minecraft.world.entity.player.Player player)
    Retrieves a list of all equipped items from the artifact dependency if loaded.
    boolean
    isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
    Checks if a specific item is equipped in the artifact dependency if loaded.
    boolean
    Check if the Artifact dependency is loaded.
  • Method Details

    • isLoaded

      boolean isLoaded()
      Check if the Artifact dependency is loaded.
      Returns:
      true if it's loaded, false otherwise
    • createArtifact

      net.minecraft.world.item.Item createArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect)
      Creates an artifact item base on the artifact dependency if loaded.
      Parameters:
      rarity - the rarity of the artifact item
      effect - the artifact effect (event quick access)
      Returns:
      the created artifact item
    • getEquippedArtifacts

      List<net.minecraft.world.item.ItemStack> getEquippedArtifacts(net.minecraft.world.entity.player.Player player)
      Retrieves a list of all equipped items from the artifact dependency if loaded.
      Parameters:
      player - the player whose equipped items are to be retrieved
      Returns:
      a list of equipped item stacks
    • isEquipped

      boolean isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item)
      Checks if a specific item is equipped in the artifact dependency if loaded.
      Parameters:
      player - the player to check
      item - the item to check for
      Returns:
      true if the item is equipped, false otherwise