Class ServerboundInteractPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundInteractPacket
- All Implemented Interfaces:
- Packet<ServerGamePacketListener>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static interface(package private) static enumstatic interface(package private) static class(package private) static class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ServerboundInteractPacket.Action(package private) static final ServerboundInteractPacket.Actionprivate final intprivate final boolean
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateServerboundInteractPacket(int p_179598_, boolean p_179599_, ServerboundInteractPacket.Action p_179600_) ServerboundInteractPacket(FriendlyByteBuf p_179602_) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ServerboundInteractPacketcreateAttackPacket(Entity p_179606_, boolean p_179607_) static ServerboundInteractPacketcreateInteractionPacket(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) static ServerboundInteractPacketcreateInteractionPacket(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) voiddispatch(ServerboundInteractPacket.Handler p_179618_) getTarget(ServerLevel p_179604_) voidhandle(ServerGamePacketListener p_134055_) booleanvoidwrite(FriendlyByteBuf p_134058_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
entityIdprivate final int entityId
- 
action
- 
usingSecondaryActionprivate final boolean usingSecondaryAction
- 
ATTACK_ACTION
 
- 
- 
Constructor Details- 
ServerboundInteractPacketprivate ServerboundInteractPacket(int p_179598_, boolean p_179599_, ServerboundInteractPacket.Action p_179600_) 
- 
ServerboundInteractPacket
 
- 
- 
Method Details- 
createAttackPacket
- 
createInteractionPacketpublic static ServerboundInteractPacket createInteractionPacket(Entity p_179609_, boolean p_179610_, InteractionHand p_179611_) 
- 
createInteractionPacketpublic static ServerboundInteractPacket createInteractionPacket(Entity p_179613_, boolean p_179614_, InteractionHand p_179615_, Vec3 p_179616_) 
- 
write- Specified by:
- writein interface- Packet<ServerGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ServerGamePacketListener>
 
- 
getTarget
- 
isUsingSecondaryActionpublic boolean isUsingSecondaryAction()
- 
dispatch
 
-