Package net.minecraft.stats
Record Class RecipeBookSettings.TypeSettings
java.lang.Object
java.lang.Record
net.minecraft.stats.RecipeBookSettings.TypeSettings
- Enclosing class:
RecipeBookSettings
public static record RecipeBookSettings.TypeSettings(boolean open, boolean filtering)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<RecipeBookSettings.TypeSettings> static final com.mojang.serialization.MapCodec
<RecipeBookSettings.TypeSettings> static final RecipeBookSettings.TypeSettings
private final boolean
The field for thefiltering
record component.static final com.mojang.serialization.MapCodec
<RecipeBookSettings.TypeSettings> private final boolean
The field for theopen
record component.static final com.mojang.serialization.MapCodec
<RecipeBookSettings.TypeSettings> static final StreamCodec
<io.netty.buffer.ByteBuf, RecipeBookSettings.TypeSettings> -
Constructor Summary
ConstructorsConstructorDescriptionTypeSettings
(boolean open, boolean filtering) Creates an instance of aTypeSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<RecipeBookSettings.TypeSettings> final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefiltering
record component.final int
hashCode()
Returns a hash code value for this object.boolean
open()
Returns the value of theopen
record component.setFiltering
(boolean pFiltering) setOpen
(boolean pOpen) toString()
Returns a string representation of this record class.
-
Field Details
-
open
private final boolean openThe field for theopen
record component. -
filtering
private final boolean filteringThe field for thefiltering
record component. -
DEFAULT
-
CRAFTING_MAP_CODEC
public static final com.mojang.serialization.MapCodec<RecipeBookSettings.TypeSettings> CRAFTING_MAP_CODEC -
FURNACE_MAP_CODEC
public static final com.mojang.serialization.MapCodec<RecipeBookSettings.TypeSettings> FURNACE_MAP_CODEC -
BLAST_FURNACE_MAP_CODEC
public static final com.mojang.serialization.MapCodec<RecipeBookSettings.TypeSettings> BLAST_FURNACE_MAP_CODEC -
SMOKER_MAP_CODEC
public static final com.mojang.serialization.MapCodec<RecipeBookSettings.TypeSettings> SMOKER_MAP_CODEC -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf,RecipeBookSettings.TypeSettings> STREAM_CODEC
-
-
Constructor Details
-
TypeSettings
public TypeSettings(boolean open, boolean filtering) Creates an instance of aTypeSettings
record class.- Parameters:
open
- the value for theopen
record componentfiltering
- the value for thefiltering
record 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. -
setOpen
-
setFiltering
-
codec
public static com.mojang.serialization.MapCodec<RecipeBookSettings.TypeSettings> codec(String p_422385_, String p_422603_) -
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 '=='. -
open
public boolean open()Returns the value of theopen
record component.- Returns:
- the value of the
open
record component
-
filtering
public boolean filtering()Returns the value of thefiltering
record component.- Returns:
- the value of the
filtering
record component
-