Class ClientboundPlayerLookAtPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.player.ClientboundPlayerLookAtPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundPlayerLookAtPacket(@NonNull RotationOrigin origin, double x, double y, double z, int targetEntityId, RotationOrigin targetEntityOrigin) ClientboundPlayerLookAtPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundPlayerLookAtPacket(RotationOrigin origin, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull RotationOriginintdoublegetX()doublegetY()doublegetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundPlayerLookAtPacketwithOrigin(@NonNull RotationOrigin origin) @NonNull ClientboundPlayerLookAtPacketwithTargetEntityId(int targetEntityId) @NonNull ClientboundPlayerLookAtPacketwithTargetEntityOrigin(RotationOrigin targetEntityOrigin) @NonNull ClientboundPlayerLookAtPacketwithX(double x) @NonNull ClientboundPlayerLookAtPacketwithY(double y) @NonNull ClientboundPlayerLookAtPacketwithZ(double z) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundPlayerLookAtPacket
-
ClientboundPlayerLookAtPacket
-
ClientboundPlayerLookAtPacket
public ClientboundPlayerLookAtPacket(@NonNull @NonNull RotationOrigin origin, double x, double y, double z, int targetEntityId, RotationOrigin targetEntityOrigin)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getOrigin
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getTargetEntityId
public int getTargetEntityId() -
getTargetEntityOrigin
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withOrigin
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTargetEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTargetEntityOrigin
public @NonNull ClientboundPlayerLookAtPacket withTargetEntityOrigin(RotationOrigin targetEntityOrigin) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-