Class ClientboundAddEntityPacket
java.lang.Object
com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.spawn.ClientboundAddEntityPacket
- All Implemented Interfaces:
MinecraftPacket,Packet
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, double x, double y, double z, float yaw, float pitch, float headYaw) ClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, double x, double y, double z, float yaw, float pitch, float headYaw, double motionX, double motionY, double motionZ) ClientboundAddEntityPacket(int entityId, @NonNull UUID uuid, @NonNull EntityType type, @NonNull ObjectData data, double x, double y, double z, float yaw, float pitch, float headYaw) ClientboundAddEntityPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.steveice10.packetlib.packet.Packet
isPriority
-
Constructor Details
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, double x, double y, double z, float yaw, float pitch, float headYaw) -
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 pitch, float headYaw) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int entityId, @NonNull @NonNull UUID uuid, @NonNull @NonNull EntityType type, double x, double y, double z, float yaw, float pitch, float headYaw, double motionX, double motionY, double motionZ) -
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) throws IOException - Throws:
IOException
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket- Throws:
IOException
-