Interface IEquipmentIntegration

All Known Implementing Classes:
NeoForgeEquipmentIntegration

public interface IEquipmentIntegration
Abstraction over the loader's equipment/accessory mod (Trinkets on Fabric, Curios on NeoForge), used to locate an equipped RFID badge on a player. Implementations return empty when the accessory mod is absent.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<net.minecraft.world.item.ItemStack>
    getEquippedStack(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.Item item)
    Finds the first stack equipped in an accessory slot whose item matches item.
    boolean
    Whether the backing accessory mod (Trinkets/Curios) is present.
  • Method Details

    • isLoaded

      boolean isLoaded()
      Whether the backing accessory mod (Trinkets/Curios) is present.
    • getEquippedStack

      Optional<net.minecraft.world.item.ItemStack> getEquippedStack(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.Item item)
      Finds the first stack equipped in an accessory slot whose item matches item.