Class ClientboundPlayerLookAtPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundPlayerLookAtPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final int
private final EntityAnchorArgument.Anchor
static final StreamCodec
<FriendlyByteBuf, ClientboundPlayerLookAtPacket> private final EntityAnchorArgument.Anchor
private final double
private final double
private final double
-
Constructor Summary
ModifierConstructorDescriptionClientboundPlayerLookAtPacket
(EntityAnchorArgument.Anchor p_132777_, double p_132778_, double p_132779_, double p_132780_) ClientboundPlayerLookAtPacket
(EntityAnchorArgument.Anchor p_132782_, Entity p_132783_, EntityAnchorArgument.Anchor p_132784_) private
ClientboundPlayerLookAtPacket
(FriendlyByteBuf p_179146_) -
Method Summary
Modifier and TypeMethodDescriptiongetPosition
(Level p_132786_) void
handle
(ClientGamePacketListener p_132792_) type()
private void
write
(FriendlyByteBuf p_132795_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
x
private final double x -
y
private final double y -
z
private final double z -
entity
private final int entity -
fromAnchor
-
toAnchor
-
atEntity
private final boolean atEntity
-
-
Constructor Details
-
ClientboundPlayerLookAtPacket
public ClientboundPlayerLookAtPacket(EntityAnchorArgument.Anchor p_132777_, double p_132778_, double p_132779_, double p_132780_) -
ClientboundPlayerLookAtPacket
public ClientboundPlayerLookAtPacket(EntityAnchorArgument.Anchor p_132782_, Entity p_132783_, EntityAnchorArgument.Anchor p_132784_) -
ClientboundPlayerLookAtPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getFromAnchor
-
getPosition
-