Class SPlayerDiggingPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SPlayerDiggingPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SPlayerDiggingPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CPlayerDiggingPacket.Action
action
private boolean
allGood
private static org.apache.logging.log4j.Logger
LOGGER
private BlockPos
pos
private BlockState
state
-
Constructor Summary
Constructors Constructor Description SPlayerDiggingPacket()
SPlayerDiggingPacket(BlockPos p_i226088_1_, BlockState p_i226088_2_, CPlayerDiggingPacket.Action p_i226088_3_, boolean p_i226088_4_, java.lang.String p_i226088_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPlayerDiggingPacket.Action
action()
boolean
allGood()
BlockPos
getPos()
BlockState
getState()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
pos
private BlockPos pos
-
state
private BlockState state
-
action
CPlayerDiggingPacket.Action action
-
allGood
private boolean allGood
-
-
Constructor Detail
-
SPlayerDiggingPacket
public SPlayerDiggingPacket()
-
SPlayerDiggingPacket
public SPlayerDiggingPacket(BlockPos p_i226088_1_, BlockState p_i226088_2_, CPlayerDiggingPacket.Action p_i226088_3_, boolean p_i226088_4_, java.lang.String p_i226088_5_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getState
public BlockState getState()
-
getPos
public BlockPos getPos()
-
allGood
public boolean allGood()
-
action
public CPlayerDiggingPacket.Action action()
-
-