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 SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for theentityPosrecord component.private final List<GoalDebugPayload.DebugGoal>The field for thegoalsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntityGoalInfo(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aEntityGoalInforecord class.
- 
Method SummaryModifier 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- 
entityPosThe field for theentityPosrecord component.
- 
goalsThe field for thegoalsrecord component.
 
- 
- 
Constructor Details- 
EntityGoalInfoEntityGoalInfo(BlockPos entityPos, List<GoalDebugPayload.DebugGoal> goals) Creates an instance of aEntityGoalInforecord class.- Parameters:
- entityPos- the value for the- entityPosrecord component
- goals- the value for the- goalsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
entityPosReturns the value of theentityPosrecord component.- Returns:
- the value of the entityPosrecord component
 
- 
goalsReturns the value of thegoalsrecord component.- Returns:
- the value of the goalsrecord component
 
 
-