Record Class PositionPath.Linear
java.lang.Object
java.lang.Record
net.minecraft.world.entity.PositionPath.Linear
- All Implemented Interfaces:
PositionPath
- Enclosing interface:
PositionPath
-
Nested Class Summary
Nested classes/interfaces inherited from interface PositionPath
PositionPath.Linear, PositionPath.Stepped, PositionPath.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vec3The field for theendPositionrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, PositionPath.Linear> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
endPosition
The field for theendPositionrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
Linear
Creates an instance of aLinearrecord class.- Parameters:
endPosition- the value for theendPositionrecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePositionPath
-
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). -
endPosition
Returns the value of theendPositionrecord component.- Specified by:
endPositionin interfacePositionPath- Returns:
- the value of the
endPositionrecord component
-