Skip to content

Package net.minecraft.network.protocol.status

Part 1/1


ClientboundStatusResponsePacket

  • Full name: net.minecraft.network.protocol.status.ClientboundStatusResponsePacket
  • Package: net.minecraft.network.protocol.status
  • Source: commonnet/minecraft/network/protocol/status/ClientboundStatusResponsePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientStatusPacketListener>

net.minecraft.network.protocol.status.ClientboundStatusResponsePacket#handle(ClientStatusPacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ClientboundStatusResponsePacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleStatusResponse().

Parameters

  • ClientStatusPacketListener clientStatusPacketListener

ตัวอย่างใช้งาน

ClientboundStatusResponsePacket instance = ...;
ClientStatusPacketListener clientStatusPacketListener = ...;
instance.handle(clientStatusPacketListener);

net.minecraft.network.protocol.status.ClientboundStatusResponsePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ClientboundStatusResponsePacket.java:21
  • Modifiers: public
  • Return: PacketType<ClientboundStatusResponsePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundStatusResponsePacket

ทำงานยังไง

คืนค่า: StatusPacketTypes.CLIENTBOUND_STATUS_RESPONSE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStatusResponsePacket instance = ...;
PacketType<ClientboundStatusResponsePacket> result = instance.type();

ClientStatusPacketListener

  • Full name: net.minecraft.network.protocol.status.ClientStatusPacketListener
  • Package: net.minecraft.network.protocol.status
  • Source: commonnet/minecraft/network/protocol/status/ClientStatusPacketListener.java
  • Type: interface
  • Modifiers: public
  • Implements: ClientPongPacketListener,ClientboundPacketListener

net.minecraft.network.protocol.status.ClientStatusPacketListener#handleStatusResponse(ClientboundStatusResponsePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ClientStatusPacketListener.java:13
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Status Response

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundStatusResponsePacket clientboundStatusResponsePacket

ตัวอย่างใช้งาน

ClientStatusPacketListener instance = ...;
ClientboundStatusResponsePacket clientboundStatusResponsePacket = ...;
instance.handleStatusResponse(clientboundStatusResponsePacket);

net.minecraft.network.protocol.status.ClientStatusPacketListener#protocol()

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ClientStatusPacketListener.java:8
  • Modifiers: default
  • Return: ConnectionProtocol

คืออะไร

ดำเนินการ protocol ตาม implementation ของ ClientStatusPacketListener

ทำงานยังไง

คืนค่า: ConnectionProtocol.STATUS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientStatusPacketListener instance = ...;
ConnectionProtocol result = instance.protocol();

ServerboundStatusRequestPacket

  • Full name: net.minecraft.network.protocol.status.ServerboundStatusRequestPacket
  • Package: net.minecraft.network.protocol.status
  • Source: commonnet/minecraft/network/protocol/status/ServerboundStatusRequestPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerStatusPacketListener>

net.minecraft.network.protocol.status.ServerboundStatusRequestPacket#handle(ServerStatusPacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ServerboundStatusRequestPacket.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleStatusRequest().

Parameters

  • ServerStatusPacketListener serverStatusPacketListener

ตัวอย่างใช้งาน

ServerboundStatusRequestPacket instance = ...;
ServerStatusPacketListener serverStatusPacketListener = ...;
instance.handle(serverStatusPacketListener);

net.minecraft.network.protocol.status.ServerboundStatusRequestPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ServerboundStatusRequestPacket.java:15
  • Modifiers: public
  • Return: PacketType<ServerboundStatusRequestPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundStatusRequestPacket

ทำงานยังไง

คืนค่า: StatusPacketTypes.SERVERBOUND_STATUS_REQUEST.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundStatusRequestPacket instance = ...;
PacketType<ServerboundStatusRequestPacket> result = instance.type();

ServerStatus$Version

  • Full name: net.minecraft.network.protocol.status.ServerStatus$Version
  • Package: net.minecraft.network.protocol.status
  • Source: commonnet/minecraft/network/protocol/status/ServerStatus.java
  • Type: record
  • Modifiers: public

net.minecraft.network.protocol.status.ServerStatus$Version#current()

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ServerStatus.java:76
  • Modifiers: public static
  • Return: ServerStatus.Version

คืออะไร

ดำเนินการ current ตาม implementation ของ ServerStatus$Version

ทำงานยังไง

เรียกต่อ: getCurrentVersion(), Version(), getName(), getProtocolVersion(). สร้างออบเจ็กต์: ServerStatus.Version. คืนค่า: new ServerStatus.Version(worldVersion.getName(), worldVersion.getProtocolVersion()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerStatus.Version result = ServerStatus.Version.current();

ServerStatusPacketListener

  • Full name: net.minecraft.network.protocol.status.ServerStatusPacketListener
  • Package: net.minecraft.network.protocol.status
  • Source: commonnet/minecraft/network/protocol/status/ServerStatusPacketListener.java
  • Type: interface
  • Modifiers: public
  • Implements: ServerPacketListener,ServerPingPacketListener

net.minecraft.network.protocol.status.ServerStatusPacketListener#handleStatusRequest(ServerboundStatusRequestPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ServerStatusPacketListener.java:13
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Status Request

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundStatusRequestPacket serverboundStatusRequestPacket

ตัวอย่างใช้งาน

ServerStatusPacketListener instance = ...;
ServerboundStatusRequestPacket serverboundStatusRequestPacket = ...;
instance.handleStatusRequest(serverboundStatusRequestPacket);

net.minecraft.network.protocol.status.ServerStatusPacketListener#protocol()

  • Origin: common
  • Source: net/minecraft/network/protocol/status/ServerStatusPacketListener.java:8
  • Modifiers: default
  • Return: ConnectionProtocol

คืออะไร

ดำเนินการ protocol ตาม implementation ของ ServerStatusPacketListener

ทำงานยังไง

คืนค่า: ConnectionProtocol.STATUS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerStatusPacketListener instance = ...;
ConnectionProtocol result = instance.protocol();