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 ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the type of the charge -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.index.qual.Positive intcount()static ChargedProjectileof(@NonNull ChargedProjectile.ChargeType type, @org.checkerframework.checker.index.qual.Positive int count) Creates a new charged projectile representation.@NonNull ChargedProjectile.ChargeTypetype()
-
Method Details
-
type
@NonNull ChargedProjectile.ChargeType 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 projectilecount- the amount of charges present- Returns:
- the charged projectile
- Since:
- 2.9.3
-