Class BlockEventS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.BlockEventS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class BlockEventS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BlockEventS2CPacket()
BlockEventS2CPacket(BlockPos pos, Block block, int type, int data)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
Block
getBlock()
int
getData()
BlockPos
getPos()
int
getType()
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
-
type
private int type -
data
private int data -
block
-
-
Constructor Details
-
BlockEventS2CPacket
public BlockEventS2CPacket() -
BlockEventS2CPacket
-
-
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
-
getType
@Environment(CLIENT) public int getType() -
getData
@Environment(CLIENT) public int getData() -
getBlock
-