Class ClientboundBlockEventPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundBlockEventPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
Triggers a block event on the client.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final Blockprivate final BlockPosstatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundBlockEventPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundBlockEventPacket(BlockPos pPos, Block pBlock, int pB0, int pB1) private -
Method Summary
Modifier and TypeMethodDescriptionintgetB0()intgetB1()getBlock()getPos()voidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(RegistryFriendlyByteBuf p_320189_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
pos
-
b0
private final int b0 -
b1
private final int b1 -
block
-
-
Constructor Details
-
ClientboundBlockEventPacket
- Parameters:
pB0- first parameter of the block event. The meaning of this value depends on the block.pB1- second parameter of the block event. The meaning of this value depends on the block.
-
ClientboundBlockEventPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getPos
-
getB0
public int getB0() -
getB1
public int getB1() -
getBlock
-