Class RelicImpl

java.lang.Object
vazkii.botania.common.item.relic.RelicImpl
All Implemented Interfaces:
Relic

public class RelicImpl extends Object implements Relic
  • Field Summary

    Fields inherited from interface vazkii.botania.api.item.Relic

    ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    RelicImpl(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.resources.ResourceLocation advancementId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addDefaultTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> tooltip)
     
    void
    Binds to the UUID passed in.
    @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)
     
    void
    tickBinding(net.minecraft.world.entity.player.Player player)
    Attempts to bind to a player, or damage them if it's not theirs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface vazkii.botania.api.item.Relic

    shouldDamageWrongPlayer
  • Constructor Details

    • RelicImpl

      public RelicImpl(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.resources.ResourceLocation advancementId)
  • Method Details

    • bindToUUID

      public void bindToUUID(UUID uuid)
      Description copied from interface: Relic
      Binds to the UUID passed in.
      Specified by:
      bindToUUID in interface Relic
    • getSoulbindUUID

      @Nullable public @Nullable UUID getSoulbindUUID()
      Description copied from interface: Relic
      Gets the UUID of the person this relic is bound to, or null if a well-formed UUID could not be found
      Specified by:
      getSoulbindUUID in interface Relic
    • getAdvancement

      @Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancement()
      Description copied from interface: Relic
      Get the advancement granted when this relic binds
      Specified by:
      getAdvancement in interface Relic
    • tickBinding

      public void tickBinding(net.minecraft.world.entity.player.Player player)
      Description copied from interface: Relic
      Attempts to bind to a player, or damage them if it's not theirs
      Specified by:
      tickBinding in interface Relic
    • isRightPlayer

      public boolean isRightPlayer(net.minecraft.world.entity.player.Player player)
      Specified by:
      isRightPlayer in interface Relic
    • addDefaultTooltip

      public static void addDefaultTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> tooltip)