Class CUseEntityPacket
java.lang.Object
net.minecraft.network.play.client.CUseEntityPacket
- All Implemented Interfaces:
IPacket<IServerPlayNetHandler>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CUseEntityPacket.Actionprivate intprivate Handprivate Vector3dprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionCUseEntityPacket(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()voidhandle(IServerPlayNetHandler p_148833_1_) booleanvoidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readin interfaceIPacket<IServerPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IServerPlayNetHandler>- Throws:
IOException
-
handle
- Specified by:
handlein interfaceIPacket<IServerPlayNetHandler>
-
getTarget
-
getAction
-
getHand
-
getLocation
-
isUsingSecondaryAction
public boolean isUsingSecondaryAction()
-