Record Class GoalSelectorDebugRenderer.EntityGoalInfo
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.debug.GoalSelectorDebugRenderer.EntityGoalInfo
- Enclosing class:
GoalSelectorDebugRenderer
static record GoalSelectorDebugRenderer.EntityGoalInfo(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for theentityPosrecord component.private final List<GoalDebugPayload.DebugGoal> The field for thegoalsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityGoalInfo(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aEntityGoalInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityPosrecord component.final 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
-
entityPos
The field for theentityPosrecord component. -
goals
The field for thegoalsrecord component.
-
-
Constructor Details
-
EntityGoalInfo
EntityGoalInfo(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aEntityGoalInforecord class.- Parameters:
entityPos- the value for theentityPosrecord componentgoals- the value for thegoalsrecord 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 withObjects::equals(Object,Object). -
entityPos
Returns the value of theentityPosrecord component.- Returns:
- the value of the
entityPosrecord component
-
goals
Returns the value of thegoalsrecord component.- Returns:
- the value of the
goalsrecord component
-