Interface ChargedProjectile


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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Represents the type of the charge
  • Method Summary

    Modifier and Type
    Method
    Description
    @org.checkerframework.checker.index.qual.Positive int
     
    of(@NonNull ChargedProjectile.ChargeType type, @org.checkerframework.checker.index.qual.Positive int count)
    Creates a new charged projectile representation.
     
  • 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(@NonNull 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