java.lang.Object
studio.magemonkey.divinity.stats.items.api.ItemLoreStat<Z>
studio.magemonkey.divinity.stats.items.requirements.api.UserRequirement<Z>
Direct Known Subclasses:
DynamicUserRequirement

public abstract class UserRequirement<Z> extends ItemLoreStat<Z>
  • Constructor Details

    • UserRequirement

      public UserRequirement(@NotNull String id, @NotNull String name, @NotNull String format, @NotNull String placeholder, @NotNull String uniqueTag, @NotNull org.bukkit.persistence.PersistentDataType<?,Z> dataType)
  • Method Details

    • isDynamic

      public final boolean isDynamic()
    • getBypassPermission

      @NotNull public abstract String getBypassPermission()
    • canUse

      public boolean canUse(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack item)
    • canUse

      public abstract boolean canUse(@NotNull org.bukkit.entity.Player player, @Nullable Z value)
    • getDenyMessage

      @NotNull public abstract studio.magemonkey.codex.config.api.ILangMsg getDenyMessage(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.ItemStack src)