net.minecraft.network.protocol.game

public class ServerboundInteractPacket

implements Packet<ServerGamePacketListener>

aii
net.minecraft.network.protocol.game.ServerboundInteractPacket
net.minecraft.class_2824
net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket
net.minecraft.network.protocol.game.PacketPlayInUseEntity

Field summary

Modifier and TypeField
public static final StreamCodec<FriendlyByteBuf, ServerboundInteractPacket>
a
STREAM_CODEC
field_48195
CODEC
private final int
b
entityId
field_12870
entityId
private final ServerboundInteractPacket$Action
c
action
field_12871
type
private final boolean
d
usingSecondaryAction
field_25660
playerSneaking
static final ServerboundInteractPacket$Action
e
ATTACK_ACTION
field_29170
ATTACK

Constructor summary

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

Method summary

Modifier and TypeMethod
public static ServerboundInteractPacket
a(bvk arg0, boolean arg1)
createAttackPacket(Entity arg0, boolean arg1)
method_34206(class_1297 arg0, boolean arg1)
attack(Entity entity, boolean playerSneaking)
public static ServerboundInteractPacket
a(bvk arg0, boolean arg1, bti 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)
public static ServerboundInteractPacket
a(bvk arg0, boolean arg1, bti arg2, fby 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)
private void
a(ws arg0)
write(FriendlyByteBuf arg0)
method_55976(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ServerboundInteractPacket>
a()
type()
method_55846()
getPacketId()
public void
a(ahm arg0)
handle(ServerGamePacketListener arg0)
method_12251(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public Entity
a(ash arg0)
getTarget(ServerLevel arg0)
method_12248(class_3218 arg0)
getEntity(ServerWorld world)
public boolean
b()
isUsingSecondaryAction()
method_30007()
isPlayerSneaking()
public void
a(aii$c arg0)
dispatch(ServerboundInteractPacket$Handler arg0)
method_34209(class_2824$class_5908 arg0)
handle(PlayerInteractEntityC2SPacket$Handler handler)