Package vazkii.botania.common.item.relic
Class RelicImpl
java.lang.Object
vazkii.botania.common.item.relic.RelicImpl
- All Implemented Interfaces:
Relic
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRelicImpl(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.resources.ResourceLocation advancementId) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> tooltip) voidbindToUUID(UUID uuid) Binds to the UUID passed in.@Nullable net.minecraft.resources.ResourceLocationGet the advancement granted when this relic binds@Nullable UUIDGets the UUID of the person this relic is bound to, or null if a well-formed UUID could not be foundbooleanisRightPlayer(net.minecraft.world.entity.player.Player player) voidtickBinding(net.minecraft.world.entity.player.Player player) Attempts to bind to a player, or damage them if it's not theirsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Description copied from interface:RelicBinds to the UUID passed in.- Specified by:
bindToUUIDin interfaceRelic
-
getSoulbindUUID
Description copied from interface:RelicGets the UUID of the person this relic is bound to, or null if a well-formed UUID could not be found- Specified by:
getSoulbindUUIDin interfaceRelic
-
getAdvancement
@Nullable public @Nullable net.minecraft.resources.ResourceLocation getAdvancement()Description copied from interface:RelicGet the advancement granted when this relic binds- Specified by:
getAdvancementin interfaceRelic
-
tickBinding
public void tickBinding(net.minecraft.world.entity.player.Player player) Description copied from interface:RelicAttempts to bind to a player, or damage them if it's not theirs- Specified by:
tickBindingin interfaceRelic
-
isRightPlayer
public boolean isRightPlayer(net.minecraft.world.entity.player.Player player) - Specified by:
isRightPlayerin interfaceRelic
-
addDefaultTooltip
public static void addDefaultTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> tooltip)
-