Package net.minecraft.data.info
Record Class DatapackStructureReport.Entry
java.lang.Object
java.lang.Record
net.minecraft.data.info.DatapackStructureReport.Entry
- Enclosing class:
DatapackStructureReport
static record DatapackStructureReport.Entry(boolean elements, boolean tags, boolean stable)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DatapackStructureReport.Entry> private final boolean
The field for theelements
record component.static final com.mojang.serialization.MapCodec
<DatapackStructureReport.Entry> private final boolean
The field for thestable
record component.private final boolean
The field for thetags
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry
(boolean elements, boolean tags, boolean stable) Creates an instance of aEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
elements()
Returns the value of theelements
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
stable()
Returns the value of thestable
record component.boolean
tags()
Returns the value of thetags
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
elements
private final boolean elementsThe field for theelements
record component. -
tags
private final boolean tagsThe field for thetags
record component. -
stable
private final boolean stableThe field for thestable
record component. -
MAP_CODEC
-
CODEC
-
-
Constructor Details
-
Entry
Entry(boolean elements, boolean tags, boolean stable) Creates an instance of aEntry
record class.- Parameters:
elements
- the value for theelements
record componenttags
- the value for thetags
record componentstable
- the value for thestable
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. -
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 '=='. -
elements
public boolean elements()Returns the value of theelements
record component.- Returns:
- the value of the
elements
record component
-
tags
public boolean tags()Returns the value of thetags
record component.- Returns:
- the value of the
tags
record component
-
stable
public boolean stable()Returns the value of thestable
record component.- Returns:
- the value of the
stable
record component
-