Class PaintingSpawnS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PaintingSpawnS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PaintingSpawnS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PaintingSpawnS2CPacket()PaintingSpawnS2CPacket(PaintingEntity entity) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)DirectiongetFacing()intgetId()PaintingMotivegetMotive()UUIDgetPaintingUuid()BlockPosgetPos()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
private int id -
uuid
-
pos
-
facing
-
motiveId
private int motiveId
-
-
Constructor Details
-
PaintingSpawnS2CPacket
public PaintingSpawnS2CPacket() -
PaintingSpawnS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getId
@Environment(CLIENT) public int getId() -
getPaintingUuid
-
getPos
-
getFacing
-
getMotive
-