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$Predicate
intermediary net/minecraft/class_9657$class_9658
official cr$a
named shape
intermediary comp_2633
official b
named twinkle
intermediary comp_2634
official c
named trail
intermediary comp_2635
official d
  • Field Details Link icon

    • shape Link icon

      The field for the shape record component.
    • twinkle Link icon

      private final Optional<Boolean> twinkle
      The field for the twinkle record component.
    • trail Link icon

      private final Optional<Boolean> trail
      The field for the trail record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<FireworkExplosionPredicate.Predicate> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/predicate/item/FireworkExplosionPredicate$Predicate;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51383 Lnet/minecraft/class_9657$class_9658;field_51383:Lcom/mojang/serialization/Codec;
      official a Lcr$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • test Link icon

      public boolean test(FireworkExplosionComponent fireworkExplosionComponent)
      Specified by:
      test in interface Predicate<FireworkExplosionComponent>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/item/FireworkExplosionPredicate$Predicate;test(Lnet/minecraft/component/type/FireworkExplosionComponent;)Z
      intermediary method_59678 Lnet/minecraft/class_9657$class_9658;method_59678(Lnet/minecraft/class_9283;)Z
      official a Lcr$a;a(Lczf;)Z
    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • shape Link icon

      Returns the value of the shape record component.
      Returns:
      the value of the shape record component
    • twinkle Link icon

      public Optional<Boolean> twinkle()
      Returns the value of the twinkle record component.
      Returns:
      the value of the twinkle record component
    • trail Link icon

      public Optional<Boolean> trail()
      Returns the value of the trail record component.
      Returns:
      the value of the trail record component