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 int
private final int
private final Block
private final BlockPos
static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundBlockEventPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundBlockEventPacket
(BlockPos pPos, Block pBlock, int pB0, int pB1) private
-
Method Summary
Modifier and TypeMethodDescriptionint
getB0()
int
getB1()
getBlock()
getPos()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf pBuffer) 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.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:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getPos
-
getB0
public int getB0() -
getB1
public int getB1() -
getBlock
-