Record Class PathfindingDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.PathfindingDebugPayload
- All Implemented Interfaces:
- CustomPacketPayload
public record PathfindingDebugPayload(int entityId, Path path, float maxNodeDistance)
extends Record
implements CustomPacketPayload
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for theentityIdrecord component.static final ResourceLocationprivate final floatThe field for themaxNodeDistancerecord component.private final PathThe field for thepathrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPathfindingDebugPayload(int entityId, Path path, float maxNodeDistance) Creates an instance of aPathfindingDebugPayloadrecord class.PathfindingDebugPayload(FriendlyByteBuf p_296445_) 
- 
Method SummaryModifier and TypeMethodDescriptionintentityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()floatReturns the value of themaxNodeDistancerecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_295342_) 
- 
Field Details- 
entityIdprivate final int entityIdThe field for theentityIdrecord component.
- 
pathThe field for thepathrecord component.
- 
maxNodeDistanceprivate final float maxNodeDistanceThe field for themaxNodeDistancerecord component.
- 
ID
 
- 
- 
Constructor Details- 
PathfindingDebugPayload
- 
PathfindingDebugPayloadCreates an instance of aPathfindingDebugPayloadrecord class.- Parameters:
- entityId- the value for the- entityIdrecord component
- path- the value for the- pathrecord component
- maxNodeDistance- the value for the- maxNodeDistancerecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- CustomPacketPayload
 
- 
id- Specified by:
- idin interface- CustomPacketPayload
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
entityIdpublic int entityId()Returns the value of theentityIdrecord component.- Returns:
- the value of the entityIdrecord component
 
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
- 
maxNodeDistancepublic float maxNodeDistance()Returns the value of themaxNodeDistancerecord component.- Returns:
- the value of the maxNodeDistancerecord component
 
 
-