Class CPlayerTryUseItemOnBlockPacket
java.lang.Object
net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket
- All Implemented Interfaces:
IPacket<IServerPlayNetHandler>
public class CPlayerTryUseItemOnBlockPacket
extends Object
implements IPacket<IServerPlayNetHandler>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCPlayerTryUseItemOnBlockPacket
(Hand p_i50756_1_, BlockRayTraceResult p_i50756_2_) -
Method Summary
Modifier and TypeMethodDescriptiongetHand()
void
handle
(IServerPlayNetHandler 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 Details
-
blockHit
-
hand
-
-
Constructor Details
-
CPlayerTryUseItemOnBlockPacket
public CPlayerTryUseItemOnBlockPacket() -
CPlayerTryUseItemOnBlockPacket
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in interfaceIPacket<IServerPlayNetHandler>
-
getHand
-
getHitResult
-