Package vazkii.botania.api.item
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbindToUUID(UUID uuid) Binds to the UUID passed in.default @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) default booleanvoidtickBinding(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
Binds to the UUID passed in. -
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)
-