Class CUseEntityPacket
java.lang.Object
net.minecraft.network.play.client.CUseEntityPacket
- All Implemented Interfaces:
IPacket<IServerPlayNetHandler>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate CUseEntityPacket.Action
private int
private Hand
private Vector3d
private boolean
-
Constructor Summary
ConstructorDescriptionCUseEntityPacket
(Entity p_i46877_1_, boolean p_i46877_2_) CUseEntityPacket
(Entity p_i46878_1_, Hand p_i46878_2_, boolean p_i46878_3_) CUseEntityPacket
(Entity p_i47098_1_, Hand p_i47098_2_, Vector3d p_i47098_3_, boolean p_i47098_4_) -
Method Summary
Modifier and TypeMethodDescriptiongetHand()
void
handle
(IServerPlayNetHandler p_148833_1_) boolean
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
-
entityId
private int entityId -
action
-
location
-
hand
-
usingSecondaryAction
private boolean usingSecondaryAction
-
-
Constructor Details
-
CUseEntityPacket
public CUseEntityPacket() -
CUseEntityPacket
-
CUseEntityPacket
-
CUseEntityPacket
-
-
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>
-
getTarget
-
getAction
-
getHand
-
getLocation
-
isUsingSecondaryAction
public boolean isUsingSecondaryAction()
-