net.minecraft.network.protocol.game

public class ServerboundInteractPacket

implements Packet<ServerGamePacketListener>

ahd
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
public static final StreamCodec<FriendlyByteBuf, ServerboundInteractPacket>
a
STREAM_CODEC
field_48195
CODEC
f_316172_
private final int
b
entityId
field_12870
entityId
f_134030_
private final ServerboundInteractPacket$Action
c
action
field_12871
type
f_134031_
private final boolean
d
usingSecondaryAction
field_25660
playerSneaking
f_134034_
static final ServerboundInteractPacket$Action
e
ATTACK_ACTION
field_29170
ATTACK
f_179595_

Constructor summary

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

Method summary

Modifier and TypeMethod
public static ServerboundInteractPacket
a(bsr 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(bsr arg0, boolean arg1, bqq 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(bsr arg0, boolean arg1, bqq arg2, exc 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_)
private void
a(vw arg0)
write(FriendlyByteBuf arg0)
method_55976(class_2540 arg0)
write(PacketByteBuf buf)
m_134057_(C_4983_ arg0)
public PacketType<ServerboundInteractPacket>
a()
type()
method_55846()
getPacketId()
m_5779_()
public void
a(agi arg0)
handle(ServerGamePacketListener arg0)
method_12251(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
m_5797_(C_5145_ arg0)
public Entity
a(aqu 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(ahd$c arg0)
dispatch(ServerboundInteractPacket$Handler arg0)
method_34209(class_2824$class_5908 arg0)
handle(PlayerInteractEntityC2SPacket$Handler handler)
m_179617_(C_5161_$C_141876_ arg0)