Record Class RecipeBookOptions.CategoryOption

java.lang.Object
java.lang.Record
net.minecraft.recipe.book.RecipeBookOptions.CategoryOption
Record Components:
guiOpen -
filteringCraftable -
Enclosing class:
RecipeBookOptions

public static record RecipeBookOptions.CategoryOption(boolean guiOpen, boolean filteringCraftable) extends Record
Mappings:
Namespace Name
named net/minecraft/recipe/book/RecipeBookOptions$CategoryOption
intermediary net/minecraft/class_5411$class_5412
official azd$a
named guiOpen
intermediary comp_3247
official g
named filteringCraftable
intermediary comp_3248
official h
  • Field Details

    • guiOpen

      private final boolean guiOpen
      The field for the guiOpen record component.
    • filteringCraftable

      private final boolean filteringCraftable
      The field for the filteringCraftable record component.
    • DEFAULT

      public static final RecipeBookOptions.CategoryOption DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;DEFAULT:Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;
      intermediary field_54549 Lnet/minecraft/class_5411$class_5412;field_54549:Lnet/minecraft/class_5411$class_5412;
      official a Lazd$a;a:Lazd$a;
    • CRAFTING

      public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> CRAFTING
      Mappings:
      Namespace Name Mixin selector
      named CRAFTING Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;CRAFTING:Lcom/mojang/serialization/MapCodec;
      intermediary field_60341 Lnet/minecraft/class_5411$class_5412;field_60341:Lcom/mojang/serialization/MapCodec;
      official b Lazd$a;b:Lcom/mojang/serialization/MapCodec;
    • FURNACE

      public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> FURNACE
      Mappings:
      Namespace Name Mixin selector
      named FURNACE Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;FURNACE:Lcom/mojang/serialization/MapCodec;
      intermediary field_60342 Lnet/minecraft/class_5411$class_5412;field_60342:Lcom/mojang/serialization/MapCodec;
      official c Lazd$a;c:Lcom/mojang/serialization/MapCodec;
    • BLAST_FURNACE

      public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> BLAST_FURNACE
      Mappings:
      Namespace Name Mixin selector
      named BLAST_FURNACE Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;BLAST_FURNACE:Lcom/mojang/serialization/MapCodec;
      intermediary field_60343 Lnet/minecraft/class_5411$class_5412;field_60343:Lcom/mojang/serialization/MapCodec;
      official d Lazd$a;d:Lcom/mojang/serialization/MapCodec;
    • SMOKER

      public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> SMOKER
      Mappings:
      Namespace Name Mixin selector
      named SMOKER Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;SMOKER:Lcom/mojang/serialization/MapCodec;
      intermediary field_60344 Lnet/minecraft/class_5411$class_5412;field_60344:Lcom/mojang/serialization/MapCodec;
      official e Lazd$a;e:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,RecipeBookOptions.CategoryOption> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_60345 Lnet/minecraft/class_5411$class_5412;field_60345:Lnet/minecraft/class_9139;
      official f Lazd$a;f:Lzm;
  • Constructor Details

    • CategoryOption

      public CategoryOption(boolean guiOpen, boolean filteringCraftable)
      Creates an instance of a CategoryOption record class.
      Parameters:
      guiOpen - the value for the guiOpen record component
      filteringCraftable - the value for the filteringCraftable record component
  • Method Details

    • toString

      public 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
    • withGuiOpen

      public RecipeBookOptions.CategoryOption withGuiOpen(boolean guiOpen)
      Mappings:
      Namespace Name Mixin selector
      named withGuiOpen Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;withGuiOpen(Z)Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;
      intermediary method_64586 Lnet/minecraft/class_5411$class_5412;method_64586(Z)Lnet/minecraft/class_5411$class_5412;
      official a Lazd$a;a(Z)Lazd$a;
    • withFilteringCraftable

      public RecipeBookOptions.CategoryOption withFilteringCraftable(boolean filteringCraftable)
      Mappings:
      Namespace Name Mixin selector
      named withFilteringCraftable Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;withFilteringCraftable(Z)Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;
      intermediary method_64587 Lnet/minecraft/class_5411$class_5412;method_64587(Z)Lnet/minecraft/class_5411$class_5412;
      official b Lazd$a;b(Z)Lazd$a;
    • createCodec

      private static com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> createCodec(String guiOpenField, String filteringCraftableField)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;createCodec(Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
      intermediary method_71340 Lnet/minecraft/class_5411$class_5412;method_71340(Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
      official a Lazd$a;a(Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
    • 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 o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • guiOpen

      public boolean guiOpen()
      Returns the value of the guiOpen record component.
      Returns:
      the value of the guiOpen record component
    • filteringCraftable

      public boolean filteringCraftable()
      Returns the value of the filteringCraftable record component.
      Returns:
      the value of the filteringCraftable record component