public static class FMLPlayMessages.SpawnEntity
extends java.lang.Object
SSpawnObjectPacket
or SSpawnMobPacket
To customize how your entity is created clientside (instead of using the default factory provided to the EntityType
)
see EntityType.Builder#setCustomClientFactory
.修飾子とタイプ | メソッドと説明 |
---|---|
static FMLPlayMessages.SpawnEntity |
decode(PacketBuffer buf) |
static void |
encode(FMLPlayMessages.SpawnEntity msg,
PacketBuffer buf) |
PacketBuffer |
getAdditionalData() |
Entity |
getEntity() |
int |
getEntityId() |
byte |
getHeadYaw() |
byte |
getPitch() |
double |
getPosX() |
double |
getPosY() |
double |
getPosZ() |
int |
getTypeId() |
java.util.UUID |
getUuid() |
int |
getVelX() |
int |
getVelY() |
int |
getVelZ() |
byte |
getYaw() |
static void |
handle(FMLPlayMessages.SpawnEntity msg,
java.util.function.Supplier<NetworkEvent.Context> ctx) |
public static void encode(FMLPlayMessages.SpawnEntity msg, PacketBuffer buf)
public static FMLPlayMessages.SpawnEntity decode(PacketBuffer buf)
public static void handle(FMLPlayMessages.SpawnEntity msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
public Entity getEntity()
public int getTypeId()
public int getEntityId()
public java.util.UUID getUuid()
public double getPosX()
public double getPosY()
public double getPosZ()
public byte getPitch()
public byte getYaw()
public byte getHeadYaw()
public int getVelX()
public int getVelY()
public int getVelZ()
public PacketBuffer getAdditionalData()