Package net.minecraft.stats
Record Class RecipeBookSettings.TypeSettings
java.lang.Object
java.lang.Record
net.minecraft.stats.RecipeBookSettings.TypeSettings
- Enclosing class:
RecipeBookSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecipeBookSettings.TypeSettings
private final boolean
The field for thefiltering
record component.private final boolean
The field for theopen
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTypeSettings
(boolean open, boolean filtering) Creates an instance of aTypeSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 p_380039_) setOpen
(boolean p_379785_) 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
-
-
Constructor Details
-
TypeSettings
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
-
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
-