Record Class DebugGoalInfo
java.lang.Object
java.lang.Record
net.minecraft.util.debug.DebugGoalInfo
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DebugGoalInfo.DebugGoal> The field for thegoalsrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, DebugGoalInfo> -
Constructor Summary
ConstructorsConstructorDescriptionDebugGoalInfo(List<DebugGoalInfo.DebugGoal> goals) Creates an instance of aDebugGoalInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.goals()Returns the value of thegoalsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
goals
The field for thegoalsrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
DebugGoalInfo
Creates an instance of aDebugGoalInforecord class.- Parameters:
goals- the value for thegoalsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
goals
Returns the value of thegoalsrecord component.- Returns:
- the value of the
goalsrecord component
-