Package net.minecraft.predicate.item
Record Class FireworkExplosionPredicate.Predicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.item.FireworkExplosionPredicate.Predicate
- Record Components:
shape-twinkle-trail-
- All Implemented Interfaces:
Predicate<FireworkExplosionComponent>
- Enclosing class:
FireworkExplosionPredicate
public static record FireworkExplosionPredicate.Predicate(Optional<FireworkExplosionComponent.Type> shape, Optional<Boolean> twinkle, Optional<Boolean> trail)
extends Record
implements Predicate<FireworkExplosionComponent>
- Mappings:
Namespace Name named net/minecraft/predicate/item/FireworkExplosionPredicate$Predicateintermediary net/minecraft/class_9657$class_9658official co$anamed shapeintermediary comp_2633official bnamed twinkleintermediary comp_2634official cnamed trailintermediary comp_2635official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FireworkExplosionPredicate.Predicate> private final Optional<FireworkExplosionComponent.Type> The field for theshaperecord component.The field for thetrailrecord component.The field for thetwinklerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.shape()Returns the value of theshaperecord component.booleantest(FireworkExplosionComponent fireworkExplosionComponent) final StringtoString()Returns a string representation of this record class.trail()Returns the value of thetrailrecord component.twinkle()Returns the value of thetwinklerecord component.
-
Field Details
-
shape
The field for theshaperecord component. -
twinkle
The field for thetwinklerecord component. -
trail
The field for thetrailrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/item/FireworkExplosionPredicate$Predicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51383Lnet/minecraft/class_9657$class_9658;field_51383:Lcom/mojang/serialization/Codec;official aLco$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Predicate
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<FireworkExplosionComponent>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/item/FireworkExplosionPredicate$Predicate;test(Lnet/minecraft/component/type/FireworkExplosionComponent;)Zintermediary method_59678Lnet/minecraft/class_9657$class_9658;method_59678(Lnet/minecraft/class_9283;)Zofficial aLco$a;a(Lcxl;)Z
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-
twinkle
Returns the value of thetwinklerecord component.- Returns:
- the value of the
twinklerecord component
-
trail
Returns the value of thetrailrecord component.- Returns:
- the value of the
trailrecord component
-