Class CUseEntityPacket
- java.lang.Object
-
- net.minecraft.network.play.client.CUseEntityPacket
-
- All Implemented Interfaces:
IPacket<IServerPlayNetHandler>
public class CUseEntityPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CUseEntityPacket.Action
-
Field Summary
Fields Modifier and Type Field Description private CUseEntityPacket.Action
action
private int
entityId
private Hand
hand
private Vector3d
location
private boolean
usingSecondaryAction
-
Constructor Summary
Constructors Constructor Description CUseEntityPacket()
CUseEntityPacket(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CUseEntityPacket.Action
getAction()
Hand
getHand()
Vector3d
getLocation()
Entity
getTarget(World p_149564_1_)
void
handle(IServerPlayNetHandler p_148833_1_)
boolean
isUsingSecondaryAction()
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
-
entityId
private int entityId
-
action
private CUseEntityPacket.Action action
-
location
private Vector3d location
-
hand
private Hand hand
-
usingSecondaryAction
private boolean usingSecondaryAction
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IServerPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IServerPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IServerPlayNetHandler>
-
getAction
public CUseEntityPacket.Action getAction()
-
getHand
@Nullable public Hand getHand()
-
getLocation
public Vector3d getLocation()
-
isUsingSecondaryAction
public boolean isUsingSecondaryAction()
-
-