Interface ChargedProjectile


@NonExtendable public interface ChargedProjectile
Represents charged projectiles which are stored in the minecraft:charged_projectiles component.
Since:
2.9.3
See Also:
  • Method Details

    • type

      Returns:
      the type of the projectile
      Since:
      2.9.3
    • count

      @org.checkerframework.checker.index.qual.Positive int count()
      Returns:
      the amount present of this projectile
      Since:
      2.9.3
    • of

      static ChargedProjectile of(ChargedProjectile.ChargeType type, @org.checkerframework.checker.index.qual.Positive int count)
      Creates a new charged projectile representation.
      Parameters:
      type - the charge type of the projectile
      count - the amount of charges present
      Returns:
      the charged projectile
      Since:
      2.9.3