Package net.minecraft.world.debug.data
Record Class GoalSelectorDebugData.Goal
java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.GoalSelectorDebugData.Goal
- Record Components:
priority-isRunning-name-
- Enclosing class:
GoalSelectorDebugData
public static record GoalSelectorDebugData.Goal(int priority, boolean isRunning, String name)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/debug/data/GoalSelectorDebugData$Goalintermediary net/minecraft/class_12011$class_8717official bvn$anamed priorityintermediary comp_1690official bnamed isRunningintermediary comp_1691official cnamed nameintermediary comp_1692official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theisRunningrecord component.private final StringThe field for thenamerecord component.static final PacketCodec<ByteBuf, GoalSelectorDebugData.Goal> private final intThe field for thepriorityrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisRunningrecord component.name()Returns the value of thenamerecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
priority
private final int priorityThe field for thepriorityrecord component. -
isRunning
private final boolean isRunningThe field for theisRunningrecord component. -
name
The field for thenamerecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/debug/data/GoalSelectorDebugData$Goal;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62858Lnet/minecraft/class_12011$class_8717;field_62858:Lnet/minecraft/class_9139;official aLbvn$a;a:Laae;
-
-
Constructor Details
-
Goal
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
isRunning
public boolean isRunning()Returns the value of theisRunningrecord component.- Returns:
- the value of the
isRunningrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-