net.minecraft.network.protocol.game

public class ServerboundInteractPacket

implements Packet<ServerGamePacketListener>

ye
net.minecraft.network.protocol.game.ServerboundInteractPacket
net.minecraft.class_2824
net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket
net.minecraft.src.C_5161_
net.minecraft.network.protocol.game.PacketPlayInUseEntity

Field summary

Modifier and TypeField
private final int
a
entityId
field_12870
entityId
f_134030_
private final ServerboundInteractPacket$Action
b
action
field_12871
type
f_134031_
private final boolean
c
usingSecondaryAction
field_25660
playerSneaking
f_134034_
static final ServerboundInteractPacket$Action
d
ATTACK_ACTION
field_29170
ATTACK
f_179595_

Constructor summary

ModifierConstructor
private (int entityId, boolean playerSneaking, ServerboundInteractPacket$Action type)
public (FriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
public static ServerboundInteractPacket
a(bbn arg0, boolean arg1)
createAttackPacket(Entity arg0, boolean arg1)
method_34206(class_1297 arg0, boolean arg1)
attack(Entity entity, boolean playerSneaking)
m_179605_(C_507_ p_179606_, boolean p_179607_)
public static ServerboundInteractPacket
a(bbn arg0, boolean arg1, bai arg2)
createInteractionPacket(Entity arg0, boolean arg1, InteractionHand arg2)
method_34207(class_1297 arg0, boolean arg1, class_1268 arg2)
interact(Entity entity, boolean playerSneaking, Hand hand)
m_179608_(C_507_ p_179609_, boolean p_179610_, C_470_ p_179611_)
public static ServerboundInteractPacket
a(bbn arg0, boolean arg1, bai arg2, dwq arg3)
createInteractionPacket(Entity arg0, boolean arg1, InteractionHand arg2, Vec3 arg3)
method_34208(class_1297 arg0, boolean arg1, class_1268 arg2, class_243 arg3)
interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos)
m_179612_(C_507_ p_179613_, boolean p_179614_, C_470_ p_179615_, C_3046_ p_179616_)
public void
a(qx arg0)
write(FriendlyByteBuf arg0)
method_11052(class_2540 arg0)
write(PacketByteBuf arg0)
m_5779_(C_4983_ arg0)
public void
a(xm arg0)
handle(ServerGamePacketListener arg0)
method_12251(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
m_5797_(C_5145_ arg0)
public Entity
a(agg arg0)
getTarget(ServerLevel arg0)
method_12248(class_3218 arg0)
getEntity(ServerWorld world)
m_179603_(C_12_ arg0)
public boolean
b()
isUsingSecondaryAction()
method_30007()
isPlayerSneaking()
m_134061_()
public void
a(ye$c arg0)
dispatch(ServerboundInteractPacket$Handler arg0)
method_34209(class_2824$class_5908 arg0)
handle(PlayerInteractEntityC2SPacket$Handler handler)
m_179617_(C_5161_$C_141876_ arg0)