public class PaintingSpawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private Direction |
facing |
private int |
id |
private int |
motiveId |
private BlockPos |
pos |
private UUID |
uuid |
Constructor and Description |
---|
PaintingSpawnS2CPacket() |
PaintingSpawnS2CPacket(PaintingEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Direction |
getFacing() |
int |
getId() |
PaintingMotive |
getMotive() |
UUID |
getPaintingUuid() |
BlockPos |
getPos() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int id
private UUID uuid
private BlockPos pos
private Direction facing
private int motiveId
public PaintingSpawnS2CPacket()
public PaintingSpawnS2CPacket(PaintingEntity entity)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getId()
@Environment(value=CLIENT) public UUID getPaintingUuid()
@Environment(value=CLIENT) public BlockPos getPos()
@Environment(value=CLIENT) public Direction getFacing()
@Environment(value=CLIENT) public PaintingMotive getMotive()