Class ClientboundAddEntityPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundAddEntityPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, double x, double y, double z, float yaw, float headYaw, float pitch) ClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, double x, double y, double z, float yaw, float headYaw, float pitch, org.cloudburstmc.math.vector.Vector3d movement) ClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, @NonNull ObjectData data, double x, double y, double z, float yaw, float headYaw, float pitch) ClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, @NonNull ObjectData data, double x, double y, double z, org.cloudburstmc.math.vector.Vector3d movement, float yaw, float headYaw, float pitch) ClientboundAddEntityPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull ObjectDatagetData()intfloatorg.cloudburstmc.math.vector.Vector3dfloatgetPitch()@NonNull EntityTypegetType()@NonNull UUIDgetUuid()doublegetX()doublegetY()floatgetYaw()doublegetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundAddEntityPacketwithData(@NonNull ObjectData data) @NonNull ClientboundAddEntityPacketwithEntityId(int entityId) @NonNull ClientboundAddEntityPacketwithHeadYaw(float headYaw) @NonNull ClientboundAddEntityPacketwithMovement(org.cloudburstmc.math.vector.Vector3d movement) @NonNull ClientboundAddEntityPacketwithPitch(float pitch) @NonNull ClientboundAddEntityPacketwithType(@NonNull EntityType type) @NonNull ClientboundAddEntityPacket@NonNull ClientboundAddEntityPacketwithX(double x) @NonNull ClientboundAddEntityPacketwithY(double y) @NonNull ClientboundAddEntityPacketwithYaw(float yaw) @NonNull ClientboundAddEntityPacketwithZ(double z) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, double x, double y, double z, float yaw, float headYaw, float pitch) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, @NonNull @NonNull ObjectData data, double x, double y, double z, float yaw, float headYaw, float pitch) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, double x, double y, double z, float yaw, float headYaw, float pitch, org.cloudburstmc.math.vector.Vector3d movement) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(io.netty.buffer.ByteBuf in) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, @NonNull @NonNull ObjectData data, double x, double y, double z, org.cloudburstmc.math.vector.Vector3d movement, float yaw, float headYaw, float pitch)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getUuid
-
getType
-
getData
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getMovement
public org.cloudburstmc.math.vector.Vector3d getMovement() -
getYaw
public float getYaw() -
getHeadYaw
public float getHeadYaw() -
getPitch
public float getPitch() -
equals
-
canEqual
-
hashCode
-
toString
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUuid
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withData
- 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).
-
withMovement
public @NonNull ClientboundAddEntityPacket withMovement(org.cloudburstmc.math.vector.Vector3d movement) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHeadYaw
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPitch
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-