Package net.minecraft.recipe.book
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$CategoryOptionintermediary net/minecraft/class_5411$class_5412official axk$anamed guiOpenintermediary comp_3247official gnamed filteringCraftableintermediary comp_3248official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecipeBookOptions.CategoryOptionstatic final PacketCodec<ByteBuf, RecipeBookOptions.CategoryOption> private final booleanThe field for thefilteringCraftablerecord component.private final booleanThe field for theguiOpenrecord component.static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> -
Constructor Summary
ConstructorsConstructorDescriptionCategoryOption(boolean guiOpen, boolean filteringCraftable) Creates an instance of aCategoryOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefilteringCraftablerecord component.booleanguiOpen()Returns the value of theguiOpenrecord component.final inthashCode()Returns a hash code value for this object.private static com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> method_71340(String string, String string2) toString()Returns a string representation of this record class.withFilteringCraftable(boolean filteringCraftable) withGuiOpen(boolean guiOpen)
-
Field Details
-
guiOpen
private final boolean guiOpenThe field for theguiOpenrecord component. -
filteringCraftable
private final boolean filteringCraftableThe field for thefilteringCraftablerecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;DEFAULT:Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;intermediary field_54549Lnet/minecraft/class_5411$class_5412;field_54549:Lnet/minecraft/class_5411$class_5412;official aLaxk$a;a:Laxk$a;
-
IS_GUI_OPEN
- Mappings:
Namespace Name Mixin selector named IS_GUI_OPENLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;IS_GUI_OPEN:Lcom/mojang/serialization/MapCodec;intermediary field_60341Lnet/minecraft/class_5411$class_5412;field_60341:Lcom/mojang/serialization/MapCodec;official bLaxk$a;b:Lcom/mojang/serialization/MapCodec;
-
IS_FURNACE_GUI_OPEN
public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> IS_FURNACE_GUI_OPEN- Mappings:
Namespace Name Mixin selector named IS_FURNACE_GUI_OPENLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;IS_FURNACE_GUI_OPEN:Lcom/mojang/serialization/MapCodec;intermediary field_60342Lnet/minecraft/class_5411$class_5412;field_60342:Lcom/mojang/serialization/MapCodec;official cLaxk$a;c:Lcom/mojang/serialization/MapCodec;
-
IS_BLASTING_FURNACE_GUI_OPEN
public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> IS_BLASTING_FURNACE_GUI_OPEN- Mappings:
Namespace Name Mixin selector named IS_BLASTING_FURNACE_GUI_OPENLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;IS_BLASTING_FURNACE_GUI_OPEN:Lcom/mojang/serialization/MapCodec;intermediary field_60343Lnet/minecraft/class_5411$class_5412;field_60343:Lcom/mojang/serialization/MapCodec;official dLaxk$a;d:Lcom/mojang/serialization/MapCodec;
-
IS_SMOKER_GUI_OPEN
public static final com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> IS_SMOKER_GUI_OPEN- Mappings:
Namespace Name Mixin selector named IS_SMOKER_GUI_OPENLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;IS_SMOKER_GUI_OPEN:Lcom/mojang/serialization/MapCodec;intermediary field_60344Lnet/minecraft/class_5411$class_5412;field_60344:Lcom/mojang/serialization/MapCodec;official eLaxk$a;e:Lcom/mojang/serialization/MapCodec;
-
field_60345
- Mappings:
Namespace Name Mixin selector named field_60345Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;field_60345:Lnet/minecraft/network/codec/PacketCodec;intermediary field_60345Lnet/minecraft/class_5411$class_5412;field_60345:Lnet/minecraft/class_9139;official fLaxk$a;f:Lzi;
-
-
Constructor Details
-
CategoryOption
public CategoryOption(boolean guiOpen, boolean filteringCraftable) Creates an instance of aCategoryOptionrecord class.- Parameters:
guiOpen- the value for theguiOpenrecord componentfilteringCraftable- the value for thefilteringCraftablerecord component
-
-
Method Details
-
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. -
withGuiOpen
- Mappings:
Namespace Name Mixin selector named withGuiOpenLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;withGuiOpen(Z)Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;intermediary method_64586Lnet/minecraft/class_5411$class_5412;method_64586(Z)Lnet/minecraft/class_5411$class_5412;official aLaxk$a;a(Z)Laxk$a;
-
withFilteringCraftable
- Mappings:
Namespace Name Mixin selector named withFilteringCraftableLnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;withFilteringCraftable(Z)Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;intermediary method_64587Lnet/minecraft/class_5411$class_5412;method_64587(Z)Lnet/minecraft/class_5411$class_5412;official bLaxk$a;b(Z)Laxk$a;
-
method_71340
private static com.mojang.serialization.MapCodec<RecipeBookOptions.CategoryOption> method_71340(String string, String string2) - Mappings:
Namespace Name Mixin selector named method_71340Lnet/minecraft/recipe/book/RecipeBookOptions$CategoryOption;method_71340(Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;intermediary method_71340Lnet/minecraft/class_5411$class_5412;method_71340(Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;official aLaxk$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. -
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 with '=='. -
guiOpen
public boolean guiOpen()Returns the value of theguiOpenrecord component.- Returns:
- the value of the
guiOpenrecord component
-
filteringCraftable
public boolean filteringCraftable()Returns the value of thefilteringCraftablerecord component.- Returns:
- the value of the
filteringCraftablerecord component
-