Record Class DataComponentPredicate.Fireworks

java.lang.Object
java.lang.Record
net.minestom.server.instance.block.predicate.DataComponentPredicate.Fireworks
Record Components:
explosions - Predicates to match against the object's firework explosions, or null to allow any
flightDuration - The allowed range of flight duration, or null to allow any
All Implemented Interfaces:
Predicate<DataComponent.Holder>, DataComponentPredicate, DataComponentPredicate.Registered
Enclosing interface:
DataComponentPredicate

public static record DataComponentPredicate.Fireworks(@Nullable CollectionPredicate<FireworkExplosion, DataComponentPredicate.FireworkExplosionPredicate> explosions, Range.Int flightDuration) extends Record implements DataComponentPredicate.Registered
Tests the firework explosions and flight duration in the DataComponents.FIREWORKS component.