Package net.minecraft

Record Class class_9663

java.lang.Object
java.lang.Record
net.minecraft.class_9663
Record Components:
c -
d -
e -
f -
g -
All Implemented Interfaces:
ComponentSubPredicate<WrittenBookContentComponent>, ItemSubPredicate

Mappings:
Namespace Name
named net/minecraft/class_9663
intermediary net/minecraft/class_9663
official cv
named c
intermediary comp_2642
official c
named d
intermediary comp_2643
official d
named e
intermediary comp_2644
official e
named f
intermediary comp_2645
official f
named g
intermediary comp_2646
official g
  • Field Details

    • c

      The field for the c record component.
    • d

      private final Optional<String> d
      The field for the d record component.
    • e

      private final Optional<String> e
      The field for the e record component.
    • f

      private final NumberRange.IntRange f
      The field for the f record component.
    • g

      private final Optional<Boolean> g
      The field for the g record component.
    • field_51400

      public static final com.mojang.serialization.Codec<class_9663> field_51400
      Mappings:
      Namespace Name Mixin selector
      named field_51400 Lnet/minecraft/class_9663;field_51400:Lcom/mojang/serialization/Codec;
      intermediary field_51400 Lnet/minecraft/class_9663;field_51400:Lcom/mojang/serialization/Codec;
      official a Lcv;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • getComponentType

      public DataComponentType<WrittenBookContentComponent> getComponentType()
      Specified by:
      getComponentType in interface ComponentSubPredicate<WrittenBookContentComponent>
      Mappings:
      Namespace Name Mixin selector
      named getComponentType Lnet/minecraft/predicate/item/ComponentSubPredicate;getComponentType()Lnet/minecraft/component/DataComponentType;
      intermediary method_58163 Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;
      official a Lds;a()Lkl;
    • test

      public boolean test(ItemStack itemStack, WrittenBookContentComponent writtenBookContentComponent)
      Specified by:
      test in interface ComponentSubPredicate<WrittenBookContentComponent>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/class_9663;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/WrittenBookContentComponent;)Z
      intermediary method_59697 Lnet/minecraft/class_9663;method_59697(Lnet/minecraft/class_1799;Lnet/minecraft/class_9302;)Z
      official a Lcv;a(Lcuk;Lcxt;)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.
    • c

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

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

      public Optional<String> e()
      Returns the value of the e record component.
      Returns:
      the value of the e record component
    • f

      Returns the value of the f record component.
      Returns:
      the value of the f record component
    • g

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