Package net.minecraft.entity.player
Record Class PlayerPosition
java.lang.Object
java.lang.Record
net.minecraft.entity.player.PlayerPosition
- Record Components:
position
-deltaMovement
-yaw
-pitch
-
public record PlayerPosition(Vec3d position, Vec3d deltaMovement, float yaw, float pitch)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/player/PlayerPosition
intermediary net/minecraft/class_10182
official bws
named position
intermediary comp_3148
official b
named deltaMovement
intermediary comp_3149
official c
named yaw
intermediary comp_3150
official d
named pitch
intermediary comp_3151
official e
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Vec3d
The field for thedeltaMovement
record component.static final PacketCodec
<PacketByteBuf, PlayerPosition> private final float
The field for thepitch
record component.private final Vec3d
The field for theposition
record component.private final float
The field for theyaw
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerPosition
apply
(PlayerPosition currentPos, PlayerPosition newPos, Set<PositionFlag> flags) Returns the value of thedeltaMovement
record component.final boolean
Indicates whether some other object is "equal to" this one.static PlayerPosition
fromEntity
(Entity entity) static PlayerPosition
fromEntityLerpTarget
(Entity entity) static PlayerPosition
fromTeleportTarget
(TeleportTarget teleportTarget) final int
hashCode()
Returns a hash code value for this object.float
pitch()
Returns the value of thepitch
record component.position()
Returns the value of theposition
record component.private static double
resolve
(double delta, double value, Set<PositionFlag> flags, PositionFlag deltaFlag) final String
toString()
Returns a string representation of this record class.float
yaw()
Returns the value of theyaw
record component.
-
Field Details
-
position
The field for theposition
record component. -
deltaMovement
The field for thedeltaMovement
record component. -
yaw
private final float yawThe field for theyaw
record component. -
pitch
private final float pitchThe field for thepitch
record component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/entity/player/PlayerPosition;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_54565
Lnet/minecraft/class_10182;field_54565:Lnet/minecraft/class_9139;
official a
Lbws;a:Lzt;
-
-
Constructor Details
-
PlayerPosition
-
-
Method Details
-
fromEntity
- Mappings:
Namespace Name Mixin selector named fromEntity
Lnet/minecraft/entity/player/PlayerPosition;fromEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/player/PlayerPosition;
intermediary method_63638
Lnet/minecraft/class_10182;method_63638(Lnet/minecraft/class_1297;)Lnet/minecraft/class_10182;
official a
Lbws;a(Lbvj;)Lbws;
-
fromEntityLerpTarget
- Mappings:
Namespace Name Mixin selector named fromEntityLerpTarget
Lnet/minecraft/entity/player/PlayerPosition;fromEntityLerpTarget(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/player/PlayerPosition;
intermediary method_64621
Lnet/minecraft/class_10182;method_64621(Lnet/minecraft/class_1297;)Lnet/minecraft/class_10182;
official b
Lbws;b(Lbvj;)Lbws;
-
fromTeleportTarget
- Mappings:
Namespace Name Mixin selector named fromTeleportTarget
Lnet/minecraft/entity/player/PlayerPosition;fromTeleportTarget(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/player/PlayerPosition;
intermediary method_63640
Lnet/minecraft/class_10182;method_63640(Lnet/minecraft/class_5454;)Lnet/minecraft/class_10182;
official a
Lbws;a(Leuw;)Lbws;
-
apply
public static PlayerPosition apply(PlayerPosition currentPos, PlayerPosition newPos, Set<PositionFlag> flags) - Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/entity/player/PlayerPosition;apply(Lnet/minecraft/entity/player/PlayerPosition;Lnet/minecraft/entity/player/PlayerPosition;Ljava/util/Set;)Lnet/minecraft/entity/player/PlayerPosition;
intermediary method_63639
Lnet/minecraft/class_10182;method_63639(Lnet/minecraft/class_10182;Lnet/minecraft/class_10182;Ljava/util/Set;)Lnet/minecraft/class_10182;
official a
Lbws;a(Lbws;Lbws;Ljava/util/Set;)Lbws;
-
resolve
private static double resolve(double delta, double value, Set<PositionFlag> flags, PositionFlag deltaFlag) - Mappings:
Namespace Name Mixin selector named resolve
Lnet/minecraft/entity/player/PlayerPosition;resolve(DDLjava/util/Set;Lnet/minecraft/network/packet/s2c/play/PositionFlag;)D
intermediary method_63636
Lnet/minecraft/class_10182;method_63636(DDLjava/util/Set;Lnet/minecraft/class_2709;)D
official a
Lbws;a(DDLjava/util/Set;Lbwt;)D
-
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 '=='. -
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
deltaMovement
Returns the value of thedeltaMovement
record component.- Returns:
- the value of the
deltaMovement
record component
-
yaw
public float yaw()Returns the value of theyaw
record component.- Returns:
- the value of the
yaw
record component
-
pitch
public float pitch()Returns the value of thepitch
record component.- Returns:
- the value of the
pitch
record component
-