Interface Relic

All Known Implementing Classes:
RelicImpl

public interface Relic
An item that has this capability counts as a Relic item. This is purely for interaction and other mod items should not reuse this capability.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Binds to the UUID passed in.
    default @Nullable net.minecraft.resources.ResourceLocation
    Get the advancement granted when this relic binds
    @Nullable UUID
    Gets the UUID of the person this relic is bound to, or null if a well-formed UUID could not be found
    boolean
    isRightPlayer(net.minecraft.world.entity.player.Player player)
     
    default boolean
     
    void
    tickBinding(net.minecraft.world.entity.player.Player player)
    Attempts to bind to a player, or damage them if it's not theirs
  • Field Details

    • ID

      static final net.minecraft.resources.ResourceLocation ID
  • Method Details

    • bindToUUID

      void bindToUUID(UUID uuid)
      Binds to the UUID passed in.
    • getSoulbindUUID

      @Nullable @Nullable UUID getSoulbindUUID()
      Gets the UUID of the person this relic is bound to, or null if a well-formed UUID could not be found
    • tickBinding

      void tickBinding(net.minecraft.world.entity.player.Player player)
      Attempts to bind to a player, or damage them if it's not theirs
    • getAdvancement

      @Nullable default @Nullable net.minecraft.resources.ResourceLocation getAdvancement()
      Get the advancement granted when this relic binds
    • shouldDamageWrongPlayer

      default boolean shouldDamageWrongPlayer()
    • isRightPlayer

      boolean isRightPlayer(net.minecraft.world.entity.player.Player player)