Package net.minecraft

Record Class class_9657.class_9658

java.lang.Object
java.lang.Record
net.minecraft.class_9657.class_9658
Record Components:
b -
c -
d -
All Implemented Interfaces:
Predicate<FireworkExplosionComponent>
Enclosing class:
class_9657

public static record class_9657.class_9658(Optional<FireworkExplosionComponent.Type> b, Optional<Boolean> c, Optional<Boolean> d) extends Record implements Predicate<FireworkExplosionComponent>
Mappings:
Namespace Name
named net/minecraft/class_9657$class_9658
intermediary net/minecraft/class_9657$class_9658
official cm$a
named b
intermediary comp_2633
official b
named c
intermediary comp_2634
official c
named d
intermediary comp_2635
official d
  • Field Details

    • b

      The field for the b record component.
    • c

      private final Optional<Boolean> c
      The field for the c record component.
    • d

      private final Optional<Boolean> d
      The field for the d record component.
    • field_51383

      public static final com.mojang.serialization.Codec<class_9657.class_9658> field_51383
      Mappings:
      Namespace Name Mixin selector
      named field_51383 Lnet/minecraft/class_9657$class_9658;field_51383:Lcom/mojang/serialization/Codec;
      intermediary field_51383 Lnet/minecraft/class_9657$class_9658;field_51383:Lcom/mojang/serialization/Codec;
      official a Lcm$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • test

      public boolean test(FireworkExplosionComponent fireworkExplosionComponent)
      Specified by:
      test in interface Predicate<FireworkExplosionComponent>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/class_9657$class_9658;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 Lcm$a;a(Lcxd;)Z
    • toString

      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

      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

      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.
    • b

      Returns the value of the b record component.
      Returns:
      the value of the b record component
    • c

      public Optional<Boolean> c()
      Returns the value of the c record component.
      Returns:
      the value of the c record component
    • d

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