Interface Trident

All Superinterfaces:
AbstractArrow, Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, Pointered, Projectile, ServerOperator, Sound.Emitter, ThrowableProjectile

public interface Trident extends AbstractArrow, ThrowableProjectile
Represents a thrown trident.
  • Method Details

    • hasGlint

      boolean hasGlint()
      Returns whether the trident has an enchanted glow. This can be separate from the underlying item having any enchantments.
      Returns:
      whether the trident has an enchanted glow
    • setGlint

      void setGlint(boolean glint)
      Sets whether the trident has an enchanted glow. This is separate from the underlying item having any enchantments.
      Parameters:
      glint - whether the trident should have an enchanted glow
    • getLoyaltyLevel

      int getLoyaltyLevel()
      Returns the loyalty level of the trident. This can be separate from the underlying item's enchantments.
      Returns:
      loyalty level of the trident
    • setLoyaltyLevel

      void setLoyaltyLevel(int loyaltyLevel)
      Sets the loyalty level of the trident. This is separate from the underlying item's enchantments.
      Parameters:
      loyaltyLevel - loyalty level
      Throws:
      IllegalArgumentException - if the loyalty level is lower than 0 or greater than 127