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