Class BlockEntityUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.BlockEntityUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class BlockEntityUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private int
blockEntityType
private BlockPos
pos
private CompoundTag
tag
-
Constructor Summary
Constructors Constructor Description BlockEntityUpdateS2CPacket()
BlockEntityUpdateS2CPacket(BlockPos pos, int blockEntityType, CompoundTag tag)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getBlockEntityType()
CompoundTag
getCompoundTag()
BlockPos
getPos()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
pos
-
blockEntityType
private int blockEntityType -
tag
-
-
Constructor Details
-
BlockEntityUpdateS2CPacket
public BlockEntityUpdateS2CPacket() -
BlockEntityUpdateS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getPos
-
getBlockEntityType
@Environment(CLIENT) public int getBlockEntityType() -
getCompoundTag
-