Skip to content

Package net.minecraft.network.protocol.game

Part 1/1


ClientboundAddEntityPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundAddEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundAddEntityPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#ClientboundAddEntityPacket(Entity,int,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:57
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAddEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getId(), getUUID(), getX(), getY(), getZ(), getXRot(), getYRot(), getType().

Parameters

  • Entity entity
  • int i
  • BlockPos blockPos

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

Entity entity = ...;
BlockPos blockPos = ...;
ClientboundAddEntityPacket instance = new ClientboundAddEntityPacket(entity, 0, blockPos);

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#ClientboundAddEntityPacket(Entity,ServerEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:37
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAddEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Entity entity
  • ServerEntity serverEntity

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

Entity entity = ...;
ServerEntity serverEntity = ...;
ClientboundAddEntityPacket instance = new ClientboundAddEntityPacket(entity, serverEntity);

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#ClientboundAddEntityPacket(Entity,ServerEntity,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:41
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAddEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getId(), getUUID(), getPositionBase(), x(), y(), z(), getLastSentXRot(), getLastSentYRot().

Parameters

  • Entity entity
  • ServerEntity serverEntity
  • int i

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

Entity entity = ...;
ServerEntity serverEntity = ...;
ClientboundAddEntityPacket instance = new ClientboundAddEntityPacket(entity, serverEntity, 0);

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#ClientboundAddEntityPacket(int,UUID,double,double,double,float,float,EntityType<?>,int,Vec3,double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:73
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAddEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, uuid, x, y, z, xRot. เรียกต่อ: packDegrees(), clamp().

Parameters

  • int i
  • UUID uUID
  • double d
  • double e
  • double f
  • float g
  • float h
  • EntityType<?> entityType
  • int j
  • Vec3 vec3
  • double k

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

UUID uUID = ...;
EntityType<?> entityType = ...;
Vec3 vec3 = ...;
ClientboundAddEntityPacket instance = new ClientboundAddEntityPacket(0, uUID, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F, entityType, 0, vec3, 0.0D);

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:178
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Data

ทำงานยังไง

คืนค่า: this.data.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
int result = instance.getData();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:130
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:138
  • Modifiers: public
  • Return: EntityType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: this.type.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
EntityType<?> result = instance.getType();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getUUID()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:134
  • Modifiers: public
  • Return: UUID

คืออะไร

อ่านค่า UUID

ทำงานยังไง

คืนค่า: this.uuid.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
UUID result = instance.getUUID();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:142
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getX();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getXa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:154
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Xa

ทำงานยังไง

คืนค่า: this.xa / 8000.0.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getXa();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getXRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:166
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า XRot

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.xRot).

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
float result = instance.getXRot();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getY()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:146
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getY();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getYa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:158
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Ya

ทำงานยังไง

คืนค่า: this.ya / 8000.0.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getYa();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getYHeadRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:174
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YHead Rot

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.yHeadRot).

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
float result = instance.getYHeadRot();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getYRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:170
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YRot

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.yRot).

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
float result = instance.getYRot();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:150
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#getZa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:162
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Za

ทำงานยังไง

คืนค่า: this.za / 8000.0.

Parameters

  • ไม่มี

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

ClientboundAddEntityPacket instance = ...;
double result = instance.getZa();

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:126
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundAddEntityPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundAddEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddEntityPacket.java:121
  • Modifiers: public
  • Return: PacketType<ClientboundAddEntityPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ADD_ENTITY.

Parameters

  • ไม่มี

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

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

ClientboundAddExperienceOrbPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#ClientboundAddExperienceOrbPacket(ExperienceOrb,ServerEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAddExperienceOrbPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, x, y, z, value. เรียกต่อ: getId(), getPositionBase(), x(), y(), z(), getValue().

Parameters

  • ExperienceOrb experienceOrb
  • ServerEntity serverEntity

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

ExperienceOrb experienceOrb = ...;
ServerEntity serverEntity = ...;
ClientboundAddExperienceOrbPacket instance = new ClientboundAddExperienceOrbPacket(experienceOrb, serverEntity);

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:55
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundAddExperienceOrbPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#getValue()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:71
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Value

ทำงานยังไง

คืนค่า: this.value.

Parameters

  • ไม่มี

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

ClientboundAddExperienceOrbPacket instance = ...;
int result = instance.getValue();

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:59
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundAddExperienceOrbPacket instance = ...;
double result = instance.getX();

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#getY()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:63
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y.

Parameters

  • ไม่มี

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

ClientboundAddExperienceOrbPacket instance = ...;
double result = instance.getY();

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:67
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundAddExperienceOrbPacket instance = ...;
double result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:51
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundAddExperienceOrbPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAddExperienceOrbPacket.java:46
  • Modifiers: public
  • Return: PacketType<ClientboundAddExperienceOrbPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ADD_EXPERIENCE_ORB.

Parameters

  • ไม่มี

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

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

ClientboundAnimatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundAnimatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundAnimatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundAnimatePacket#ClientboundAnimatePacket(Entity,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAnimatePacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundAnimatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, action. เรียกต่อ: getId().

Parameters

  • Entity entity
  • int i

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

Entity entity = ...;
ClientboundAnimatePacket instance = new ClientboundAnimatePacket(entity, 0);

net.minecraft.network.protocol.game.ClientboundAnimatePacket#getAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAnimatePacket.java:49
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Action

ทำงานยังไง

คืนค่า: this.action.

Parameters

  • ไม่มี

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

ClientboundAnimatePacket instance = ...;
int result = instance.getAction();

net.minecraft.network.protocol.game.ClientboundAnimatePacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAnimatePacket.java:45
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundAnimatePacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundAnimatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAnimatePacket.java:41
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundAnimatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundAnimatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAnimatePacket.java:36
  • Modifiers: public
  • Return: PacketType<ClientboundAnimatePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ANIMATE.

Parameters

  • ไม่มี

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

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

ClientboundAwardStatsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundAwardStatsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundAwardStatsPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundAwardStatsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAwardStatsPacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundAwardStatsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundAwardStatsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundAwardStatsPacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundAwardStatsPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_AWARD_STATS.

Parameters

  • ไม่มี

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

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

ClientboundBlockChangedAckPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBlockChangedAckPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBlockChangedAckPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBlockChangedAckPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBlockChangedAckPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBlockChangedAckPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BLOCK_CHANGED_ACK.

Parameters

  • ไม่มี

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

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

ClientboundBlockDestructionPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#ClientboundBlockDestructionPacket(int,BlockPos,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundBlockDestructionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, pos, progress.

Parameters

  • int i
  • BlockPos blockPos
  • int j

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

BlockPos blockPos = ...;
ClientboundBlockDestructionPacket instance = new ClientboundBlockDestructionPacket(0, blockPos, 0);

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:44
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundBlockDestructionPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:48
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundBlockDestructionPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#getProgress()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:52
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Progress

ทำงานยังไง

คืนค่า: this.progress.

Parameters

  • ไม่มี

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

ClientboundBlockDestructionPacket instance = ...;
int result = instance.getProgress();

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:40
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBlockDestructionPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBlockDestructionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockDestructionPacket.java:35
  • Modifiers: public
  • Return: PacketType<ClientboundBlockDestructionPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BLOCK_DESTRUCTION.

Parameters

  • ไม่มี

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

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

ClientboundBlockEntityDataPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#create(BlockEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:35
  • Modifiers: public static
  • Return: ClientboundBlockEntityDataPacket

คืออะไร

สร้าง create

ทำงานยังไง

คืนค่า: create(blockEntity, BlockEntity::getUpdateTag).

Parameters

  • BlockEntity blockEntity

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

BlockEntity blockEntity = ...;
ClientboundBlockEntityDataPacket result = ClientboundBlockEntityDataPacket.create(blockEntity);

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#create(BlockEntity,BiFunction<BlockEntity, RegistryAccess, CompoundTag>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:30
  • Modifiers: public static
  • Return: ClientboundBlockEntityDataPacket

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: getLevel(), registryAccess(), getBlockPos(), getType(), apply(). สร้างออบเจ็กต์: ClientboundBlockEntityDataPacket. คืนค่า: new ClientboundBlockEntityDataPacket(blockEntity.getBlockPos(), blockEntity.getType(), biFunction.apply(blockEntity, registryAccess)).

Parameters

  • BlockEntity blockEntity
  • BiFunction<BlockEntity, RegistryAccess, CompoundTag> biFunction

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

BlockEntity blockEntity = ...;
BiFunction<BlockEntity, RegistryAccess, CompoundTag> biFunction = ...;
ClientboundBlockEntityDataPacket result = ClientboundBlockEntityDataPacket.create(blockEntity, biFunction);

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:54
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundBlockEntityDataPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#getTag()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:62
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

อ่านค่า Tag

ทำงานยังไง

คืนค่า: this.tag.

Parameters

  • ไม่มี

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

ClientboundBlockEntityDataPacket instance = ...;
CompoundTag result = instance.getTag();

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#getType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:58
  • Modifiers: public
  • Return: BlockEntityType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: this.type.

Parameters

  • ไม่มี

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

ClientboundBlockEntityDataPacket instance = ...;
BlockEntityType<?> result = instance.getType();

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:50
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBlockEntityDataPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEntityDataPacket.java:45
  • Modifiers: public
  • Return: PacketType<ClientboundBlockEntityDataPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BLOCK_ENTITY_DATA.

Parameters

  • ไม่มี

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

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

ClientboundBlockEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBlockEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBlockEventPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#ClientboundBlockEventPacket(BlockPos,Block,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundBlockEventPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, block, b0, b1.

Parameters

  • BlockPos blockPos
  • Block block
  • int i
  • int j

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

BlockPos blockPos = ...;
Block block = ...;
ClientboundBlockEventPacket instance = new ClientboundBlockEventPacket(blockPos, block, 0, 0);

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#getB0()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:55
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า B0

ทำงานยังไง

คืนค่า: this.b0.

Parameters

  • ไม่มี

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

ClientboundBlockEventPacket instance = ...;
int result = instance.getB0();

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#getB1()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:59
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า B1

ทำงานยังไง

คืนค่า: this.b1.

Parameters

  • ไม่มี

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

ClientboundBlockEventPacket instance = ...;
int result = instance.getB1();

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#getBlock()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:63
  • Modifiers: public
  • Return: Block

คืออะไร

อ่านค่า Block

ทำงานยังไง

คืนค่า: this.block.

Parameters

  • ไม่มี

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

ClientboundBlockEventPacket instance = ...;
Block result = instance.getBlock();

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:51
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundBlockEventPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:47
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBlockEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBlockEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockEventPacket.java:42
  • Modifiers: public
  • Return: PacketType<ClientboundBlockEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BLOCK_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundBlockUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#ClientboundBlockUpdatePacket(BlockGetter,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:29
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundBlockUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

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

Parameters

  • BlockGetter blockGetter
  • BlockPos blockPos

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

BlockGetter blockGetter = ...;
BlockPos blockPos = ...;
ClientboundBlockUpdatePacket instance = new ClientboundBlockUpdatePacket(blockGetter, blockPos);

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#ClientboundBlockUpdatePacket(BlockPos,BlockState)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundBlockUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, blockState.

Parameters

  • BlockPos blockPos
  • BlockState blockState

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

BlockPos blockPos = ...;
BlockState blockState = ...;
ClientboundBlockUpdatePacket instance = new ClientboundBlockUpdatePacket(blockPos, blockState);

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#getBlockState()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:42
  • Modifiers: public
  • Return: BlockState

คืออะไร

อ่านค่า Block State

ทำงานยังไง

คืนค่า: this.blockState.

Parameters

  • ไม่มี

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

ClientboundBlockUpdatePacket instance = ...;
BlockState result = instance.getBlockState();

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:46
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundBlockUpdatePacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBlockUpdatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java:33
  • Modifiers: public
  • Return: PacketType<ClientboundBlockUpdatePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BLOCK_UPDATE.

Parameters

  • ไม่มี

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

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

ClientboundBossEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBossEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBossEventPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createAddPacket(BossEvent)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:49
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Add Packet

ทำงานยังไง

เรียกต่อ: getId(), AddOperation(). สร้างออบเจ็กต์: ClientboundBossEventPacket, ClientboundBossEventPacket.AddOperation. คืนค่า: new ClientboundBossEventPacket(bossEvent.getId(), new ClientboundBossEventPacket.AddOperation(bossEvent)).

Parameters

  • BossEvent bossEvent

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

BossEvent bossEvent = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createAddPacket(bossEvent);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createRemovePacket(UUID)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:53
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Remove Packet

ทำงานยังไง

สร้างออบเจ็กต์: ClientboundBossEventPacket. คืนค่า: new ClientboundBossEventPacket(uUID, REMOVE_OPERATION).

Parameters

  • UUID uUID

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

UUID uUID = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createRemovePacket(uUID);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createUpdateNamePacket(BossEvent)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:61
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Update Name Packet

ทำงานยังไง

เรียกต่อ: getId(), UpdateNameOperation(), getName(). สร้างออบเจ็กต์: ClientboundBossEventPacket, ClientboundBossEventPacket.UpdateNameOperation. คืนค่า: new ClientboundBossEventPacket(bossEvent.getId(), new ClientboundBossEventPacket.UpdateNameOperation(bossEvent.getName())).

Parameters

  • BossEvent bossEvent

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

BossEvent bossEvent = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createUpdateNamePacket(bossEvent);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createUpdateProgressPacket(BossEvent)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:57
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Update Progress Packet

ทำงานยังไง

เรียกต่อ: getId(), UpdateProgressOperation(), getProgress(). สร้างออบเจ็กต์: ClientboundBossEventPacket, ClientboundBossEventPacket.UpdateProgressOperation. คืนค่า: new ClientboundBossEventPacket(bossEvent.getId(), new ClientboundBossEventPacket.UpdateProgressOperation(bossEvent.getProgress())).

Parameters

  • BossEvent bossEvent

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

BossEvent bossEvent = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createUpdateProgressPacket(bossEvent);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createUpdatePropertiesPacket(BossEvent)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:69
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Update Properties Packet

ทำงานยังไง

เรียกต่อ: getId(), UpdatePropertiesOperation(), shouldDarkenScreen(), shouldPlayBossMusic(), shouldCreateWorldFog(). สร้างออบเจ็กต์: ClientboundBossEventPacket, ClientboundBossEventPacket.UpdatePropertiesOperation.

Parameters

  • BossEvent bossEvent

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

BossEvent bossEvent = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createUpdatePropertiesPacket(bossEvent);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#createUpdateStylePacket(BossEvent)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:65
  • Modifiers: public static
  • Return: ClientboundBossEventPacket

คืออะไร

สร้าง Update Style Packet

ทำงานยังไง

เรียกต่อ: getId(), UpdateStyleOperation(), getColor(), getOverlay(). สร้างออบเจ็กต์: ClientboundBossEventPacket, ClientboundBossEventPacket.UpdateStyleOperation. คืนค่า: new ClientboundBossEventPacket(bossEvent.getId(), new ClientboundBossEventPacket.UpdateStyleOperation(bossEvent.getColor(), bossEvent.getOverlay())).

Parameters

  • BossEvent bossEvent

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

BossEvent bossEvent = ...;
ClientboundBossEventPacket result = ClientboundBossEventPacket.createUpdateStylePacket(bossEvent);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#dispatch(ClientboundBossEventPacket.Handler)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:108
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ dispatch ตาม implementation ของ ClientboundBossEventPacket

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ClientboundBossEventPacket.Handler handler

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

ClientboundBossEventPacket instance = ...;
ClientboundBossEventPacket.Handler handler = ...;
instance.dispatch(handler);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:104
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBossEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBossEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:99
  • Modifiers: public
  • Return: PacketType<ClientboundBossEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BOSS_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundBossEventPacket$Handler

  • Full name: net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBossEventPacket.java
  • Type: interface
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#add(UUID,Component,float,BossEvent.BossBarColor,BossEvent.BossBarOverlay,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:163
  • Modifiers: default
  • Return: void

คืออะไร

เพิ่ม add

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID
  • Component component
  • float f
  • BossEvent.BossBarColor bossBarColor
  • BossEvent.BossBarOverlay bossBarOverlay
  • boolean bl
  • boolean bl2
  • boolean bl3

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
Component component = ...;
BossEvent.BossBarColor bossBarColor = ...;
BossEvent.BossBarOverlay bossBarOverlay = ...;
instance.add(uUID, component, 0.0F, bossBarColor, bossBarOverlay, true, true, true);

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#remove(UUID)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:168
  • Modifiers: default
  • Return: void

คืออะไร

ลบ remove

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
instance.remove(uUID);

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#updateName(UUID,Component)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:174
  • Modifiers: default
  • Return: void

คืออะไร

อัปเดต Name

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID
  • Component component

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
Component component = ...;
instance.updateName(uUID, component);

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#updateProgress(UUID,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:171
  • Modifiers: default
  • Return: void

คืออะไร

อัปเดต Progress

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID
  • float f

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
instance.updateProgress(uUID, 0.0F);

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#updateProperties(UUID,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:180
  • Modifiers: default
  • Return: void

คืออะไร

อัปเดต Properties

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID
  • boolean bl
  • boolean bl2
  • boolean bl3

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
instance.updateProperties(uUID, true, true, true);

net.minecraft.network.protocol.game.ClientboundBossEventPacket$Handler#updateStyle(UUID,BossEvent.BossBarColor,BossEvent.BossBarOverlay)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBossEventPacket.java:177
  • Modifiers: default
  • Return: void

คืออะไร

อัปเดต Style

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • UUID uUID
  • BossEvent.BossBarColor bossBarColor
  • BossEvent.BossBarOverlay bossBarOverlay

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

ClientboundBossEventPacket.Handler instance = ...;
UUID uUID = ...;
BossEvent.BossBarColor bossBarColor = ...;
BossEvent.BossBarOverlay bossBarOverlay = ...;
instance.updateStyle(uUID, bossBarColor, bossBarOverlay);

ClientboundBundleDelimiterPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBundleDelimiterPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBundleDelimiterPacket.java
  • Type: class
  • Modifiers: public
  • Extends: BundleDelimiterPacket<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBundleDelimiterPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBundleDelimiterPacket.java:7
  • Modifiers: public
  • Return: PacketType<ClientboundBundleDelimiterPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BUNDLE_DELIMITER.

Parameters

  • ไม่มี

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

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

ClientboundBundlePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundBundlePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundBundlePacket.java
  • Type: class
  • Modifiers: public
  • Extends: BundlePacket<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundBundlePacket#ClientboundBundlePacket(Iterable<Packet<? super ClientGamePacketListener>>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBundlePacket.java:8
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundBundlePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Iterable<Packet<? super ClientGamePacketListener>> iterable

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

Iterable<Packet<? super ClientGamePacketListener>> iterable = ...;
ClientboundBundlePacket instance = new ClientboundBundlePacket(iterable);

net.minecraft.network.protocol.game.ClientboundBundlePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBundlePacket.java:17
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundBundlePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundBundlePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundBundlePacket.java:12
  • Modifiers: public
  • Return: PacketType<ClientboundBundlePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_BUNDLE.

Parameters

  • ไม่มี

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

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

ClientboundChangeDifficultyPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket#ClientboundChangeDifficultyPacket(Difficulty,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundChangeDifficultyPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: difficulty, locked.

Parameters

  • Difficulty difficulty
  • boolean bl

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

Difficulty difficulty = ...;
ClientboundChangeDifficultyPacket instance = new ClientboundChangeDifficultyPacket(difficulty, true);

net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket#getDifficulty()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java:44
  • Modifiers: public
  • Return: Difficulty

คืออะไร

อ่านค่า Difficulty

ทำงานยังไง

คืนค่า: this.difficulty.

Parameters

  • ไม่มี

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

ClientboundChangeDifficultyPacket instance = ...;
Difficulty result = instance.getDifficulty();

net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundChangeDifficultyPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket#isLocked()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java:40
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Locked

ทำงานยังไง

คืนค่า: this.locked.

Parameters

  • ไม่มี

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

ClientboundChangeDifficultyPacket instance = ...;
boolean result = instance.isLocked();

net.minecraft.network.protocol.game.ClientboundChangeDifficultyPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChangeDifficultyPacket.java:31
  • Modifiers: public
  • Return: PacketType<ClientboundChangeDifficultyPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CHANGE_DIFFICULTY.

Parameters

  • ไม่มี

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

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

ClientboundChunkBatchFinishedPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundChunkBatchFinishedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundChunkBatchFinishedPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundChunkBatchFinishedPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundChunkBatchFinishedPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundChunkBatchFinishedPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CHUNK_BATCH_FINISHED.

Parameters

  • ไม่มี

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

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

ClientboundChunkBatchStartPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundChunkBatchStartPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundChunkBatchStartPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundChunkBatchStartPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundChunkBatchStartPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundChunkBatchStartPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CHUNK_BATCH_START.

Parameters

  • ไม่มี

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

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

ClientboundChunksBiomesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket#forChunks(List<LevelChunk>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:24
  • Modifiers: public static
  • Return: ClientboundChunksBiomesPacket

คืออะไร

ดำเนินการ forChunks ตาม implementation ของ ClientboundChunksBiomesPacket

ทำงานยังไง

เรียกต่อ: stream(), map(), toList(). สร้างออบเจ็กต์: ClientboundChunksBiomesPacket. คืนค่า: new ClientboundChunksBiomesPacket(list.stream().map(ClientboundChunksBiomesPacket.ChunkBiomeData::new).toList()).

Parameters

  • List<LevelChunk> list

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

List<LevelChunk> list = ...;
ClientboundChunksBiomesPacket result = ClientboundChunksBiomesPacket.forChunks(list);

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:37
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundChunksBiomesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:32
  • Modifiers: public
  • Return: PacketType<ClientboundChunksBiomesPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CHUNKS_BIOMES.

Parameters

  • ไม่มี

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

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

ClientboundChunksBiomesPacket$ChunkBiomeData

  • Full name: net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java
  • Type: record
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData#ChunkBiomeData(FriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:47
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundChunksBiomesPacket.ChunkBiomeData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: readChunkPos(), readByteArray().

Parameters

  • FriendlyByteBuf friendlyByteBuf

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

FriendlyByteBuf friendlyByteBuf = ...;
ClientboundChunksBiomesPacket.ChunkBiomeData instance = new ClientboundChunksBiomesPacket.ChunkBiomeData(friendlyByteBuf);

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData#ChunkBiomeData(LevelChunk)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:42
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundChunksBiomesPacket.ChunkBiomeData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getPos(), calculateChunkSize(), extractChunkData(), getWriteBuffer(). สร้างออบเจ็กต์: FriendlyByteBuf.

Parameters

  • LevelChunk levelChunk

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

LevelChunk levelChunk = ...;
ClientboundChunksBiomesPacket.ChunkBiomeData instance = new ClientboundChunksBiomesPacket.ChunkBiomeData(levelChunk);

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData#extractChunkData(FriendlyByteBuf,LevelChunk)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:71
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ extractChunkData ตาม implementation ของ ClientboundChunksBiomesPacket$ChunkBiomeData

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getSections(), getBiomes(), write().

Parameters

  • FriendlyByteBuf friendlyByteBuf
  • LevelChunk levelChunk

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

FriendlyByteBuf friendlyByteBuf = ...;
LevelChunk levelChunk = ...;
ClientboundChunksBiomesPacket.ChunkBiomeData.extractChunkData(friendlyByteBuf, levelChunk);

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData#getReadBuffer()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:61
  • Modifiers: public
  • Return: FriendlyByteBuf

คืออะไร

อ่านค่า Read Buffer

ทำงานยังไง

เรียกต่อ: wrappedBuffer(). สร้างออบเจ็กต์: FriendlyByteBuf. คืนค่า: new FriendlyByteBuf(Unpooled.wrappedBuffer(this.buffer)).

Parameters

  • ไม่มี

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

ClientboundChunksBiomesPacket.ChunkBiomeData instance = ...;
FriendlyByteBuf result = instance.getReadBuffer();

net.minecraft.network.protocol.game.ClientboundChunksBiomesPacket$ChunkBiomeData#write(FriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket.java:77
  • Modifiers: public
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: writeChunkPos(), writeByteArray().

Parameters

  • FriendlyByteBuf friendlyByteBuf

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

ClientboundChunksBiomesPacket.ChunkBiomeData instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);

ClientboundClearTitlesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundClearTitlesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundClearTitlesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundClearTitlesPacket#ClientboundClearTitlesPacket(boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundClearTitlesPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundClearTitlesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: resetTimes.

Parameters

  • boolean bl

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

ClientboundClearTitlesPacket instance = new ClientboundClearTitlesPacket(true);

net.minecraft.network.protocol.game.ClientboundClearTitlesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundClearTitlesPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundClearTitlesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundClearTitlesPacket#shouldResetTimes()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundClearTitlesPacket.java:35
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Reset Times

ทำงานยังไง

คืนค่า: this.resetTimes.

Parameters

  • ไม่มี

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

ClientboundClearTitlesPacket instance = ...;
boolean result = instance.shouldResetTimes();

net.minecraft.network.protocol.game.ClientboundClearTitlesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundClearTitlesPacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundClearTitlesPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CLEAR_TITLES.

Parameters

  • ไม่มี

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

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

ClientboundCommandsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundCommandsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundCommandsPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundCommandsPacket#ClientboundCommandsPacket(RootCommandNode<SharedSuggestionProvider>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandsPacket.java:50
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundCommandsPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entries, rootIndex. เรียกต่อ: enumerateNodes(), createEntries(), getInt().

Parameters

  • RootCommandNode<SharedSuggestionProvider> rootCommandNode

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

RootCommandNode<SharedSuggestionProvider> rootCommandNode = ...;
ClientboundCommandsPacket instance = new ClientboundCommandsPacket(rootCommandNode);

net.minecraft.network.protocol.game.ClientboundCommandsPacket#getRoot(CommandBuildContext)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandsPacket.java:192
  • Modifiers: public
  • Return: RootCommandNode<SharedSuggestionProvider>

คืออะไร

อ่านค่า Root

ทำงานยังไง

เรียกต่อ: NodeResolver(), resolve(). สร้างออบเจ็กต์: ClientboundCommandsPacket.NodeResolver. คืนค่า: (RootCommandNode<SharedSuggestionProvider>)new ClientboundCommandsPacket.NodeResolver(commandBuildContext, this.entries).resolve(this.rootIndex).

Parameters

  • CommandBuildContext commandBuildContext

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

ClientboundCommandsPacket instance = ...;
CommandBuildContext commandBuildContext = ...;
RootCommandNode<SharedSuggestionProvider> result = instance.getRoot(commandBuildContext);

net.minecraft.network.protocol.game.ClientboundCommandsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandsPacket.java:188
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundCommandsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundCommandsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandsPacket.java:183
  • Modifiers: public
  • Return: PacketType<ClientboundCommandsPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_COMMANDS.

Parameters

  • ไม่มี

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

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

ClientboundCommandSuggestionsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundCommandSuggestionsPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket#ClientboundCommandSuggestionsPacket(int,Suggestions)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandSuggestionsPacket.java:31
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundCommandSuggestionsPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getRange(), getStart(), getLength(), getList(), stream(), map(), Entry(), getText(). สร้างออบเจ็กต์: ClientboundCommandSuggestionsPacket.Entry.

Parameters

  • int i
  • Suggestions suggestions

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

Suggestions suggestions = ...;
ClientboundCommandSuggestionsPacket instance = new ClientboundCommandSuggestionsPacket(0, suggestions);

net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandSuggestionsPacket.java:52
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundCommandSuggestionsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket#toSuggestions()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandSuggestionsPacket.java:56
  • Modifiers: public
  • Return: Suggestions

คืออะไร

ดำเนินการ toSuggestions ตาม implementation ของ ClientboundCommandSuggestionsPacket

ทำงานยังไง

เรียกต่อ: between(), stream(), map(), text(), tooltip(), orElse(), toList(). สร้างออบเจ็กต์: Suggestions, Suggestion. คืนค่า: new Suggestions(stringRange, this.suggestions.stream().map(entry -> new Suggestion(stringRange, entry.text(), entry.tooltip().orElse(null))).toList()).

Parameters

  • ไม่มี

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

ClientboundCommandSuggestionsPacket instance = ...;
Suggestions result = instance.toSuggestions();

net.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCommandSuggestionsPacket.java:47
  • Modifiers: public
  • Return: PacketType<ClientboundCommandSuggestionsPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_COMMAND_SUGGESTIONS.

Parameters

  • ไม่มี

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

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

ClientboundContainerClosePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundContainerClosePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundContainerClosePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundContainerClosePacket#ClientboundContainerClosePacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerClosePacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundContainerClosePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId.

Parameters

  • int i

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

ClientboundContainerClosePacket instance = new ClientboundContainerClosePacket(0);

net.minecraft.network.protocol.game.ClientboundContainerClosePacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerClosePacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundContainerClosePacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundContainerClosePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerClosePacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundContainerClosePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundContainerClosePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerClosePacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundContainerClosePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CONTAINER_CLOSE.

Parameters

  • ไม่มี

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

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

ClientboundContainerSetContentPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#ClientboundContainerSetContentPacket(int,int,NonNullList<ItemStack>,ItemStack)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundContainerSetContentPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: containerId, stateId, items, carriedItem. เรียกต่อ: withSize(), size(), set(), get(), copy().

Parameters

  • int i
  • int j
  • NonNullList<ItemStack> nonNullList
  • ItemStack itemStack

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

NonNullList<ItemStack> nonNullList = ...;
ItemStack itemStack = ...;
ClientboundContainerSetContentPacket instance = new ClientboundContainerSetContentPacket(0, 0, nonNullList, itemStack);

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#getCarriedItem()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:63
  • Modifiers: public
  • Return: ItemStack

คืออะไร

อ่านค่า Carried Item

ทำงานยังไง

คืนค่า: this.carriedItem.

Parameters

  • ไม่มี

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

ClientboundContainerSetContentPacket instance = ...;
ItemStack result = instance.getCarriedItem();

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:55
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundContainerSetContentPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#getItems()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:59
  • Modifiers: public
  • Return: List<ItemStack>

คืออะไร

อ่านค่า Items

ทำงานยังไง

คืนค่า: this.items.

Parameters

  • ไม่มี

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

ClientboundContainerSetContentPacket instance = ...;
List<ItemStack> result = instance.getItems();

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#getStateId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:67
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า State Id

ทำงานยังไง

คืนค่า: this.stateId.

Parameters

  • ไม่มี

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

ClientboundContainerSetContentPacket instance = ...;
int result = instance.getStateId();

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:51
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundContainerSetContentPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetContentPacket.java:46
  • Modifiers: public
  • Return: PacketType<ClientboundContainerSetContentPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CONTAINER_SET_CONTENT.

Parameters

  • ไม่มี

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

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

ClientboundContainerSetDataPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#ClientboundContainerSetDataPacket(int,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundContainerSetDataPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, id, value.

Parameters

  • int i
  • int j
  • int k

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

ClientboundContainerSetDataPacket instance = new ClientboundContainerSetDataPacket(0, 0, 0);

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundContainerSetDataPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundContainerSetDataPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#getValue()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Value

ทำงานยังไง

คืนค่า: this.value.

Parameters

  • ไม่มี

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

ClientboundContainerSetDataPacket instance = ...;
int result = instance.getValue();

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundContainerSetDataPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundContainerSetDataPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetDataPacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundContainerSetDataPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CONTAINER_SET_DATA.

Parameters

  • ไม่มี

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

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

ClientboundContainerSetSlotPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#ClientboundContainerSetSlotPacket(int,int,int,ItemStack)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundContainerSetSlotPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, stateId, slot, itemStack. เรียกต่อ: copy().

Parameters

  • int i
  • int j
  • int k
  • ItemStack itemStack

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

ItemStack itemStack = ...;
ClientboundContainerSetSlotPacket instance = new ClientboundContainerSetSlotPacket(0, 0, 0, itemStack);

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:48
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundContainerSetSlotPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#getItem()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:56
  • Modifiers: public
  • Return: ItemStack

คืออะไร

อ่านค่า Item

ทำงานยังไง

คืนค่า: this.itemStack.

Parameters

  • ไม่มี

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

ClientboundContainerSetSlotPacket instance = ...;
ItemStack result = instance.getItem();

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#getSlot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:52
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Slot

ทำงานยังไง

คืนค่า: this.slot.

Parameters

  • ไม่มี

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

ClientboundContainerSetSlotPacket instance = ...;
int result = instance.getSlot();

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#getStateId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:60
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า State Id

ทำงานยังไง

คืนค่า: this.stateId.

Parameters

  • ไม่มี

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

ClientboundContainerSetSlotPacket instance = ...;
int result = instance.getStateId();

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundContainerSetSlotPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundContainerSetSlotPacket.java:39
  • Modifiers: public
  • Return: PacketType<ClientboundContainerSetSlotPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CONTAINER_SET_SLOT.

Parameters

  • ไม่มี

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

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

ClientboundCooldownPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundCooldownPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundCooldownPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundCooldownPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCooldownPacket.java:24
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundCooldownPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundCooldownPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCooldownPacket.java:19
  • Modifiers: public
  • Return: PacketType<ClientboundCooldownPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_COOLDOWN.

Parameters

  • ไม่มี

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

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

ClientboundCustomChatCompletionsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundCustomChatCompletionsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundCustomChatCompletionsPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundCustomChatCompletionsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCustomChatCompletionsPacket.java:29
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundCustomChatCompletionsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundCustomChatCompletionsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundCustomChatCompletionsPacket.java:24
  • Modifiers: public
  • Return: PacketType<ClientboundCustomChatCompletionsPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_CUSTOM_CHAT_COMPLETIONS.

Parameters

  • ไม่มี

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

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

ClientboundDamageEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundDamageEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundDamageEventPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundDamageEventPacket#ClientboundDamageEventPacket(Entity,DamageSource)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDamageEventPacket.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundDamageEventPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getId(), typeHolder(), getEntity(), getDirectEntity(), ofNullable(), sourcePositionRaw().

Parameters

  • Entity entity
  • DamageSource damageSource

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

Entity entity = ...;
DamageSource damageSource = ...;
ClientboundDamageEventPacket instance = new ClientboundDamageEventPacket(entity, damageSource);

net.minecraft.network.protocol.game.ClientboundDamageEventPacket#getSource(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDamageEventPacket.java:71
  • Modifiers: public
  • Return: DamageSource

คืออะไร

อ่านค่า Source

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isPresent(), get(), getEntity(). สร้างออบเจ็กต์: DamageSource. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Level level

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

ClientboundDamageEventPacket instance = ...;
Level level = ...;
DamageSource result = instance.getSource(level);

net.minecraft.network.protocol.game.ClientboundDamageEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDamageEventPacket.java:67
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundDamageEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundDamageEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDamageEventPacket.java:62
  • Modifiers: public
  • Return: PacketType<ClientboundDamageEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_DAMAGE_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundDebugSamplePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundDebugSamplePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundDebugSamplePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundDebugSamplePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDebugSamplePacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundDebugSamplePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundDebugSamplePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDebugSamplePacket.java:23
  • Modifiers: public
  • Return: PacketType<ClientboundDebugSamplePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_DEBUG_SAMPLE.

Parameters

  • ไม่มี

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

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

ClientboundDeleteChatPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundDeleteChatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundDeleteChatPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundDeleteChatPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDeleteChatPacket.java:27
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundDeleteChatPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundDeleteChatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDeleteChatPacket.java:22
  • Modifiers: public
  • Return: PacketType<ClientboundDeleteChatPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_DELETE_CHAT.

Parameters

  • ไม่มี

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

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

ClientboundDisguisedChatPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundDisguisedChatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundDisguisedChatPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundDisguisedChatPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDisguisedChatPacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundDisguisedChatPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundDisguisedChatPacket#isSkippable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDisguisedChatPacket.java:29
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Skippable

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

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

ClientboundDisguisedChatPacket instance = ...;
boolean result = instance.isSkippable();

net.minecraft.network.protocol.game.ClientboundDisguisedChatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundDisguisedChatPacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundDisguisedChatPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_DISGUISED_CHAT.

Parameters

  • ไม่มี

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

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

ClientboundEntityEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundEntityEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundEntityEventPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundEntityEventPacket#ClientboundEntityEventPacket(Entity,byte)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityEventPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundEntityEventPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityId, eventId. เรียกต่อ: getId().

Parameters

  • Entity entity
  • byte b

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

Entity entity = ...;
ClientboundEntityEventPacket instance = new ClientboundEntityEventPacket(entity, 0);

net.minecraft.network.protocol.game.ClientboundEntityEventPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityEventPacket.java:42
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.entityId).

Parameters

  • Level level

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

ClientboundEntityEventPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundEntityEventPacket#getEventId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityEventPacket.java:47
  • Modifiers: public
  • Return: byte

คืออะไร

อ่านค่า Event Id

ทำงานยังไง

คืนค่า: this.eventId.

Parameters

  • ไม่มี

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

ClientboundEntityEventPacket instance = ...;
byte result = instance.getEventId();

net.minecraft.network.protocol.game.ClientboundEntityEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityEventPacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundEntityEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundEntityEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityEventPacket.java:33
  • Modifiers: public
  • Return: PacketType<ClientboundEntityEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ENTITY_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundEntityPositionSyncPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundEntityPositionSyncPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundEntityPositionSyncPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundEntityPositionSyncPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityPositionSyncPacket.java:33
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundEntityPositionSyncPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundEntityPositionSyncPacket#of(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityPositionSyncPacket.java:22
  • Modifiers: public static
  • Return: ClientboundEntityPositionSyncPacket

คืออะไร

ดำเนินการ of ตาม implementation ของ ClientboundEntityPositionSyncPacket

ทำงานยังไง

เรียกต่อ: getId(), trackingPosition(), getDeltaMovement(), getYRot(), getXRot(), onGround(). สร้างออบเจ็กต์: ClientboundEntityPositionSyncPacket, PositionMoveRotation.

Parameters

  • Entity entity

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

Entity entity = ...;
ClientboundEntityPositionSyncPacket result = ClientboundEntityPositionSyncPacket.of(entity);

net.minecraft.network.protocol.game.ClientboundEntityPositionSyncPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundEntityPositionSyncPacket.java:28
  • Modifiers: public
  • Return: PacketType<ClientboundEntityPositionSyncPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ENTITY_POSITION_SYNC.

Parameters

  • ไม่มี

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

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

ClientboundExplodePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundExplodePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundExplodePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundExplodePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundExplodePacket.java:34
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundExplodePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundExplodePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundExplodePacket.java:29
  • Modifiers: public
  • Return: PacketType<ClientboundExplodePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_EXPLODE.

Parameters

  • ไม่มี

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

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

ClientboundForgetLevelChunkPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundForgetLevelChunkPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundForgetLevelChunkPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundForgetLevelChunkPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundForgetLevelChunkPacket.java:27
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundForgetLevelChunkPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundForgetLevelChunkPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundForgetLevelChunkPacket.java:22
  • Modifiers: public
  • Return: PacketType<ClientboundForgetLevelChunkPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_FORGET_LEVEL_CHUNK.

Parameters

  • ไม่มี

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

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

ClientboundGameEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundGameEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundGameEventPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundGameEventPacket#ClientboundGameEventPacket(ClientboundGameEventPacket.Type,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:36
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundGameEventPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: event, param.

Parameters

  • ClientboundGameEventPacket.Type type
  • float f

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

ClientboundGameEventPacket.Type type = ...;
ClientboundGameEventPacket instance = new ClientboundGameEventPacket(type, 0.0F);

net.minecraft.network.protocol.game.ClientboundGameEventPacket#getEvent()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:60
  • Modifiers: public
  • Return: ClientboundGameEventPacket.Type

คืออะไร

อ่านค่า Event

ทำงานยังไง

คืนค่า: this.event.

Parameters

  • ไม่มี

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

ClientboundGameEventPacket instance = ...;
ClientboundGameEventPacket.Type result = instance.getEvent();

net.minecraft.network.protocol.game.ClientboundGameEventPacket#getParam()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:64
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Param

ทำงานยังไง

คืนค่า: this.param.

Parameters

  • ไม่มี

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

ClientboundGameEventPacket instance = ...;
float result = instance.getParam();

net.minecraft.network.protocol.game.ClientboundGameEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:56
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundGameEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundGameEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:51
  • Modifiers: public
  • Return: PacketType<ClientboundGameEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_GAME_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundGameEventPacket$Type

  • Full name: net.minecraft.network.protocol.game.ClientboundGameEventPacket$Type
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundGameEventPacket.java
  • Type: class
  • Modifiers: public static

net.minecraft.network.protocol.game.ClientboundGameEventPacket$Type#Type(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundGameEventPacket.java:72
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundGameEventPacket.Type ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id. เรียกต่อ: put().

Parameters

  • int i

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

ClientboundGameEventPacket.Type instance = new ClientboundGameEventPacket.Type(0);

ClientboundHorseScreenOpenPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#ClientboundHorseScreenOpenPacket(int,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundHorseScreenOpenPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, inventoryColumns, entityId.

Parameters

  • int i
  • int j
  • int k

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

ClientboundHorseScreenOpenPacket instance = new ClientboundHorseScreenOpenPacket(0, 0, 0);

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundHorseScreenOpenPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#getEntityId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Entity Id

ทำงานยังไง

คืนค่า: this.entityId.

Parameters

  • ไม่มี

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

ClientboundHorseScreenOpenPacket instance = ...;
int result = instance.getEntityId();

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#getInventoryColumns()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Inventory Columns

ทำงานยังไง

คืนค่า: this.inventoryColumns.

Parameters

  • ไม่มี

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

ClientboundHorseScreenOpenPacket instance = ...;
int result = instance.getInventoryColumns();

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundHorseScreenOpenPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHorseScreenOpenPacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundHorseScreenOpenPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_HORSE_SCREEN_OPEN.

Parameters

  • ไม่มี

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

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

ClientboundHurtAnimationPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundHurtAnimationPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundHurtAnimationPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundHurtAnimationPacket#ClientboundHurtAnimationPacket(LivingEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHurtAnimationPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundHurtAnimationPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getId(), getHurtDir().

Parameters

  • LivingEntity livingEntity

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

LivingEntity livingEntity = ...;
ClientboundHurtAnimationPacket instance = new ClientboundHurtAnimationPacket(livingEntity);

net.minecraft.network.protocol.game.ClientboundHurtAnimationPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHurtAnimationPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundHurtAnimationPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundHurtAnimationPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundHurtAnimationPacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundHurtAnimationPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_HURT_ANIMATION.

Parameters

  • ไม่มี

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

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

ClientboundInitializeBorderPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#ClientboundInitializeBorderPacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundInitializeBorderPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: newCenterX, newCenterZ, oldSize, newSize, lerpTime, newAbsoluteMaxSize. เรียกต่อ: getCenterX(), getCenterZ(), getSize(), getLerpTarget(), getLerpRemainingTime(), getAbsoluteMaxSize(), getWarningBlocks(), getWarningTime().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundInitializeBorderPacket instance = new ClientboundInitializeBorderPacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getLerpTime()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:80
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Lerp Time

ทำงานยังไง

คืนค่า: this.lerpTime.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
long result = instance.getLerpTime();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getNewAbsoluteMaxSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:84
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า New Absolute Max Size

ทำงานยังไง

คืนค่า: this.newAbsoluteMaxSize.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
int result = instance.getNewAbsoluteMaxSize();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getNewCenterX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:64
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Center X

ทำงานยังไง

คืนค่า: this.newCenterX.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
double result = instance.getNewCenterX();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getNewCenterZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:68
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Center Z

ทำงานยังไง

คืนค่า: this.newCenterZ.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
double result = instance.getNewCenterZ();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getNewSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:72
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Size

ทำงานยังไง

คืนค่า: this.newSize.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
double result = instance.getNewSize();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getOldSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:76
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Old Size

ทำงานยังไง

คืนค่า: this.oldSize.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
double result = instance.getOldSize();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getWarningBlocks()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:92
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Warning Blocks

ทำงานยังไง

คืนค่า: this.warningBlocks.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
int result = instance.getWarningBlocks();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#getWarningTime()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:88
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Warning Time

ทำงานยังไง

คืนค่า: this.warningTime.

Parameters

  • ไม่มี

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

ClientboundInitializeBorderPacket instance = ...;
int result = instance.getWarningTime();

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:60
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundInitializeBorderPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundInitializeBorderPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket.java:55
  • Modifiers: public
  • Return: PacketType<ClientboundInitializeBorderPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_INITIALIZE_BORDER.

Parameters

  • ไม่มี

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

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

ClientboundLevelChunkPacketData

  • Full name: net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java
  • Type: class
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#ClientboundLevelChunkPacketData(LevelChunk)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:31
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLevelChunkPacketData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: heightmaps, buffer, blockEntitiesData. เรียกต่อ: getHeightmaps(), getKey(), sendToClient(), put(), getSerializationKey(), getValue(), getRawData(), calculateChunkSize(). สร้างออบเจ็กต์: CompoundTag, LongArrayTag, FriendlyByteBuf.

Parameters

  • LevelChunk levelChunk

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

LevelChunk levelChunk = ...;
ClientboundLevelChunkPacketData instance = new ClientboundLevelChunkPacketData(levelChunk);

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#ClientboundLevelChunkPacketData(RegistryFriendlyByteBuf,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:49
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLevelChunkPacketData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: heightmaps, buffer, blockEntitiesData. เรียกต่อ: readNbt(), readVarInt(), readBytes(), decode(). สร้างออบเจ็กต์: RuntimeException.

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf
  • int i
  • int j

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

RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
ClientboundLevelChunkPacketData instance = new ClientboundLevelChunkPacketData(registryFriendlyByteBuf, 0, 0);

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#extractChunkData(FriendlyByteBuf,LevelChunk)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:88
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ extractChunkData ตาม implementation ของ ClientboundLevelChunkPacketData

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getSections(), write().

Parameters

  • FriendlyByteBuf friendlyByteBuf
  • LevelChunk levelChunk

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

FriendlyByteBuf friendlyByteBuf = ...;
LevelChunk levelChunk = ...;
ClientboundLevelChunkPacketData.extractChunkData(friendlyByteBuf, levelChunk);

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#getBlockEntitiesTagsConsumer(int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:94
  • Modifiers: public
  • Return: Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput>

คืออะไร

อ่านค่า Block Entities Tags Consumer

ทำงานยังไง

เรียกต่อ: getBlockEntitiesTags(). คืนค่า: blockEntityTagOutput -> this.getBlockEntitiesTags(blockEntityTagOutput, i, j).

Parameters

  • int i
  • int j

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

ClientboundLevelChunkPacketData instance = ...;
Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> result = instance.getBlockEntitiesTagsConsumer(0, 0);

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#getHeightmaps()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:115
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

อ่านค่า Heightmaps

ทำงานยังไง

คืนค่า: this.heightmaps.

Parameters

  • ไม่มี

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

ClientboundLevelChunkPacketData instance = ...;
CompoundTag result = instance.getHeightmaps();

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#getReadBuffer()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:111
  • Modifiers: public
  • Return: FriendlyByteBuf

คืออะไร

อ่านค่า Read Buffer

ทำงานยังไง

เรียกต่อ: wrappedBuffer(). สร้างออบเจ็กต์: FriendlyByteBuf. คืนค่า: new FriendlyByteBuf(Unpooled.wrappedBuffer(this.buffer)).

Parameters

  • ไม่มี

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

ClientboundLevelChunkPacketData instance = ...;
FriendlyByteBuf result = instance.getReadBuffer();

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData#write(RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:65
  • Modifiers: public
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: writeNbt(), writeVarInt(), writeBytes(), encode().

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf

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

ClientboundLevelChunkPacketData instance = ...;
RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
instance.write(registryFriendlyByteBuf);

ClientboundLevelChunkPacketData$BlockEntityTagOutput

  • Full name: net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData$BlockEntityTagOutput
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java
  • Type: interface
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData$BlockEntityTagOutput#accept(BlockPos,BlockEntityType<?>,CompoundTag)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkPacketData.java:163
  • Modifiers: ``
  • Return: void

คืออะไร

รับค่า accept

ทำงานยังไง

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

Parameters

  • BlockPos blockPos
  • BlockEntityType<?> blockEntityType
  • CompoundTag compoundTag

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

ClientboundLevelChunkPacketData.BlockEntityTagOutput instance = ...;
BlockPos blockPos = ...;
BlockEntityType<?> blockEntityType = ...;
CompoundTag compoundTag = ...;
instance.accept(blockPos, blockEntityType, compoundTag);

ClientboundLevelChunkWithLightPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#ClientboundLevelChunkWithLightPacket(LevelChunk,LevelLightEngine,BitSet,BitSet)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLevelChunkWithLightPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: x, z, chunkData, lightData. เรียกต่อ: getPos(). สร้างออบเจ็กต์: ClientboundLevelChunkPacketData, ClientboundLightUpdatePacketData.

Parameters

  • LevelChunk levelChunk
  • LevelLightEngine levelLightEngine
  • BitSet bitSet
  • BitSet bitSet2

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

LevelChunk levelChunk = ...;
LevelLightEngine levelLightEngine = ...;
BitSet bitSet = ...;
BitSet bitSet2 = ...;
ClientboundLevelChunkWithLightPacket instance = new ClientboundLevelChunkWithLightPacket(levelChunk, levelLightEngine, bitSet, bitSet2);

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#getChunkData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:61
  • Modifiers: public
  • Return: ClientboundLevelChunkPacketData

คืออะไร

อ่านค่า Chunk Data

ทำงานยังไง

คืนค่า: this.chunkData.

Parameters

  • ไม่มี

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

ClientboundLevelChunkWithLightPacket instance = ...;
ClientboundLevelChunkPacketData result = instance.getChunkData();

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#getLightData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:65
  • Modifiers: public
  • Return: ClientboundLightUpdatePacketData

คืออะไร

อ่านค่า Light Data

ทำงานยังไง

คืนค่า: this.lightData.

Parameters

  • ไม่มี

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

ClientboundLevelChunkWithLightPacket instance = ...;
ClientboundLightUpdatePacketData result = instance.getLightData();

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:53
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundLevelChunkWithLightPacket instance = ...;
int result = instance.getX();

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:57
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundLevelChunkWithLightPacket instance = ...;
int result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:49
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundLevelChunkWithLightPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundLevelChunkWithLightPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket.java:44
  • Modifiers: public
  • Return: PacketType<ClientboundLevelChunkWithLightPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_LEVEL_CHUNK_WITH_LIGHT.

Parameters

  • ไม่มี

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

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

ClientboundLevelEventPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundLevelEventPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLevelEventPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#ClientboundLevelEventPacket(int,BlockPos,int,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLevelEventPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: type, pos, data, globalEvent. เรียกต่อ: immutable().

Parameters

  • int i
  • BlockPos blockPos
  • int j
  • boolean bl

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

BlockPos blockPos = ...;
ClientboundLevelEventPacket instance = new ClientboundLevelEventPacket(0, blockPos, 0, true);

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#getData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:56
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Data

ทำงานยังไง

คืนค่า: this.data.

Parameters

  • ไม่มี

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

ClientboundLevelEventPacket instance = ...;
int result = instance.getData();

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:60
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundLevelEventPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#getType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:52
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: this.type.

Parameters

  • ไม่มี

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

ClientboundLevelEventPacket instance = ...;
int result = instance.getType();

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundLevelEventPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#isGlobalEvent()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:48
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Global Event

ทำงานยังไง

คืนค่า: this.globalEvent.

Parameters

  • ไม่มี

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

ClientboundLevelEventPacket instance = ...;
boolean result = instance.isGlobalEvent();

net.minecraft.network.protocol.game.ClientboundLevelEventPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelEventPacket.java:39
  • Modifiers: public
  • Return: PacketType<ClientboundLevelEventPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_LEVEL_EVENT.

Parameters

  • ไม่มี

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

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

ClientboundLevelParticlesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#alwaysShow()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:83
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ alwaysShow ตาม implementation ของ ClientboundLevelParticlesPacket

ทำงานยังไง

คืนค่า: this.alwaysShow.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
boolean result = instance.alwaysShow();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#ClientboundLevelParticlesPacket(T,boolean,boolean,double,double,double,float,float,float,float,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLevelParticlesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: particle, overrideLimiter, alwaysShow, x, y, z.

Parameters

  • T particleOptions
  • boolean bl
  • boolean bl2
  • double d
  • double e
  • double f
  • float g
  • float h
  • float i
  • float j
  • int k

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

T particleOptions = ...;
ClientboundLevelParticlesPacket instance = new ClientboundLevelParticlesPacket(particleOptions, true, true, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F, 0.0F, 0.0F, 0);

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getCount()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:115
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Count

ทำงานยังไง

คืนค่า: this.count.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
int result = instance.getCount();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getMaxSpeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:111
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Max Speed

ทำงานยังไง

คืนค่า: this.maxSpeed.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
float result = instance.getMaxSpeed();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getParticle()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:119
  • Modifiers: public
  • Return: ParticleOptions

คืออะไร

อ่านค่า Particle

ทำงานยังไง

คืนค่า: this.particle.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
ParticleOptions result = instance.getParticle();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:87
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
double result = instance.getX();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getXDist()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:99
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า XDist

ทำงานยังไง

คืนค่า: this.xDist.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
float result = instance.getXDist();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getY()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:91
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
double result = instance.getY();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getYDist()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:103
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YDist

ทำงานยังไง

คืนค่า: this.yDist.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
float result = instance.getYDist();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:95
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
double result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#getZDist()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:107
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า ZDist

ทำงานยังไง

คืนค่า: this.zDist.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
float result = instance.getZDist();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:75
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundLevelParticlesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#isOverrideLimiter()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:79
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Override Limiter

ทำงานยังไง

คืนค่า: this.overrideLimiter.

Parameters

  • ไม่มี

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

ClientboundLevelParticlesPacket instance = ...;
boolean result = instance.isOverrideLimiter();

net.minecraft.network.protocol.game.ClientboundLevelParticlesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLevelParticlesPacket.java:70
  • Modifiers: public
  • Return: PacketType<ClientboundLevelParticlesPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_LEVEL_PARTICLES.

Parameters

  • ไม่มี

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

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

ClientboundLightUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundLightUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#ClientboundLightUpdatePacket(ChunkPos,LevelLightEngine,BitSet,BitSet)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLightUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: x, z, lightData. สร้างออบเจ็กต์: ClientboundLightUpdatePacketData.

Parameters

  • ChunkPos chunkPos
  • LevelLightEngine levelLightEngine
  • BitSet bitSet
  • BitSet bitSet2

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

ChunkPos chunkPos = ...;
LevelLightEngine levelLightEngine = ...;
BitSet bitSet = ...;
BitSet bitSet2 = ...;
ClientboundLightUpdatePacket instance = new ClientboundLightUpdatePacket(chunkPos, levelLightEngine, bitSet, bitSet2);

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#getLightData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:55
  • Modifiers: public
  • Return: ClientboundLightUpdatePacketData

คืออะไร

อ่านค่า Light Data

ทำงานยังไง

คืนค่า: this.lightData.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacket instance = ...;
ClientboundLightUpdatePacketData result = instance.getLightData();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacket instance = ...;
int result = instance.getX();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacket instance = ...;
int result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:43
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundLightUpdatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundLightUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacket.java:38
  • Modifiers: public
  • Return: PacketType<ClientboundLightUpdatePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_LIGHT_UPDATE.

Parameters

  • ไม่มี

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

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

ClientboundLightUpdatePacketData

  • Full name: net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java
  • Type: class
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#ClientboundLightUpdatePacketData(ChunkPos,LevelLightEngine,BitSet,BitSet)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLightUpdatePacketData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: skyYMask, blockYMask, emptySkyYMask, emptyBlockYMask, skyUpdates, blockUpdates. เรียกต่อ: newArrayList(), getLightSectionCount(), get(), prepareSectionData(). สร้างออบเจ็กต์: BitSet.

Parameters

  • ChunkPos chunkPos
  • LevelLightEngine levelLightEngine
  • BitSet bitSet
  • BitSet bitSet2

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

ChunkPos chunkPos = ...;
LevelLightEngine levelLightEngine = ...;
BitSet bitSet = ...;
BitSet bitSet2 = ...;
ClientboundLightUpdatePacketData instance = new ClientboundLightUpdatePacketData(chunkPos, levelLightEngine, bitSet, bitSet2);

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#ClientboundLightUpdatePacketData(FriendlyByteBuf,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:45
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundLightUpdatePacketData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: skyYMask, blockYMask, emptySkyYMask, emptyBlockYMask, skyUpdates, blockUpdates. เรียกต่อ: readBitSet(), readList().

Parameters

  • FriendlyByteBuf friendlyByteBuf
  • int i
  • int j

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

FriendlyByteBuf friendlyByteBuf = ...;
ClientboundLightUpdatePacketData instance = new ClientboundLightUpdatePacketData(friendlyByteBuf, 0, 0);

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getBlockUpdates()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:97
  • Modifiers: public
  • Return: List<byte[]>

คืออะไร

อ่านค่า Block Updates

ทำงานยังไง

คืนค่า: this.blockUpdates.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
List<byte[]> result = instance.getBlockUpdates();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getBlockYMask()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:89
  • Modifiers: public
  • Return: BitSet

คืออะไร

อ่านค่า Block YMask

ทำงานยังไง

คืนค่า: this.blockYMask.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
BitSet result = instance.getBlockYMask();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getEmptyBlockYMask()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:93
  • Modifiers: public
  • Return: BitSet

คืออะไร

อ่านค่า Empty Block YMask

ทำงานยังไง

คืนค่า: this.emptyBlockYMask.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
BitSet result = instance.getEmptyBlockYMask();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getEmptySkyYMask()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:81
  • Modifiers: public
  • Return: BitSet

คืออะไร

อ่านค่า Empty Sky YMask

ทำงานยังไง

คืนค่า: this.emptySkyYMask.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
BitSet result = instance.getEmptySkyYMask();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getSkyUpdates()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:85
  • Modifiers: public
  • Return: List<byte[]>

คืออะไร

อ่านค่า Sky Updates

ทำงานยังไง

คืนค่า: this.skyUpdates.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
List<byte[]> result = instance.getSkyUpdates();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#getSkyYMask()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:77
  • Modifiers: public
  • Return: BitSet

คืออะไร

อ่านค่า Sky YMask

ทำงานยังไง

คืนค่า: this.skyYMask.

Parameters

  • ไม่มี

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

ClientboundLightUpdatePacketData instance = ...;
BitSet result = instance.getSkyYMask();

net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData#write(FriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLightUpdatePacketData.java:54
  • Modifiers: public
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: writeBitSet(), writeCollection().

Parameters

  • FriendlyByteBuf friendlyByteBuf

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

ClientboundLightUpdatePacketData instance = ...;
FriendlyByteBuf friendlyByteBuf = ...;
instance.write(friendlyByteBuf);

ClientboundLoginPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundLoginPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundLoginPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundLoginPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLoginPacket.java:66
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundLoginPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundLoginPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundLoginPacket.java:61
  • Modifiers: public
  • Return: PacketType<ClientboundLoginPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_LOGIN.

Parameters

  • ไม่มี

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

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

ClientboundMapItemDataPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundMapItemDataPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMapItemDataPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundMapItemDataPacket#applyToMap(MapItemSavedData)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMapItemDataPacket.java:48
  • Modifiers: public
  • Return: void

คืออะไร

นำไปใช้ To Map

ทำงานยังไง

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

Parameters

  • MapItemSavedData mapItemSavedData

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

ClientboundMapItemDataPacket instance = ...;
MapItemSavedData mapItemSavedData = ...;
instance.applyToMap(mapItemSavedData);

net.minecraft.network.protocol.game.ClientboundMapItemDataPacket#ClientboundMapItemDataPacket(MapId,byte,boolean,Collection<MapDecoration>,MapItemSavedData.MapPatch)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMapItemDataPacket.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMapItemDataPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: of(), copyOf(), empty(), ofNullable().

Parameters

  • MapId mapId
  • byte b
  • boolean bl
  • Collection<MapDecoration> collection
  • MapItemSavedData.MapPatch mapPatch

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

MapId mapId = ...;
Collection<MapDecoration> collection = ...;
MapItemSavedData.MapPatch mapPatch = ...;
ClientboundMapItemDataPacket instance = new ClientboundMapItemDataPacket(mapId, 0, true, collection, mapPatch);

net.minecraft.network.protocol.game.ClientboundMapItemDataPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMapItemDataPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundMapItemDataPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundMapItemDataPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMapItemDataPacket.java:39
  • Modifiers: public
  • Return: PacketType<ClientboundMapItemDataPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MAP_ITEM_DATA.

Parameters

  • ไม่มี

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

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

ClientboundMerchantOffersPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#canRestock()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:76
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Restock

ทำงานยังไง

คืนค่า: this.canRestock.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
boolean result = instance.canRestock();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#ClientboundMerchantOffersPacket(int,MerchantOffers,int,int,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMerchantOffersPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, offers, villagerLevel, villagerXp, showProgress, canRestock. เรียกต่อ: copy().

Parameters

  • int i
  • MerchantOffers merchantOffers
  • int j
  • int k
  • boolean bl
  • boolean bl2

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

MerchantOffers merchantOffers = ...;
ClientboundMerchantOffersPacket instance = new ClientboundMerchantOffersPacket(0, merchantOffers, 0, 0, true, true);

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:56
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#getOffers()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:60
  • Modifiers: public
  • Return: MerchantOffers

คืออะไร

อ่านค่า Offers

ทำงานยังไง

คืนค่า: this.offers.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
MerchantOffers result = instance.getOffers();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#getVillagerLevel()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:64
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Villager Level

ทำงานยังไง

คืนค่า: this.villagerLevel.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
int result = instance.getVillagerLevel();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#getVillagerXp()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:68
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Villager Xp

ทำงานยังไง

คืนค่า: this.villagerXp.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
int result = instance.getVillagerXp();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:52
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundMerchantOffersPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#showProgress()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:72
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ showProgress ตาม implementation ของ ClientboundMerchantOffersPacket

ทำงานยังไง

คืนค่า: this.showProgress.

Parameters

  • ไม่มี

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

ClientboundMerchantOffersPacket instance = ...;
boolean result = instance.showProgress();

net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMerchantOffersPacket.java:47
  • Modifiers: public
  • Return: PacketType<ClientboundMerchantOffersPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MERCHANT_OFFERS.

Parameters

  • ไม่มี

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

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

ClientboundMoveEntityPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java
  • Type: class
  • Modifiers: public abstract
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#ClientboundMoveEntityPacket(int,short,short,short,byte,byte,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:23
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMoveEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityId, xa, ya, za, yRot, xRot.

Parameters

  • int i
  • short s
  • short t
  • short u
  • byte b
  • byte c
  • boolean bl
  • boolean bl2
  • boolean bl3

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

ClientboundMoveEntityPacket instance = new ClientboundMoveEntityPacket(0, 0, 0, 0, 0, 0, true, true, true);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:47
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.entityId).

Parameters

  • Level level

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

ClientboundMoveEntityPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getXa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:52
  • Modifiers: public
  • Return: short

คืออะไร

อ่านค่า Xa

ทำงานยังไง

คืนค่า: this.xa.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
short result = instance.getXa();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getxRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:68
  • Modifiers: public
  • Return: float

คืออะไร

ดำเนินการ getxRot ตาม implementation ของ ClientboundMoveEntityPacket

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.xRot).

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
float result = instance.getxRot();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getYa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:56
  • Modifiers: public
  • Return: short

คืออะไร

อ่านค่า Ya

ทำงานยังไง

คืนค่า: this.ya.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
short result = instance.getYa();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getyRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:64
  • Modifiers: public
  • Return: float

คืออะไร

ดำเนินการ getyRot ตาม implementation ของ ClientboundMoveEntityPacket

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.yRot).

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
float result = instance.getyRot();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#getZa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:60
  • Modifiers: public
  • Return: short

คืออะไร

อ่านค่า Za

ทำงานยังไง

คืนค่า: this.za.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
short result = instance.getZa();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundMoveEntityPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#hasPosition()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:76
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Position

ทำงานยังไง

คืนค่า: this.hasPos.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
boolean result = instance.hasPosition();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#hasRotation()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:72
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Rotation

ทำงานยังไง

คืนค่า: this.hasRot.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
boolean result = instance.hasRotation();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#isOnGround()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:80
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ On Ground

ทำงานยังไง

คืนค่า: this.onGround.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
boolean result = instance.isOnGround();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#toString()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:42
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ ClientboundMoveEntityPacket

ทำงานยังไง

คืนค่า: "Entity_" + super.toString().

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
String result = instance.toString();

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:35
  • Modifiers: public abstract
  • Return: PacketType<? extends ClientboundMoveEntityPacket>

คืออะไร

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

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket instance = ...;
PacketType<? extends ClientboundMoveEntityPacket> result = instance.type();

ClientboundMoveEntityPacket$Pos

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Pos
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ClientboundMoveEntityPacket

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Pos#Pos(int,short,short,short,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:89
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMoveEntityPacket.Pos ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • short s
  • short t
  • short u
  • boolean bl

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

ClientboundMoveEntityPacket.Pos instance = new ClientboundMoveEntityPacket.Pos(0, 0, 0, 0, true);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Pos#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:110
  • Modifiers: public
  • Return: PacketType<ClientboundMoveEntityPacket.Pos>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundMoveEntityPacket$Pos

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MOVE_ENTITY_POS.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket.Pos instance = ...;
PacketType<ClientboundMoveEntityPacket.Pos> result = instance.type();

ClientboundMoveEntityPacket$PosRot

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$PosRot
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ClientboundMoveEntityPacket

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$PosRot#PosRot(int,short,short,short,byte,byte,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:121
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMoveEntityPacket.PosRot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • short s
  • short t
  • short u
  • byte b
  • byte c
  • boolean bl

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

ClientboundMoveEntityPacket.PosRot instance = new ClientboundMoveEntityPacket.PosRot(0, 0, 0, 0, 0, 0, true);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$PosRot#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:146
  • Modifiers: public
  • Return: PacketType<ClientboundMoveEntityPacket.PosRot>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundMoveEntityPacket$PosRot

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MOVE_ENTITY_POS_ROT.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket.PosRot instance = ...;
PacketType<ClientboundMoveEntityPacket.PosRot> result = instance.type();

ClientboundMoveEntityPacket$Rot

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Rot
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ClientboundMoveEntityPacket

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Rot#Rot(int,byte,byte,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:157
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundMoveEntityPacket.Rot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • byte b
  • byte c
  • boolean bl

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

ClientboundMoveEntityPacket.Rot instance = new ClientboundMoveEntityPacket.Rot(0, 0, 0, true);

net.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Rot#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveEntityPacket.java:176
  • Modifiers: public
  • Return: PacketType<ClientboundMoveEntityPacket.Rot>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundMoveEntityPacket$Rot

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MOVE_ENTITY_ROT.

Parameters

  • ไม่มี

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

ClientboundMoveEntityPacket.Rot instance = ...;
PacketType<ClientboundMoveEntityPacket.Rot> result = instance.type();

ClientboundMoveMinecartPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveMinecartPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveMinecartPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundMoveMinecartPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveMinecartPacket.java:32
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.entityId).

Parameters

  • Level level

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

ClientboundMoveMinecartPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundMoveMinecartPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveMinecartPacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundMoveMinecartPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundMoveMinecartPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveMinecartPacket.java:23
  • Modifiers: public
  • Return: PacketType<ClientboundMoveMinecartPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MOVE_MINECART_ALONG_TRACK.

Parameters

  • ไม่มี

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

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

ClientboundMoveVehiclePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundMoveVehiclePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundMoveVehiclePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundMoveVehiclePacket#fromEntity(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveVehiclePacket.java:22
  • Modifiers: public static
  • Return: ClientboundMoveVehiclePacket

คืออะไร

ดำเนินการ fromEntity ตาม implementation ของ ClientboundMoveVehiclePacket

ทำงานยังไง

เรียกต่อ: position(), getYRot(), getXRot(). สร้างออบเจ็กต์: ClientboundMoveVehiclePacket. คืนค่า: new ClientboundMoveVehiclePacket(entity.position(), entity.getYRot(), entity.getXRot()).

Parameters

  • Entity entity

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

Entity entity = ...;
ClientboundMoveVehiclePacket result = ClientboundMoveVehiclePacket.fromEntity(entity);

net.minecraft.network.protocol.game.ClientboundMoveVehiclePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveVehiclePacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundMoveVehiclePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundMoveVehiclePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundMoveVehiclePacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundMoveVehiclePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_MOVE_VEHICLE.

Parameters

  • ไม่มี

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

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

ClientboundOpenBookPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundOpenBookPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundOpenBookPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundOpenBookPacket#ClientboundOpenBookPacket(InteractionHand)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenBookPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundOpenBookPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hand.

Parameters

  • InteractionHand interactionHand

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

InteractionHand interactionHand = ...;
ClientboundOpenBookPacket instance = new ClientboundOpenBookPacket(interactionHand);

net.minecraft.network.protocol.game.ClientboundOpenBookPacket#getHand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenBookPacket.java:36
  • Modifiers: public
  • Return: InteractionHand

คืออะไร

อ่านค่า Hand

ทำงานยังไง

คืนค่า: this.hand.

Parameters

  • ไม่มี

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

ClientboundOpenBookPacket instance = ...;
InteractionHand result = instance.getHand();

net.minecraft.network.protocol.game.ClientboundOpenBookPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenBookPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundOpenBookPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundOpenBookPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenBookPacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundOpenBookPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_OPEN_BOOK.

Parameters

  • ไม่มี

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

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

ClientboundOpenScreenPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundOpenScreenPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#ClientboundOpenScreenPacket(int,MenuType<?>,Component)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:27
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundOpenScreenPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, type, title.

Parameters

  • int i
  • MenuType<?> menuType
  • Component component

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

MenuType<?> menuType = ...;
Component component = ...;
ClientboundOpenScreenPacket instance = new ClientboundOpenScreenPacket(0, menuType, component);

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:42
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

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

ClientboundOpenScreenPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#getTitle()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:50
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Title

ทำงานยังไง

คืนค่า: this.title.

Parameters

  • ไม่มี

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

ClientboundOpenScreenPacket instance = ...;
Component result = instance.getTitle();

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#getType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:46
  • Modifiers: public
  • Return: MenuType<?>

คืออะไร

อ่านค่า Type

ทำงานยังไง

คืนค่า: this.type.

Parameters

  • ไม่มี

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

ClientboundOpenScreenPacket instance = ...;
MenuType<?> result = instance.getType();

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundOpenScreenPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundOpenScreenPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenScreenPacket.java:33
  • Modifiers: public
  • Return: PacketType<ClientboundOpenScreenPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_OPEN_SCREEN.

Parameters

  • ไม่มี

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

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

ClientboundOpenSignEditorPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket#ClientboundOpenSignEditorPacket(BlockPos,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundOpenSignEditorPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, isFrontText.

Parameters

  • BlockPos blockPos
  • boolean bl

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

BlockPos blockPos = ...;
ClientboundOpenSignEditorPacket instance = new ClientboundOpenSignEditorPacket(blockPos, true);

net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java:40
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundOpenSignEditorPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundOpenSignEditorPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket#isFrontText()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java:44
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Front Text

ทำงานยังไง

คืนค่า: this.isFrontText.

Parameters

  • ไม่มี

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

ClientboundOpenSignEditorPacket instance = ...;
boolean result = instance.isFrontText();

net.minecraft.network.protocol.game.ClientboundOpenSignEditorPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundOpenSignEditorPacket.java:31
  • Modifiers: public
  • Return: PacketType<ClientboundOpenSignEditorPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_OPEN_SIGN_EDITOR.

Parameters

  • ไม่มี

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

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

ClientboundPlaceGhostRecipePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlaceGhostRecipePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlaceGhostRecipePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlaceGhostRecipePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlaceGhostRecipePacket.java:24
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlaceGhostRecipePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlaceGhostRecipePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlaceGhostRecipePacket.java:19
  • Modifiers: public
  • Return: PacketType<ClientboundPlaceGhostRecipePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLACE_GHOST_RECIPE.

Parameters

  • ไม่มี

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

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

ClientboundPlayerAbilitiesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#canFly()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:83
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Fly

ทำงานยังไง

คืนค่า: this.canFly.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
boolean result = instance.canFly();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#canInstabuild()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:87
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าสามารถ Instabuild

ทำงานยังไง

คืนค่า: this.instabuild.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
boolean result = instance.canInstabuild();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#ClientboundPlayerAbilitiesPacket(Abilities)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerAbilitiesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: invulnerable, isFlying, canFly, instabuild, flyingSpeed, walkingSpeed. เรียกต่อ: getFlyingSpeed(), getWalkingSpeed().

Parameters

  • Abilities abilities

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

Abilities abilities = ...;
ClientboundPlayerAbilitiesPacket instance = new ClientboundPlayerAbilitiesPacket(abilities);

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#getFlyingSpeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:91
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Flying Speed

ทำงานยังไง

คืนค่า: this.flyingSpeed.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
float result = instance.getFlyingSpeed();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#getWalkingSpeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:95
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Walking Speed

ทำงานยังไง

คืนค่า: this.walkingSpeed.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
float result = instance.getWalkingSpeed();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:71
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerAbilitiesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#isFlying()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:79
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Flying

ทำงานยังไง

คืนค่า: this.isFlying.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
boolean result = instance.isFlying();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#isInvulnerable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:75
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Invulnerable

ทำงานยังไง

คืนค่า: this.invulnerable.

Parameters

  • ไม่มี

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

ClientboundPlayerAbilitiesPacket instance = ...;
boolean result = instance.isInvulnerable();

net.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerAbilitiesPacket.java:66
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerAbilitiesPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_ABILITIES.

Parameters

  • ไม่มี

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

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

ClientboundPlayerChatPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerChatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerChatPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerChatPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerChatPacket.java:57
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerChatPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerChatPacket#isSkippable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerChatPacket.java:61
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Skippable

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

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

ClientboundPlayerChatPacket instance = ...;
boolean result = instance.isSkippable();

net.minecraft.network.protocol.game.ClientboundPlayerChatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerChatPacket.java:52
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerChatPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_CHAT.

Parameters

  • ไม่มี

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

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

ClientboundPlayerCombatEndPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket#ClientboundPlayerCombatEndPacket(CombatTracker)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerCombatEndPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

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

Parameters

  • CombatTracker combatTracker

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

CombatTracker combatTracker = ...;
ClientboundPlayerCombatEndPacket instance = new ClientboundPlayerCombatEndPacket(combatTracker);

net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket#ClientboundPlayerCombatEndPacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerCombatEndPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: duration.

Parameters

  • int i

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

ClientboundPlayerCombatEndPacket instance = new ClientboundPlayerCombatEndPacket(0);

net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerCombatEndPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerCombatEndPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket.java:31
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerCombatEndPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_COMBAT_END.

Parameters

  • ไม่มี

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

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

ClientboundPlayerCombatEnterPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerCombatEnterPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerCombatEnterPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerCombatEnterPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerCombatEnterPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerCombatEnterPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_COMBAT_ENTER.

Parameters

  • ไม่มี

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

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

ClientboundPlayerCombatKillPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerCombatKillPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerCombatKillPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerCombatKillPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatKillPacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerCombatKillPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerCombatKillPacket#isSkippable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatKillPacket.java:29
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Skippable

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

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

ClientboundPlayerCombatKillPacket instance = ...;
boolean result = instance.isSkippable();

net.minecraft.network.protocol.game.ClientboundPlayerCombatKillPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerCombatKillPacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerCombatKillPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_COMBAT_KILL.

Parameters

  • ไม่มี

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

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

ClientboundPlayerInfoRemovePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerInfoRemovePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerInfoRemovePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerInfoRemovePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoRemovePacket.java:29
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerInfoRemovePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerInfoRemovePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoRemovePacket.java:24
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerInfoRemovePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_INFO_REMOVE.

Parameters

  • ไม่มี

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

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

ClientboundPlayerInfoUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#actions()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:89
  • Modifiers: public
  • Return: EnumSet<ClientboundPlayerInfoUpdatePacket.Action>

คืออะไร

ดำเนินการ actions ตาม implementation ของ ClientboundPlayerInfoUpdatePacket

ทำงานยังไง

คืนค่า: this.actions.

Parameters

  • ไม่มี

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

ClientboundPlayerInfoUpdatePacket instance = ...;
EnumSet<ClientboundPlayerInfoUpdatePacket.Action> result = instance.actions();

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action,ServerPlayer)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:37
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerInfoUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: actions, entries. เรียกต่อ: of(), Entry(). สร้างออบเจ็กต์: ClientboundPlayerInfoUpdatePacket.Entry.

Parameters

  • ClientboundPlayerInfoUpdatePacket.Action action
  • ServerPlayer serverPlayer

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

ClientboundPlayerInfoUpdatePacket.Action action = ...;
ServerPlayer serverPlayer = ...;
ClientboundPlayerInfoUpdatePacket instance = new ClientboundPlayerInfoUpdatePacket(action, serverPlayer);

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#ClientboundPlayerInfoUpdatePacket(EnumSet<ClientboundPlayerInfoUpdatePacket.Action>,Collection<ServerPlayer>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:32
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerInfoUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: actions, entries. เรียกต่อ: stream(), map(), toList().

Parameters

  • EnumSet<ClientboundPlayerInfoUpdatePacket.Action> enumSet
  • Collection<ServerPlayer> collection

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

EnumSet<ClientboundPlayerInfoUpdatePacket.Action> enumSet = ...;
Collection<ServerPlayer> collection = ...;
ClientboundPlayerInfoUpdatePacket instance = new ClientboundPlayerInfoUpdatePacket(enumSet, collection);

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#createPlayerInitializing(Collection<ServerPlayer>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:42
  • Modifiers: public static
  • Return: ClientboundPlayerInfoUpdatePacket

คืออะไร

สร้าง Player Initializing

ทำงานยังไง

เรียกต่อ: of(). สร้างออบเจ็กต์: ClientboundPlayerInfoUpdatePacket. คืนค่า: new ClientboundPlayerInfoUpdatePacket(enumSet, collection).

Parameters

  • Collection<ServerPlayer> collection

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

Collection<ServerPlayer> collection = ...;
ClientboundPlayerInfoUpdatePacket result = ClientboundPlayerInfoUpdatePacket.createPlayerInitializing(collection);

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#entries()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:93
  • Modifiers: public
  • Return: List<ClientboundPlayerInfoUpdatePacket.Entry>

คืออะไร

ดำเนินการ entries ตาม implementation ของ ClientboundPlayerInfoUpdatePacket

ทำงานยังไง

คืนค่า: this.entries.

Parameters

  • ไม่มี

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

ClientboundPlayerInfoUpdatePacket instance = ...;
List<ClientboundPlayerInfoUpdatePacket.Entry> result = instance.entries();

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:85
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerInfoUpdatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#newEntries()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:97
  • Modifiers: public
  • Return: List<ClientboundPlayerInfoUpdatePacket.Entry>

คืออะไร

ดำเนินการ newEntries ตาม implementation ของ ClientboundPlayerInfoUpdatePacket

ทำงานยังไง

เรียกต่อ: contains(), of(). คืนค่า: this.actions.contains(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER) ? this.entries : List.of().

Parameters

  • ไม่มี

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

ClientboundPlayerInfoUpdatePacket instance = ...;
List<ClientboundPlayerInfoUpdatePacket.Entry> result = instance.newEntries();

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#toString()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:101
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ ClientboundPlayerInfoUpdatePacket

ทำงานยังไง

เรียกต่อ: toStringHelper(), add(). คืนค่า: MoreObjects.toStringHelper(this).add("actions", this.actions).add("entries", this.entries).toString().

Parameters

  • ไม่มี

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

ClientboundPlayerInfoUpdatePacket instance = ...;
String result = instance.toString();

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:80
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerInfoUpdatePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_INFO_UPDATE.

Parameters

  • ไม่มี

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

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

ClientboundPlayerInfoUpdatePacket$Action$Reader

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Action$Reader
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java
  • Type: interface
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Action$Reader#read(ClientboundPlayerInfoUpdatePacket.EntryBuilder,RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:156
  • Modifiers: ``
  • Return: void

คืออะไร

อ่าน read

ทำงานยังไง

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

Parameters

  • ClientboundPlayerInfoUpdatePacket.EntryBuilder entryBuilder
  • RegistryFriendlyByteBuf registryFriendlyByteBuf

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

ClientboundPlayerInfoUpdatePacket.Action.Reader instance = ...;
ClientboundPlayerInfoUpdatePacket.EntryBuilder entryBuilder = ...;
RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
instance.read(entryBuilder, registryFriendlyByteBuf);

ClientboundPlayerInfoUpdatePacket$Action$Writer

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Action$Writer
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java
  • Type: interface
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket$Action$Writer#write(RegistryFriendlyByteBuf,ClientboundPlayerInfoUpdatePacket.Entry)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java:160
  • Modifiers: ``
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

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

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf
  • ClientboundPlayerInfoUpdatePacket.Entry entry

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

ClientboundPlayerInfoUpdatePacket.Action.Writer instance = ...;
RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
ClientboundPlayerInfoUpdatePacket.Entry entry = ...;
instance.write(registryFriendlyByteBuf, entry);

ClientboundPlayerLookAtPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#ClientboundPlayerLookAtPacket(EntityAnchorArgument.Anchor,double,double,double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerLookAtPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: fromAnchor, x, y, z, entity, atEntity.

Parameters

  • EntityAnchorArgument.Anchor anchor
  • double d
  • double e
  • double f

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

EntityAnchorArgument.Anchor anchor = ...;
ClientboundPlayerLookAtPacket instance = new ClientboundPlayerLookAtPacket(anchor, 0.0D, 0.0D, 0.0D);

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#ClientboundPlayerLookAtPacket(EntityAnchorArgument.Anchor,Entity,EntityAnchorArgument.Anchor)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:35
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundPlayerLookAtPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: fromAnchor, entity, toAnchor, x, y, z. เรียกต่อ: getId(), apply().

Parameters

  • EntityAnchorArgument.Anchor anchor
  • Entity entity
  • EntityAnchorArgument.Anchor anchor2

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

EntityAnchorArgument.Anchor anchor = ...;
Entity entity = ...;
EntityAnchorArgument.Anchor anchor2 = ...;
ClientboundPlayerLookAtPacket instance = new ClientboundPlayerLookAtPacket(anchor, entity, anchor2);

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#getFromAnchor()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:82
  • Modifiers: public
  • Return: EntityAnchorArgument.Anchor

คืออะไร

อ่านค่า From Anchor

ทำงานยังไง

คืนค่า: this.fromAnchor.

Parameters

  • ไม่มี

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

ClientboundPlayerLookAtPacket instance = ...;
EntityAnchorArgument.Anchor result = instance.getFromAnchor();

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#getPosition(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:86
  • Modifiers: public
  • Return: Vec3

คืออะไร

อ่านค่า Position

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEntity(), apply(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Level level

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

ClientboundPlayerLookAtPacket instance = ...;
Level level = ...;
Vec3 result = instance.getPosition(level);

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:78
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerLookAtPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerLookAtPacket.java:73
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerLookAtPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_LOOK_AT.

Parameters

  • ไม่มี

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

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

ClientboundPlayerPositionPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerPositionPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerPositionPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerPositionPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket#of(int,PositionMoveRotation,Set<Relative>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerPositionPacket.java:23
  • Modifiers: public static
  • Return: ClientboundPlayerPositionPacket

คืออะไร

ดำเนินการ of ตาม implementation ของ ClientboundPlayerPositionPacket

ทำงานยังไง

สร้างออบเจ็กต์: ClientboundPlayerPositionPacket. คืนค่า: new ClientboundPlayerPositionPacket(i, positionMoveRotation, set).

Parameters

  • int i
  • PositionMoveRotation positionMoveRotation
  • Set<Relative> set

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

PositionMoveRotation positionMoveRotation = ...;
Set<Relative> set = ...;
ClientboundPlayerPositionPacket result = ClientboundPlayerPositionPacket.of(0, positionMoveRotation, set);

net.minecraft.network.protocol.game.ClientboundPlayerPositionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerPositionPacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerPositionPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_POSITION.

Parameters

  • ไม่มี

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

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

ClientboundPlayerRotationPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundPlayerRotationPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundPlayerRotationPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerRotationPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerRotationPacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundPlayerRotationPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundPlayerRotationPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundPlayerRotationPacket.java:14
  • Modifiers: public
  • Return: PacketType<ClientboundPlayerRotationPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PLAYER_ROTATION.

Parameters

  • ไม่มี

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

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

ClientboundProjectilePowerPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket#ClientboundProjectilePowerPacket(int,double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundProjectilePowerPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, accelerationPower.

Parameters

  • int i
  • double d

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

ClientboundProjectilePowerPacket instance = new ClientboundProjectilePowerPacket(0, 0.0D);

net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket#getAccelerationPower()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java:43
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Acceleration Power

ทำงานยังไง

คืนค่า: this.accelerationPower.

Parameters

  • ไม่มี

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

ClientboundProjectilePowerPacket instance = ...;
double result = instance.getAccelerationPower();

net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java:39
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundProjectilePowerPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundProjectilePowerPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundProjectilePowerPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundProjectilePowerPacket.java:30
  • Modifiers: public
  • Return: PacketType<ClientboundProjectilePowerPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_PROJECTILE_POWER.

Parameters

  • ไม่มี

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

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

ClientboundRecipeBookAddPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRecipeBookAddPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundRecipeBookAddPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_RECIPE_BOOK_ADD.

Parameters

  • ไม่มี

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

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

ClientboundRecipeBookAddPacket$Entry

  • Full name: net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket$Entry
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java
  • Type: record
  • Modifiers: public

net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket$Entry#Entry(RecipeDisplayEntry,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java:40
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundRecipeBookAddPacket.Entry ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • RecipeDisplayEntry recipeDisplayEntry
  • boolean bl
  • boolean bl2

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

RecipeDisplayEntry recipeDisplayEntry = ...;
ClientboundRecipeBookAddPacket.Entry instance = new ClientboundRecipeBookAddPacket.Entry(recipeDisplayEntry, true, true);

net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket$Entry#highlight()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java:48
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ highlight ตาม implementation ของ ClientboundRecipeBookAddPacket$Entry

ทำงานยังไง

คืนค่า: (this.flags & 2) != 0.

Parameters

  • ไม่มี

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

ClientboundRecipeBookAddPacket.Entry instance = ...;
boolean result = instance.highlight();

net.minecraft.network.protocol.game.ClientboundRecipeBookAddPacket$Entry#notification()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookAddPacket.java:44
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ notification ตาม implementation ของ ClientboundRecipeBookAddPacket$Entry

ทำงานยังไง

คืนค่า: (this.flags & 1) != 0.

Parameters

  • ไม่มี

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

ClientboundRecipeBookAddPacket.Entry instance = ...;
boolean result = instance.notification();

ClientboundRecipeBookRemovePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRecipeBookRemovePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRecipeBookRemovePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRecipeBookRemovePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookRemovePacket.java:21
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRecipeBookRemovePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRecipeBookRemovePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookRemovePacket.java:16
  • Modifiers: public
  • Return: PacketType<ClientboundRecipeBookRemovePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_RECIPE_BOOK_REMOVE.

Parameters

  • ไม่มี

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

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

ClientboundRecipeBookSettingsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRecipeBookSettingsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRecipeBookSettingsPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRecipeBookSettingsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookSettingsPacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRecipeBookSettingsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRecipeBookSettingsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRecipeBookSettingsPacket.java:14
  • Modifiers: public
  • Return: PacketType<ClientboundRecipeBookSettingsPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_RECIPE_BOOK_SETTINGS.

Parameters

  • ไม่มี

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

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

ClientboundRemoveEntitiesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket#ClientboundRemoveEntitiesPacket(int[])

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundRemoveEntitiesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityIds. สร้างออบเจ็กต์: IntArrayList.

Parameters

  • int[] is

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

int[] is = ...;
ClientboundRemoveEntitiesPacket instance = new ClientboundRemoveEntitiesPacket(is);

net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket#ClientboundRemoveEntitiesPacket(IntList)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundRemoveEntitiesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityIds. สร้างออบเจ็กต์: IntArrayList.

Parameters

  • IntList intList

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

IntList intList = ...;
ClientboundRemoveEntitiesPacket instance = new ClientboundRemoveEntitiesPacket(intList);

net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket#getEntityIds()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java:41
  • Modifiers: public
  • Return: IntList

คืออะไร

อ่านค่า Entity Ids

ทำงานยังไง

คืนค่า: this.entityIds.

Parameters

  • ไม่มี

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

ClientboundRemoveEntitiesPacket instance = ...;
IntList result = instance.getEntityIds();

net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java:37
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRemoveEntitiesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveEntitiesPacket.java:32
  • Modifiers: public
  • Return: PacketType<ClientboundRemoveEntitiesPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_REMOVE_ENTITIES.

Parameters

  • ไม่มี

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

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

ClientboundRemoveMobEffectPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRemoveMobEffectPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRemoveMobEffectPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRemoveMobEffectPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveMobEffectPacket.java:32
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.entityId).

Parameters

  • Level level

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

ClientboundRemoveMobEffectPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundRemoveMobEffectPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveMobEffectPacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRemoveMobEffectPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRemoveMobEffectPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRemoveMobEffectPacket.java:23
  • Modifiers: public
  • Return: PacketType<ClientboundRemoveMobEffectPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_REMOVE_MOB_EFFECT.

Parameters

  • ไม่มี

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

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

ClientboundResetScorePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundResetScorePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundResetScorePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundResetScorePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundResetScorePacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundResetScorePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundResetScorePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundResetScorePacket.java:23
  • Modifiers: public
  • Return: PacketType<ClientboundResetScorePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_RESET_SCORE.

Parameters

  • ไม่มี

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

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

ClientboundRespawnPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRespawnPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRespawnPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRespawnPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRespawnPacket.java:30
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRespawnPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRespawnPacket#shouldKeep(byte)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRespawnPacket.java:34
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Keep

ทำงานยังไง

คืนค่า: (this.dataToKeep & b) != 0.

Parameters

  • byte b

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

ClientboundRespawnPacket instance = ...;
boolean result = instance.shouldKeep(0);

net.minecraft.network.protocol.game.ClientboundRespawnPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRespawnPacket.java:25
  • Modifiers: public
  • Return: PacketType<ClientboundRespawnPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_RESPAWN.

Parameters

  • ไม่มี

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

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

ClientboundRotateHeadPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundRotateHeadPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundRotateHeadPacket#ClientboundRotateHeadPacket(Entity,byte)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundRotateHeadPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entityId, yHeadRot. เรียกต่อ: getId().

Parameters

  • Entity entity
  • byte b

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

Entity entity = ...;
ClientboundRotateHeadPacket instance = new ClientboundRotateHeadPacket(entity, 0);

net.minecraft.network.protocol.game.ClientboundRotateHeadPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java:42
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.entityId).

Parameters

  • Level level

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

ClientboundRotateHeadPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundRotateHeadPacket#getYHeadRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java:46
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YHead Rot

ทำงานยังไง

เรียกต่อ: unpackDegrees(). คืนค่า: Mth.unpackDegrees(this.yHeadRot).

Parameters

  • ไม่มี

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

ClientboundRotateHeadPacket instance = ...;
float result = instance.getYHeadRot();

net.minecraft.network.protocol.game.ClientboundRotateHeadPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundRotateHeadPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundRotateHeadPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundRotateHeadPacket.java:33
  • Modifiers: public
  • Return: PacketType<ClientboundRotateHeadPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_ROTATE_HEAD.

Parameters

  • ไม่มี

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

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

ClientboundSectionBlocksUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSectionBlocksUpdatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket#ClientboundSectionBlocksUpdatePacket(SectionPos,ShortSet,LevelChunkSection)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSectionBlocksUpdatePacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSectionBlocksUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: sectionPos, positions, states. เรียกต่อ: size(), getBlockState(), sectionRelativeX(), sectionRelativeY(), sectionRelativeZ().

Parameters

  • SectionPos sectionPos
  • ShortSet shortSet
  • LevelChunkSection levelChunkSection

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

SectionPos sectionPos = ...;
ShortSet shortSet = ...;
LevelChunkSection levelChunkSection = ...;
ClientboundSectionBlocksUpdatePacket instance = new ClientboundSectionBlocksUpdatePacket(sectionPos, shortSet, levelChunkSection);

net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSectionBlocksUpdatePacket.java:65
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSectionBlocksUpdatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket#runUpdates(BiConsumer<BlockPos, BlockState>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSectionBlocksUpdatePacket.java:69
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน Updates

ทำงานยังไง

มีการวนลูป. เรียกต่อ: MutableBlockPos(), set(), relativeToBlockX(), relativeToBlockY(), relativeToBlockZ(), accept(). สร้างออบเจ็กต์: BlockPos.MutableBlockPos.

Parameters

  • BiConsumer<BlockPos, BlockState> biConsumer

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

ClientboundSectionBlocksUpdatePacket instance = ...;
BiConsumer<BlockPos, BlockState> biConsumer = ...;
instance.runUpdates(biConsumer);

net.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSectionBlocksUpdatePacket.java:60
  • Modifiers: public
  • Return: PacketType<ClientboundSectionBlocksUpdatePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SECTION_BLOCKS_UPDATE.

Parameters

  • ไม่มี

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

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

ClientboundSelectAdvancementsTabPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSelectAdvancementsTabPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacket#ClientboundSelectAdvancementsTabPacket(ResourceLocation)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSelectAdvancementsTabPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSelectAdvancementsTabPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: tab.

Parameters

  • ResourceLocation resourceLocation

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

ResourceLocation resourceLocation = ...;
ClientboundSelectAdvancementsTabPacket instance = new ClientboundSelectAdvancementsTabPacket(resourceLocation);

net.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacket#getTab()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSelectAdvancementsTabPacket.java:38
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Tab

ทำงานยังไง

คืนค่า: this.tab.

Parameters

  • ไม่มี

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

ClientboundSelectAdvancementsTabPacket instance = ...;
ResourceLocation result = instance.getTab();

net.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSelectAdvancementsTabPacket.java:34
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSelectAdvancementsTabPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSelectAdvancementsTabPacket.java:29
  • Modifiers: public
  • Return: PacketType<ClientboundSelectAdvancementsTabPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SELECT_ADVANCEMENTS_TAB.

Parameters

  • ไม่มี

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

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

ClientboundServerDataPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundServerDataPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundServerDataPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundServerDataPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundServerDataPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundServerDataPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SERVER_DATA.

Parameters

  • ไม่มี

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

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

ClientboundSetActionBarTextPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetActionBarTextPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetActionBarTextPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetActionBarTextPacket#handle(ClientGamePacketListener)

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

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetActionBarTextPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetActionBarTextPacket#type()

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

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_ACTION_BAR_TEXT.

Parameters

  • ไม่มี

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

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

ClientboundSetBorderCenterPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket#ClientboundSetBorderCenterPacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetBorderCenterPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: newCenterX, newCenterZ. เรียกต่อ: getCenterX(), getCenterZ().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundSetBorderCenterPacket instance = new ClientboundSetBorderCenterPacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket#getNewCenterX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java:44
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Center X

ทำงานยังไง

คืนค่า: this.newCenterX.

Parameters

  • ไม่มี

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

ClientboundSetBorderCenterPacket instance = ...;
double result = instance.getNewCenterX();

net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket#getNewCenterZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java:40
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Center Z

ทำงานยังไง

คืนค่า: this.newCenterZ.

Parameters

  • ไม่มี

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

ClientboundSetBorderCenterPacket instance = ...;
double result = instance.getNewCenterZ();

net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetBorderCenterPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetBorderCenterPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderCenterPacket.java:31
  • Modifiers: public
  • Return: PacketType<ClientboundSetBorderCenterPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_BORDER_CENTER.

Parameters

  • ไม่มี

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

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

ClientboundSetBorderLerpSizePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#ClientboundSetBorderLerpSizePacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetBorderLerpSizePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: oldSize, newSize, lerpTime. เรียกต่อ: getSize(), getLerpTarget(), getLerpRemainingTime().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundSetBorderLerpSizePacket instance = new ClientboundSetBorderLerpSizePacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#getLerpTime()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:52
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Lerp Time

ทำงานยังไง

คืนค่า: this.lerpTime.

Parameters

  • ไม่มี

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

ClientboundSetBorderLerpSizePacket instance = ...;
long result = instance.getLerpTime();

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#getNewSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:48
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า New Size

ทำงานยังไง

คืนค่า: this.newSize.

Parameters

  • ไม่มี

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

ClientboundSetBorderLerpSizePacket instance = ...;
double result = instance.getNewSize();

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#getOldSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:44
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Old Size

ทำงานยังไง

คืนค่า: this.oldSize.

Parameters

  • ไม่มี

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

ClientboundSetBorderLerpSizePacket instance = ...;
double result = instance.getOldSize();

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:40
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetBorderLerpSizePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetBorderLerpSizePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderLerpSizePacket.java:35
  • Modifiers: public
  • Return: PacketType<ClientboundSetBorderLerpSizePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_BORDER_LERP_SIZE.

Parameters

  • ไม่มี

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

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

ClientboundSetBorderSizePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetBorderSizePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetBorderSizePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetBorderSizePacket#ClientboundSetBorderSizePacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderSizePacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetBorderSizePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: size. เรียกต่อ: getLerpTarget().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundSetBorderSizePacket instance = new ClientboundSetBorderSizePacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundSetBorderSizePacket#getSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderSizePacket.java:36
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Size

ทำงานยังไง

คืนค่า: this.size.

Parameters

  • ไม่มี

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

ClientboundSetBorderSizePacket instance = ...;
double result = instance.getSize();

net.minecraft.network.protocol.game.ClientboundSetBorderSizePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderSizePacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetBorderSizePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetBorderSizePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderSizePacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundSetBorderSizePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_BORDER_SIZE.

Parameters

  • ไม่มี

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

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

ClientboundSetBorderWarningDelayPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetBorderWarningDelayPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetBorderWarningDelayPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDelayPacket#ClientboundSetBorderWarningDelayPacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDelayPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetBorderWarningDelayPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: warningDelay. เรียกต่อ: getWarningTime().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundSetBorderWarningDelayPacket instance = new ClientboundSetBorderWarningDelayPacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDelayPacket#getWarningDelay()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDelayPacket.java:36
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Warning Delay

ทำงานยังไง

คืนค่า: this.warningDelay.

Parameters

  • ไม่มี

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

ClientboundSetBorderWarningDelayPacket instance = ...;
int result = instance.getWarningDelay();

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDelayPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDelayPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetBorderWarningDelayPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDelayPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDelayPacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundSetBorderWarningDelayPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_BORDER_WARNING_DELAY.

Parameters

  • ไม่มี

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

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

ClientboundSetBorderWarningDistancePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetBorderWarningDistancePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket#ClientboundSetBorderWarningDistancePacket(WorldBorder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDistancePacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetBorderWarningDistancePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: warningBlocks. เรียกต่อ: getWarningBlocks().

Parameters

  • WorldBorder worldBorder

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

WorldBorder worldBorder = ...;
ClientboundSetBorderWarningDistancePacket instance = new ClientboundSetBorderWarningDistancePacket(worldBorder);

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket#getWarningBlocks()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDistancePacket.java:36
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Warning Blocks

ทำงานยังไง

คืนค่า: this.warningBlocks.

Parameters

  • ไม่มี

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

ClientboundSetBorderWarningDistancePacket instance = ...;
int result = instance.getWarningBlocks();

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDistancePacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetBorderWarningDistancePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetBorderWarningDistancePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetBorderWarningDistancePacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundSetBorderWarningDistancePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_BORDER_WARNING_DISTANCE.

Parameters

  • ไม่มี

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

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

ClientboundSetCameraPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetCameraPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetCameraPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetCameraPacket#ClientboundSetCameraPacket(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCameraPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetCameraPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: cameraId. เรียกต่อ: getId().

Parameters

  • Entity entity

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

Entity entity = ...;
ClientboundSetCameraPacket instance = new ClientboundSetCameraPacket(entity);

net.minecraft.network.protocol.game.ClientboundSetCameraPacket#getEntity(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCameraPacket.java:38
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: level.getEntity(this.cameraId).

Parameters

  • Level level

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

ClientboundSetCameraPacket instance = ...;
Level level = ...;
Entity result = instance.getEntity(level);

net.minecraft.network.protocol.game.ClientboundSetCameraPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCameraPacket.java:34
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetCameraPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetCameraPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCameraPacket.java:29
  • Modifiers: public
  • Return: PacketType<ClientboundSetCameraPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_CAMERA.

Parameters

  • ไม่มี

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

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

ClientboundSetChunkCacheCenterPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket#ClientboundSetChunkCacheCenterPacket(int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetChunkCacheCenterPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: x, z.

Parameters

  • int i
  • int j

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

ClientboundSetChunkCacheCenterPacket instance = new ClientboundSetChunkCacheCenterPacket(0, 0);

net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java:39
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x.

Parameters

  • ไม่มี

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

ClientboundSetChunkCacheCenterPacket instance = ...;
int result = instance.getX();

net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z.

Parameters

  • ไม่มี

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

ClientboundSetChunkCacheCenterPacket instance = ...;
int result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetChunkCacheCenterPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheCenterPacket.java:30
  • Modifiers: public
  • Return: PacketType<ClientboundSetChunkCacheCenterPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_CHUNK_CACHE_CENTER.

Parameters

  • ไม่มี

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

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

ClientboundSetChunkCacheRadiusPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetChunkCacheRadiusPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacket#ClientboundSetChunkCacheRadiusPacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheRadiusPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetChunkCacheRadiusPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: radius.

Parameters

  • int i

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

ClientboundSetChunkCacheRadiusPacket instance = new ClientboundSetChunkCacheRadiusPacket(0);

net.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacket#getRadius()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheRadiusPacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Radius

ทำงานยังไง

คืนค่า: this.radius.

Parameters

  • ไม่มี

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

ClientboundSetChunkCacheRadiusPacket instance = ...;
int result = instance.getRadius();

net.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheRadiusPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetChunkCacheRadiusPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetChunkCacheRadiusPacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundSetChunkCacheRadiusPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_CHUNK_CACHE_RADIUS.

Parameters

  • ไม่มี

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

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

ClientboundSetCursorItemPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetCursorItemPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetCursorItemPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetCursorItemPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCursorItemPacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetCursorItemPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetCursorItemPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetCursorItemPacket.java:14
  • Modifiers: public
  • Return: PacketType<ClientboundSetCursorItemPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_CURSOR_ITEM.

Parameters

  • ไม่มี

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

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

ClientboundSetDefaultSpawnPositionPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket#ClientboundSetDefaultSpawnPositionPacket(BlockPos,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetDefaultSpawnPositionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, angle.

Parameters

  • BlockPos blockPos
  • float f

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

BlockPos blockPos = ...;
ClientboundSetDefaultSpawnPositionPacket instance = new ClientboundSetDefaultSpawnPositionPacket(blockPos, 0.0F);

net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket#getAngle()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java:44
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Angle

ทำงานยังไง

คืนค่า: this.angle.

Parameters

  • ไม่มี

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

ClientboundSetDefaultSpawnPositionPacket instance = ...;
float result = instance.getAngle();

net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java:40
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

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

ClientboundSetDefaultSpawnPositionPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetDefaultSpawnPositionPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDefaultSpawnPositionPacket.java:31
  • Modifiers: public
  • Return: PacketType<ClientboundSetDefaultSpawnPositionPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_DEFAULT_SPAWN_POSITION.

Parameters

  • ไม่มี

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

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

ClientboundSetDisplayObjectivePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket#ClientboundSetDisplayObjectivePacket(DisplaySlot,Objective)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetDisplayObjectivePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: slot, objectiveName. เรียกต่อ: getName().

Parameters

  • DisplaySlot displaySlot
  • Objective objective

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

DisplaySlot displaySlot = ...;
Objective objective = ...;
ClientboundSetDisplayObjectivePacket instance = new ClientboundSetDisplayObjectivePacket(displaySlot, objective);

net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket#getObjectiveName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java:51
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Objective Name

ทำงานยังไง

เรียกต่อ: equals(). คืนค่า: Objects.equals(this.objectiveName, "") ? null : this.objectiveName.

Parameters

  • ไม่มี

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

ClientboundSetDisplayObjectivePacket instance = ...;
String result = instance.getObjectiveName();

net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket#getSlot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java:47
  • Modifiers: public
  • Return: DisplaySlot

คืออะไร

อ่านค่า Slot

ทำงานยังไง

คืนค่า: this.slot.

Parameters

  • ไม่มี

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

ClientboundSetDisplayObjectivePacket instance = ...;
DisplaySlot result = instance.getSlot();

net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java:43
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetDisplayObjectivePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetDisplayObjectivePacket.java:38
  • Modifiers: public
  • Return: PacketType<ClientboundSetDisplayObjectivePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_DISPLAY_OBJECTIVE.

Parameters

  • ไม่มี

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

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

ClientboundSetEntityDataPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetEntityDataPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetEntityDataPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetEntityDataPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityDataPacket.java:50
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetEntityDataPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetEntityDataPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityDataPacket.java:45
  • Modifiers: public
  • Return: PacketType<ClientboundSetEntityDataPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_ENTITY_DATA.

Parameters

  • ไม่มี

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

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

ClientboundSetEntityLinkPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket#ClientboundSetEntityLinkPacket(Entity,Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetEntityLinkPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: sourceId, destId. เรียกต่อ: getId().

Parameters

  • Entity entity
  • Entity entity2

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

Entity entity = ...;
Entity entity2 = ...;
ClientboundSetEntityLinkPacket instance = new ClientboundSetEntityLinkPacket(entity, entity2);

net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket#getDestId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java:45
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Dest Id

ทำงานยังไง

คืนค่า: this.destId.

Parameters

  • ไม่มี

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

ClientboundSetEntityLinkPacket instance = ...;
int result = instance.getDestId();

net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket#getSourceId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java:41
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Source Id

ทำงานยังไง

คืนค่า: this.sourceId.

Parameters

  • ไม่มี

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

ClientboundSetEntityLinkPacket instance = ...;
int result = instance.getSourceId();

net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java:37
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetEntityLinkPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetEntityLinkPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityLinkPacket.java:32
  • Modifiers: public
  • Return: PacketType<ClientboundSetEntityLinkPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_ENTITY_LINK.

Parameters

  • ไม่มี

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

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

ClientboundSetEntityMotionPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#ClientboundSetEntityMotionPacket(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetEntityMotionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: getId(), getDeltaMovement().

Parameters

  • Entity entity

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

Entity entity = ...;
ClientboundSetEntityMotionPacket instance = new ClientboundSetEntityMotionPacket(entity);

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#ClientboundSetEntityMotionPacket(int,Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetEntityMotionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, xa, ya, za. เรียกต่อ: clamp().

Parameters

  • int i
  • Vec3 vec3

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

Vec3 vec3 = ...;
ClientboundSetEntityMotionPacket instance = new ClientboundSetEntityMotionPacket(0, vec3);

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:58
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

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

ClientboundSetEntityMotionPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#getXa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:62
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Xa

ทำงานยังไง

คืนค่า: this.xa / 8000.0.

Parameters

  • ไม่มี

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

ClientboundSetEntityMotionPacket instance = ...;
double result = instance.getXa();

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#getYa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:66
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Ya

ทำงานยังไง

คืนค่า: this.ya / 8000.0.

Parameters

  • ไม่มี

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

ClientboundSetEntityMotionPacket instance = ...;
double result = instance.getYa();

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#getZa()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:70
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Za

ทำงานยังไง

คืนค่า: this.za / 8000.0.

Parameters

  • ไม่มี

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

ClientboundSetEntityMotionPacket instance = ...;
double result = instance.getZa();

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:54
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetEntityMotionPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEntityMotionPacket.java:49
  • Modifiers: public
  • Return: PacketType<ClientboundSetEntityMotionPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_ENTITY_MOTION.

Parameters

  • ไม่มี

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

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

ClientboundSetEquipmentPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket#ClientboundSetEquipmentPacket(int,List<Pair<EquipmentSlot, ItemStack>>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetEquipmentPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entity, slots.

Parameters

  • int i
  • List<Pair<EquipmentSlot, ItemStack>> list

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

List<Pair<EquipmentSlot, ItemStack>> list = ...;
ClientboundSetEquipmentPacket instance = new ClientboundSetEquipmentPacket(0, list);

net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket#getEntity()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java:62
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: this.entity.

Parameters

  • ไม่มี

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

ClientboundSetEquipmentPacket instance = ...;
int result = instance.getEntity();

net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket#getSlots()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java:66
  • Modifiers: public
  • Return: List<Pair<EquipmentSlot, ItemStack>>

คืออะไร

อ่านค่า Slots

ทำงานยังไง

คืนค่า: this.slots.

Parameters

  • ไม่มี

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

ClientboundSetEquipmentPacket instance = ...;
List<Pair<EquipmentSlot, ItemStack>> result = instance.getSlots();

net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java:58
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetEquipmentPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetEquipmentPacket.java:53
  • Modifiers: public
  • Return: PacketType<ClientboundSetEquipmentPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_EQUIPMENT.

Parameters

  • ไม่มี

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

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

ClientboundSetExperiencePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetExperiencePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#ClientboundSetExperiencePacket(float,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetExperiencePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: experienceProgress, totalExperience, experienceLevel.

Parameters

  • float f
  • int i
  • int j

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

ClientboundSetExperiencePacket instance = new ClientboundSetExperiencePacket(0.0F, 0, 0);

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#getExperienceLevel()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Experience Level

ทำงานยังไง

คืนค่า: this.experienceLevel.

Parameters

  • ไม่มี

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

ClientboundSetExperiencePacket instance = ...;
int result = instance.getExperienceLevel();

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#getExperienceProgress()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:43
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Experience Progress

ทำงานยังไง

คืนค่า: this.experienceProgress.

Parameters

  • ไม่มี

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

ClientboundSetExperiencePacket instance = ...;
float result = instance.getExperienceProgress();

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#getTotalExperience()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Total Experience

ทำงานยังไง

คืนค่า: this.totalExperience.

Parameters

  • ไม่มี

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

ClientboundSetExperiencePacket instance = ...;
int result = instance.getTotalExperience();

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetExperiencePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetExperiencePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetExperiencePacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundSetExperiencePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_EXPERIENCE.

Parameters

  • ไม่มี

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

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

ClientboundSetHealthPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetHealthPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetHealthPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#ClientboundSetHealthPacket(float,int,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetHealthPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: health, food, saturation.

Parameters

  • float f
  • int i
  • float g

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

ClientboundSetHealthPacket instance = new ClientboundSetHealthPacket(0.0F, 0, 0.0F);

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#getFood()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Food

ทำงานยังไง

คืนค่า: this.food.

Parameters

  • ไม่มี

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

ClientboundSetHealthPacket instance = ...;
int result = instance.getFood();

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#getHealth()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:43
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Health

ทำงานยังไง

คืนค่า: this.health.

Parameters

  • ไม่มี

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

ClientboundSetHealthPacket instance = ...;
float result = instance.getHealth();

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#getSaturation()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:51
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Saturation

ทำงานยังไง

คืนค่า: this.saturation.

Parameters

  • ไม่มี

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

ClientboundSetHealthPacket instance = ...;
float result = instance.getSaturation();

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetHealthPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetHealthPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHealthPacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundSetHealthPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_HEALTH.

Parameters

  • ไม่มี

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

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

ClientboundSetHeldSlotPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetHeldSlotPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetHeldSlotPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetHeldSlotPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHeldSlotPacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetHeldSlotPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetHeldSlotPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetHeldSlotPacket.java:14
  • Modifiers: public
  • Return: PacketType<ClientboundSetHeldSlotPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_HELD_SLOT.

Parameters

  • ไม่มี

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

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

ClientboundSetObjectivePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetObjectivePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#ClientboundSetObjectivePacket(Objective,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:29
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetObjectivePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: objectiveName, displayName, renderType, numberFormat, method. เรียกต่อ: getName(), getDisplayName(), getRenderType(), ofNullable(), numberFormat().

Parameters

  • Objective objective
  • int i

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

Objective objective = ...;
ClientboundSetObjectivePacket instance = new ClientboundSetObjectivePacket(objective, 0);

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#getDisplayName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:74
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Display Name

ทำงานยังไง

คืนค่า: this.displayName.

Parameters

  • ไม่มี

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

ClientboundSetObjectivePacket instance = ...;
Component result = instance.getDisplayName();

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#getMethod()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:78
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Method

ทำงานยังไง

คืนค่า: this.method.

Parameters

  • ไม่มี

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

ClientboundSetObjectivePacket instance = ...;
int result = instance.getMethod();

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#getNumberFormat()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:86
  • Modifiers: public
  • Return: Optional<NumberFormat>

คืออะไร

อ่านค่า Number Format

ทำงานยังไง

คืนค่า: this.numberFormat.

Parameters

  • ไม่มี

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

ClientboundSetObjectivePacket instance = ...;
Optional<NumberFormat> result = instance.getNumberFormat();

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#getObjectiveName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:70
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Objective Name

ทำงานยังไง

คืนค่า: this.objectiveName.

Parameters

  • ไม่มี

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

ClientboundSetObjectivePacket instance = ...;
String result = instance.getObjectiveName();

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#getRenderType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:82
  • Modifiers: public
  • Return: ObjectiveCriteria.RenderType

คืออะไร

อ่านค่า Render Type

ทำงานยังไง

คืนค่า: this.renderType.

Parameters

  • ไม่มี

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

ClientboundSetObjectivePacket instance = ...;
ObjectiveCriteria.RenderType result = instance.getRenderType();

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:66
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetObjectivePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetObjectivePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetObjectivePacket.java:61
  • Modifiers: public
  • Return: PacketType<ClientboundSetObjectivePacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_OBJECTIVE.

Parameters

  • ไม่มี

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

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

ClientboundSetPassengersPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetPassengersPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetPassengersPacket#ClientboundSetPassengersPacket(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetPassengersPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: vehicle, passengers. เรียกต่อ: getId(), getPassengers(), size(), get().

Parameters

  • Entity entity

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

Entity entity = ...;
ClientboundSetPassengersPacket instance = new ClientboundSetPassengersPacket(entity);

net.minecraft.network.protocol.game.ClientboundSetPassengersPacket#getPassengers()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java:46
  • Modifiers: public
  • Return: int[]

คืออะไร

อ่านค่า Passengers

ทำงานยังไง

คืนค่า: this.passengers.

Parameters

  • ไม่มี

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

ClientboundSetPassengersPacket instance = ...;
int[] result = instance.getPassengers();

net.minecraft.network.protocol.game.ClientboundSetPassengersPacket#getVehicle()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java:50
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Vehicle

ทำงานยังไง

คืนค่า: this.vehicle.

Parameters

  • ไม่มี

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

ClientboundSetPassengersPacket instance = ...;
int result = instance.getVehicle();

net.minecraft.network.protocol.game.ClientboundSetPassengersPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java:42
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetPassengersPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetPassengersPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPassengersPacket.java:37
  • Modifiers: public
  • Return: PacketType<ClientboundSetPassengersPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_PASSENGERS.

Parameters

  • ไม่มี

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

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

ClientboundSetPlayerInventoryPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetPlayerInventoryPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetPlayerInventoryPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetPlayerInventoryPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerInventoryPacket.java:24
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetPlayerInventoryPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetPlayerInventoryPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerInventoryPacket.java:19
  • Modifiers: public
  • Return: PacketType<ClientboundSetPlayerInventoryPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_PLAYER_INVENTORY.

Parameters

  • ไม่มี

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

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

ClientboundSetPlayerTeamPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#createAddOrModifyPacket(PlayerTeam,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:40
  • Modifiers: public static
  • Return: ClientboundSetPlayerTeamPacket

คืออะไร

สร้าง Add Or Modify Packet

ทำงานยังไง

เรียกต่อ: getName(), of(), Parameters(), getPlayers(). สร้างออบเจ็กต์: ClientboundSetPlayerTeamPacket, ClientboundSetPlayerTeamPacket.Parameters.

Parameters

  • PlayerTeam playerTeam
  • boolean bl

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

PlayerTeam playerTeam = ...;
ClientboundSetPlayerTeamPacket result = ClientboundSetPlayerTeamPacket.createAddOrModifyPacket(playerTeam, true);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#createPlayerPacket(PlayerTeam,String,ClientboundSetPlayerTeamPacket.Action)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:50
  • Modifiers: public static
  • Return: ClientboundSetPlayerTeamPacket

คืออะไร

สร้าง Player Packet

ทำงานยังไง

เรียกต่อ: getName(), empty(), of(). สร้างออบเจ็กต์: ClientboundSetPlayerTeamPacket.

Parameters

  • PlayerTeam playerTeam
  • String string
  • ClientboundSetPlayerTeamPacket.Action action

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

PlayerTeam playerTeam = ...;
ClientboundSetPlayerTeamPacket.Action action = ...;
ClientboundSetPlayerTeamPacket result = ClientboundSetPlayerTeamPacket.createPlayerPacket(playerTeam, "value", action);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#createRemovePacket(PlayerTeam)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:46
  • Modifiers: public static
  • Return: ClientboundSetPlayerTeamPacket

คืออะไร

สร้าง Remove Packet

ทำงานยังไง

เรียกต่อ: getName(), empty(), of(). สร้างออบเจ็กต์: ClientboundSetPlayerTeamPacket. คืนค่า: new ClientboundSetPlayerTeamPacket(playerTeam.getName(), 1, Optional.empty(), ImmutableList.of()).

Parameters

  • PlayerTeam playerTeam

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

PlayerTeam playerTeam = ...;
ClientboundSetPlayerTeamPacket result = ClientboundSetPlayerTeamPacket.createRemovePacket(playerTeam);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#getName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:119
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket instance = ...;
String result = instance.getName();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#getParameters()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:127
  • Modifiers: public
  • Return: Optional<ClientboundSetPlayerTeamPacket.Parameters>

คืออะไร

อ่านค่า Parameters

ทำงานยังไง

คืนค่า: this.parameters.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket instance = ...;
Optional<ClientboundSetPlayerTeamPacket.Parameters> result = instance.getParameters();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#getPlayerAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:92
  • Modifiers: public
  • Return: ClientboundSetPlayerTeamPacket.Action

คืออะไร

อ่านค่า Player Action

ทำงานยังไง

แยกกรณีด้วย switch. คืนค่า: switch (this.method) { case 0, 3 -> ClientboundSetPlayerTeamPacket.Action.ADD.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket instance = ...;
ClientboundSetPlayerTeamPacket.Action result = instance.getPlayerAction();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#getPlayers()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:123
  • Modifiers: public
  • Return: Collection<String>

คืออะไร

อ่านค่า Players

ทำงานยังไง

คืนค่า: this.players.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket instance = ...;
Collection<String> result = instance.getPlayers();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#getTeamAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:101
  • Modifiers: public
  • Return: ClientboundSetPlayerTeamPacket.Action

คืออะไร

อ่านค่า Team Action

ทำงานยังไง

แยกกรณีด้วย switch. คืนค่า: switch (this.method) { case 0 -> ClientboundSetPlayerTeamPacket.Action.ADD.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket instance = ...;
ClientboundSetPlayerTeamPacket.Action result = instance.getTeamAction();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:115
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

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

Parameters

  • ClientGamePacketListener clientGamePacketListener

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

ClientboundSetPlayerTeamPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:110
  • Modifiers: public
  • Return: PacketType<ClientboundSetPlayerTeamPacket>

คืออะไร

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

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_PLAYER_TEAM.

Parameters

  • ไม่มี

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

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

ClientboundSetPlayerTeamPacket$Parameters

  • Full name: net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java
  • Type: class
  • Modifiers: public static

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getCollisionRule()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:181
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Collision Rule

ทำงานยังไง

คืนค่า: this.collisionRule.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
String result = instance.getCollisionRule();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getColor()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:173
  • Modifiers: public
  • Return: ChatFormatting

คืออะไร

อ่านค่า Color

ทำงานยังไง

คืนค่า: this.color.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
ChatFormatting result = instance.getColor();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getDisplayName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:165
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Display Name

ทำงานยังไง

คืนค่า: this.displayName.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
Component result = instance.getDisplayName();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getNametagVisibility()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:177
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Nametag Visibility

ทำงานยังไง

คืนค่า: this.nametagVisibility.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
String result = instance.getNametagVisibility();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getOptions()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:169
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Options

ทำงานยังไง

คืนค่า: this.options.

Parameters

  • ไม่มี

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

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
int result = instance.getOptions();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getPlayerPrefix()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:185
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Player Prefix

ทำงานยังไง

คืนค่า: this.playerPrefix.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
Component result = instance.getPlayerPrefix();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#getPlayerSuffix()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:189
  • Modifiers: public
  • Return: Component

คืออะไร

อ่านค่า Player Suffix

ทำงานยังไง

คืนค่า: this.playerSuffix.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
Component result = instance.getPlayerSuffix();

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#Parameters(PlayerTeam)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:145
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetPlayerTeamPacket.Parameters ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: displayName, options, nametagVisibility, collisionRule, color, playerPrefix. เรียกต่อ: getDisplayName(), packOptions(), getNameTagVisibility(), getCollisionRule(), getColor(), getPlayerPrefix(), getPlayerSuffix().

Parameters

  • PlayerTeam playerTeam

ตัวอย่างใช้งาน

PlayerTeam playerTeam = ...;
ClientboundSetPlayerTeamPacket.Parameters instance = new ClientboundSetPlayerTeamPacket.Parameters(playerTeam);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#Parameters(RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:155
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetPlayerTeamPacket.Parameters ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: displayName, options, nametagVisibility, collisionRule, color, playerPrefix. เรียกต่อ: decode(), readByte(), readUtf(), readEnum().

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf

ตัวอย่างใช้งาน

RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
ClientboundSetPlayerTeamPacket.Parameters instance = new ClientboundSetPlayerTeamPacket.Parameters(registryFriendlyByteBuf);

net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket$Parameters#write(RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetPlayerTeamPacket.java:193
  • Modifiers: public
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: encode(), writeByte(), writeUtf(), writeEnum().

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf

ตัวอย่างใช้งาน

ClientboundSetPlayerTeamPacket.Parameters instance = ...;
RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
instance.write(registryFriendlyByteBuf);

ClientboundSetScorePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetScorePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetScorePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetScorePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetScorePacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetScore().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetScorePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetScorePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetScorePacket.java:30
  • Modifiers: public
  • Return: PacketType<ClientboundSetScorePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetScorePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_SCORE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetScorePacket instance = ...;
PacketType<ClientboundSetScorePacket> result = instance.type();

ClientboundSetSimulationDistancePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetSimulationDistancePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetSimulationDistancePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetSimulationDistancePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetSimulationDistancePacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetSimulationDistance().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetSimulationDistancePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetSimulationDistancePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetSimulationDistancePacket.java:21
  • Modifiers: public
  • Return: PacketType<ClientboundSetSimulationDistancePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetSimulationDistancePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_SIMULATION_DISTANCE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetSimulationDistancePacket instance = ...;
PacketType<ClientboundSetSimulationDistancePacket> result = instance.type();

ClientboundSetSubtitleTextPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetSubtitleTextPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetSubtitleTextPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetSubtitleTextPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetSubtitleTextPacket.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: setSubtitleText().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetSubtitleTextPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetSubtitleTextPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetSubtitleTextPacket.java:15
  • Modifiers: public
  • Return: PacketType<ClientboundSetSubtitleTextPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetSubtitleTextPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_SUBTITLE_TEXT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetSubtitleTextPacket instance = ...;
PacketType<ClientboundSetSubtitleTextPacket> result = instance.type();

ClientboundSetTimePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetTimePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetTimePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetTimePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTimePacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetTime().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetTimePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetTimePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTimePacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundSetTimePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetTimePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_TIME.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTimePacket instance = ...;
PacketType<ClientboundSetTimePacket> result = instance.type();

ClientboundSetTitlesAnimationPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#ClientboundSetTitlesAnimationPacket(int,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSetTitlesAnimationPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: fadeIn, stay, fadeOut.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = new ClientboundSetTitlesAnimationPacket(0, 0, 0);

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#getFadeIn()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Fade In

ทำงานยังไง

คืนค่า: this.fadeIn.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = ...;
int result = instance.getFadeIn();

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#getFadeOut()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Fade Out

ทำงานยังไง

คืนค่า: this.fadeOut.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = ...;
int result = instance.getFadeOut();

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#getStay()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Stay

ทำงานยังไง

คืนค่า: this.stay.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = ...;
int result = instance.getStay();

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: setTitlesAnimation().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetTitlesAnimationPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitlesAnimationPacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundSetTitlesAnimationPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetTitlesAnimationPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_TITLES_ANIMATION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTitlesAnimationPacket instance = ...;
PacketType<ClientboundSetTitlesAnimationPacket> result = instance.type();

ClientboundSetTitleTextPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSetTitleTextPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSetTitleTextPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSetTitleTextPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitleTextPacket.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: setTitleText().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSetTitleTextPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSetTitleTextPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSetTitleTextPacket.java:15
  • Modifiers: public
  • Return: PacketType<ClientboundSetTitleTextPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSetTitleTextPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SET_TITLE_TEXT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSetTitleTextPacket instance = ...;
PacketType<ClientboundSetTitleTextPacket> result = instance.type();

ClientboundSoundEntityPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSoundEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#ClientboundSoundEntityPacket(Holder<SoundEvent>,SoundSource,Entity,float,float,long)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:23
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSoundEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: sound, source, id, volume, pitch, seed. เรียกต่อ: getId().

Parameters

  • Holder<SoundEvent> holder
  • SoundSource soundSource
  • Entity entity
  • float f
  • float g
  • long l

ตัวอย่างใช้งาน

Holder<SoundEvent> holder = ...;
SoundSource soundSource = ...;
Entity entity = ...;
ClientboundSoundEntityPacket instance = new ClientboundSoundEntityPacket(holder, soundSource, entity, 0.0F, 0.0F, 0L);

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:67
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getPitch()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:75
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Pitch

ทำงานยังไง

คืนค่า: this.pitch.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
float result = instance.getPitch();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getSeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:79
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Seed

ทำงานยังไง

คืนค่า: this.seed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
long result = instance.getSeed();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getSound()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:59
  • Modifiers: public
  • Return: Holder<SoundEvent>

คืออะไร

อ่านค่า Sound

ทำงานยังไง

คืนค่า: this.sound.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
Holder<SoundEvent> result = instance.getSound();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getSource()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:63
  • Modifiers: public
  • Return: SoundSource

คืออะไร

อ่านค่า Source

ทำงานยังไง

คืนค่า: this.source.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
SoundSource result = instance.getSource();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#getVolume()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:71
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Volume

ทำงานยังไง

คืนค่า: this.volume.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
float result = instance.getVolume();

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:55
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSoundEntityEvent().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSoundEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundEntityPacket.java:50
  • Modifiers: public
  • Return: PacketType<ClientboundSoundEntityPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSoundEntityPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SOUND_ENTITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundEntityPacket instance = ...;
PacketType<ClientboundSoundEntityPacket> result = instance.type();

ClientboundSoundPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSoundPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSoundPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSoundPacket#ClientboundSoundPacket(Holder<SoundEvent>,SoundSource,double,double,double,float,float,long)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundSoundPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: sound, source, x, y, z, volume.

Parameters

  • Holder<SoundEvent> holder
  • SoundSource soundSource
  • double d
  • double e
  • double f
  • float g
  • float h
  • long l

ตัวอย่างใช้งาน

Holder<SoundEvent> holder = ...;
SoundSource soundSource = ...;
ClientboundSoundPacket instance = new ClientboundSoundPacket(holder, soundSource, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F, 0L);

net.minecraft.network.protocol.game.ClientboundSoundPacket#getPitch()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:91
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Pitch

ทำงานยังไง

คืนค่า: this.pitch.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
float result = instance.getPitch();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getSeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:95
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Seed

ทำงานยังไง

คืนค่า: this.seed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
long result = instance.getSeed();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getSound()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:67
  • Modifiers: public
  • Return: Holder<SoundEvent>

คืออะไร

อ่านค่า Sound

ทำงานยังไง

คืนค่า: this.sound.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
Holder<SoundEvent> result = instance.getSound();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getSource()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:71
  • Modifiers: public
  • Return: SoundSource

คืออะไร

อ่านค่า Source

ทำงานยังไง

คืนค่า: this.source.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
SoundSource result = instance.getSource();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getVolume()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:87
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Volume

ทำงานยังไง

คืนค่า: this.volume.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
float result = instance.getVolume();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getX()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:75
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.x / 8.0F.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
double result = instance.getX();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getY()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:79
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.y / 8.0F.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
double result = instance.getY();

net.minecraft.network.protocol.game.ClientboundSoundPacket#getZ()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:83
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.z / 8.0F.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
double result = instance.getZ();

net.minecraft.network.protocol.game.ClientboundSoundPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:63
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSoundEvent().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSoundPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSoundPacket.java:58
  • Modifiers: public
  • Return: PacketType<ClientboundSoundPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSoundPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SOUND.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSoundPacket instance = ...;
PacketType<ClientboundSoundPacket> result = instance.type();

ClientboundStartConfigurationPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundStartConfigurationPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundStartConfigurationPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundStartConfigurationPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStartConfigurationPacket.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleConfigurationStart().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundStartConfigurationPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundStartConfigurationPacket#isTerminal()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStartConfigurationPacket.java:24
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Terminal

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStartConfigurationPacket instance = ...;
boolean result = instance.isTerminal();

net.minecraft.network.protocol.game.ClientboundStartConfigurationPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStartConfigurationPacket.java:15
  • Modifiers: public
  • Return: PacketType<ClientboundStartConfigurationPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundStartConfigurationPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_START_CONFIGURATION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStartConfigurationPacket instance = ...;
PacketType<ClientboundStartConfigurationPacket> result = instance.type();

ClientboundStopSoundPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundStopSoundPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundStopSoundPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundStopSoundPacket#ClientboundStopSoundPacket(ResourceLocation,SoundSource)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStopSoundPacket.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundStopSoundPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: name, source.

Parameters

  • ResourceLocation resourceLocation
  • SoundSource soundSource

ตัวอย่างใช้งาน

ResourceLocation resourceLocation = ...;
SoundSource soundSource = ...;
ClientboundStopSoundPacket instance = new ClientboundStopSoundPacket(resourceLocation, soundSource);

net.minecraft.network.protocol.game.ClientboundStopSoundPacket#getName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStopSoundPacket.java:69
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStopSoundPacket instance = ...;
ResourceLocation result = instance.getName();

net.minecraft.network.protocol.game.ClientboundStopSoundPacket#getSource()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStopSoundPacket.java:74
  • Modifiers: public
  • Return: SoundSource

คืออะไร

อ่านค่า Source

ทำงานยังไง

คืนค่า: this.source.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStopSoundPacket instance = ...;
SoundSource result = instance.getSource();

net.minecraft.network.protocol.game.ClientboundStopSoundPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStopSoundPacket.java:65
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleStopSoundEvent().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundStopSoundPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundStopSoundPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundStopSoundPacket.java:60
  • Modifiers: public
  • Return: PacketType<ClientboundStopSoundPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundStopSoundPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_STOP_SOUND.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundStopSoundPacket instance = ...;
PacketType<ClientboundStopSoundPacket> result = instance.type();

ClientboundSystemChatPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundSystemChatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundSystemChatPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundSystemChatPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java:25
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSystemChat().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundSystemChatPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundSystemChatPacket#isSkippable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java:29
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Skippable

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSystemChatPacket instance = ...;
boolean result = instance.isSkippable();

net.minecraft.network.protocol.game.ClientboundSystemChatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java:20
  • Modifiers: public
  • Return: PacketType<ClientboundSystemChatPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundSystemChatPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_SYSTEM_CHAT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundSystemChatPacket instance = ...;
PacketType<ClientboundSystemChatPacket> result = instance.type();

ClientboundTabListPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTabListPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTabListPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTabListPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTabListPacket.java:24
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTabListCustomisation().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTabListPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTabListPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTabListPacket.java:19
  • Modifiers: public
  • Return: PacketType<ClientboundTabListPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTabListPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TAB_LIST.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTabListPacket instance = ...;
PacketType<ClientboundTabListPacket> result = instance.type();

ClientboundTagQueryPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTagQueryPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTagQueryPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#ClientboundTagQueryPacket(int,CompoundTag)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundTagQueryPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: transactionId, tag.

Parameters

  • int i
  • CompoundTag compoundTag

ตัวอย่างใช้งาน

CompoundTag compoundTag = ...;
ClientboundTagQueryPacket instance = new ClientboundTagQueryPacket(0, compoundTag);

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#getTag()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:46
  • Modifiers: public
  • Return: CompoundTag

คืออะไร

อ่านค่า Tag

ทำงานยังไง

คืนค่า: this.tag.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTagQueryPacket instance = ...;
CompoundTag result = instance.getTag();

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#getTransactionId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:42
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Transaction Id

ทำงานยังไง

คืนค่า: this.transactionId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTagQueryPacket instance = ...;
int result = instance.getTransactionId();

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:38
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTagQueryPacket().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTagQueryPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#isSkippable()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:51
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Skippable

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTagQueryPacket instance = ...;
boolean result = instance.isSkippable();

net.minecraft.network.protocol.game.ClientboundTagQueryPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTagQueryPacket.java:33
  • Modifiers: public
  • Return: PacketType<ClientboundTagQueryPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTagQueryPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TAG_QUERY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTagQueryPacket instance = ...;
PacketType<ClientboundTagQueryPacket> result = instance.type();

ClientboundTakeItemEntityPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#ClientboundTakeItemEntityPacket(int,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundTakeItemEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: itemId, playerId, amount.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = new ClientboundTakeItemEntityPacket(0, 0, 0);

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#getAmount()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:51
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Amount

ทำงานยังไง

คืนค่า: this.amount.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = ...;
int result = instance.getAmount();

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#getItemId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Item Id

ทำงานยังไง

คืนค่า: this.itemId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = ...;
int result = instance.getItemId();

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#getPlayerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:47
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Player Id

ทำงานยังไง

คืนค่า: this.playerId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = ...;
int result = instance.getPlayerId();

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTakeItemEntity().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTakeItemEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTakeItemEntityPacket.java:34
  • Modifiers: public
  • Return: PacketType<ClientboundTakeItemEntityPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTakeItemEntityPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TAKE_ITEM_ENTITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTakeItemEntityPacket instance = ...;
PacketType<ClientboundTakeItemEntityPacket> result = instance.type();

ClientboundTeleportEntityPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTeleportEntityPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTeleportEntityPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTeleportEntity().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTeleportEntityPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket#teleport(int,PositionMoveRotation,Set<Relative>,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTeleportEntityPacket.java:26
  • Modifiers: public static
  • Return: ClientboundTeleportEntityPacket

คืออะไร

ดำเนินการ teleport ตาม implementation ของ ClientboundTeleportEntityPacket

ทำงานยังไง

สร้างออบเจ็กต์: ClientboundTeleportEntityPacket. คืนค่า: new ClientboundTeleportEntityPacket(i, positionMoveRotation, set, bl).

Parameters

  • int i
  • PositionMoveRotation positionMoveRotation
  • Set<Relative> set
  • boolean bl

ตัวอย่างใช้งาน

PositionMoveRotation positionMoveRotation = ...;
Set<Relative> set = ...;
ClientboundTeleportEntityPacket result = ClientboundTeleportEntityPacket.teleport(0, positionMoveRotation, set, true);

net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTeleportEntityPacket.java:30
  • Modifiers: public
  • Return: PacketType<ClientboundTeleportEntityPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTeleportEntityPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TELEPORT_ENTITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTeleportEntityPacket instance = ...;
PacketType<ClientboundTeleportEntityPacket> result = instance.type();

ClientboundTickingStatePacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTickingStatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTickingStatePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTickingStatePacket#from(TickRateManager)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStatePacket.java:18
  • Modifiers: public static
  • Return: ClientboundTickingStatePacket

คืออะไร

ดำเนินการ from ตาม implementation ของ ClientboundTickingStatePacket

ทำงานยังไง

เรียกต่อ: tickrate(), isFrozen(). สร้างออบเจ็กต์: ClientboundTickingStatePacket. คืนค่า: new ClientboundTickingStatePacket(tickRateManager.tickrate(), tickRateManager.isFrozen()).

Parameters

  • TickRateManager tickRateManager

ตัวอย่างใช้งาน

TickRateManager tickRateManager = ...;
ClientboundTickingStatePacket result = ClientboundTickingStatePacket.from(tickRateManager);

net.minecraft.network.protocol.game.ClientboundTickingStatePacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStatePacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTickingState().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTickingStatePacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTickingStatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStatePacket.java:27
  • Modifiers: public
  • Return: PacketType<ClientboundTickingStatePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTickingStatePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TICKING_STATE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTickingStatePacket instance = ...;
PacketType<ClientboundTickingStatePacket> result = instance.type();

ClientboundTickingStepPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundTickingStepPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundTickingStepPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundTickingStepPacket#from(TickRateManager)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStepPacket.java:18
  • Modifiers: public static
  • Return: ClientboundTickingStepPacket

คืออะไร

ดำเนินการ from ตาม implementation ของ ClientboundTickingStepPacket

ทำงานยังไง

เรียกต่อ: frozenTicksToRun(). สร้างออบเจ็กต์: ClientboundTickingStepPacket. คืนค่า: new ClientboundTickingStepPacket(tickRateManager.frozenTicksToRun()).

Parameters

  • TickRateManager tickRateManager

ตัวอย่างใช้งาน

TickRateManager tickRateManager = ...;
ClientboundTickingStepPacket result = ClientboundTickingStepPacket.from(tickRateManager);

net.minecraft.network.protocol.game.ClientboundTickingStepPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStepPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTickingStep().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundTickingStepPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundTickingStepPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundTickingStepPacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundTickingStepPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundTickingStepPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_TICKING_STEP.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundTickingStepPacket instance = ...;
PacketType<ClientboundTickingStepPacket> result = instance.type();

ClientboundUpdateAdvancementsPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#ClientboundUpdateAdvancementsPacket(boolean,Collection<AdvancementHolder>,Set<ResourceLocation>,Map<ResourceLocation, AdvancementProgress>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundUpdateAdvancementsPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: reset, added, removed, progress. เรียกต่อ: copyOf().

Parameters

  • boolean bl
  • Collection<AdvancementHolder> collection
  • Set<ResourceLocation> set
  • Map<ResourceLocation, AdvancementProgress> map

ตัวอย่างใช้งาน

Collection<AdvancementHolder> collection = ...;
Set<ResourceLocation> set = ...;
Map<ResourceLocation, AdvancementProgress> map = ...;
ClientboundUpdateAdvancementsPacket instance = new ClientboundUpdateAdvancementsPacket(true, collection, set, map);

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#getAdded()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:60
  • Modifiers: public
  • Return: List<AdvancementHolder>

คืออะไร

อ่านค่า Added

ทำงานยังไง

คืนค่า: this.added.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
List<AdvancementHolder> result = instance.getAdded();

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#getProgress()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:68
  • Modifiers: public
  • Return: Map<ResourceLocation, AdvancementProgress>

คืออะไร

อ่านค่า Progress

ทำงานยังไง

คืนค่า: this.progress.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
Map<ResourceLocation, AdvancementProgress> result = instance.getProgress();

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#getRemoved()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:64
  • Modifiers: public
  • Return: Set<ResourceLocation>

คืออะไร

อ่านค่า Removed

ทำงานยังไง

คืนค่า: this.removed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
Set<ResourceLocation> result = instance.getRemoved();

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:56
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUpdateAdvancementsPacket().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#shouldReset()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:72
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Reset

ทำงานยังไง

คืนค่า: this.reset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
boolean result = instance.shouldReset();

net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAdvancementsPacket.java:51
  • Modifiers: public
  • Return: PacketType<ClientboundUpdateAdvancementsPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundUpdateAdvancementsPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_UPDATE_ADVANCEMENTS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAdvancementsPacket instance = ...;
PacketType<ClientboundUpdateAdvancementsPacket> result = instance.type();

ClientboundUpdateAttributesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket#ClientboundUpdateAttributesPacket(int,Collection<AttributeInstance>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java:30
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundUpdateAttributesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

มีการวนลูป. แก้ state: entityId, attributes. เรียกต่อ: newArrayList(), add(), AttributeSnapshot(), getAttribute(), getBaseValue(), getModifiers(). สร้างออบเจ็กต์: ClientboundUpdateAttributesPacket.AttributeSnapshot.

Parameters

  • int i
  • Collection<AttributeInstance> collection

ตัวอย่างใช้งาน

Collection<AttributeInstance> collection = ...;
ClientboundUpdateAttributesPacket instance = new ClientboundUpdateAttributesPacket(0, collection);

net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket#getEntityId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java:58
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Entity Id

ทำงานยังไง

คืนค่า: this.entityId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAttributesPacket instance = ...;
int result = instance.getEntityId();

net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket#getValues()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java:62
  • Modifiers: public
  • Return: List<ClientboundUpdateAttributesPacket.AttributeSnapshot>

คืออะไร

อ่านค่า Values

ทำงานยังไง

คืนค่า: this.attributes.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAttributesPacket instance = ...;
List<ClientboundUpdateAttributesPacket.AttributeSnapshot> result = instance.getValues();

net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java:54
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUpdateAttributes().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundUpdateAttributesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundUpdateAttributesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateAttributesPacket.java:49
  • Modifiers: public
  • Return: PacketType<ClientboundUpdateAttributesPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundUpdateAttributesPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_UPDATE_ATTRIBUTES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateAttributesPacket instance = ...;
PacketType<ClientboundUpdateAttributesPacket> result = instance.type();

ClientboundUpdateMobEffectPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#ClientboundUpdateMobEffectPacket(int,MobEffectInstance,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:25
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ClientboundUpdateMobEffectPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: entityId, effect, effectAmplifier, effectDurationTicks, flags. เรียกต่อ: getEffect(), getAmplifier(), getDuration(), isAmbient(), isVisible(), showIcon().

Parameters

  • int i
  • MobEffectInstance mobEffectInstance
  • boolean bl

ตัวอย่างใช้งาน

MobEffectInstance mobEffectInstance = ...;
ClientboundUpdateMobEffectPacket instance = new ClientboundUpdateMobEffectPacket(0, mobEffectInstance, true);

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#effectShowsIcon()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:99
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ effectShowsIcon ตาม implementation ของ ClientboundUpdateMobEffectPacket

ทำงานยังไง

คืนค่า: (this.flags & 4) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
boolean result = instance.effectShowsIcon();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#getEffect()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:79
  • Modifiers: public
  • Return: Holder<MobEffect>

คืออะไร

อ่านค่า Effect

ทำงานยังไง

คืนค่า: this.effect.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
Holder<MobEffect> result = instance.getEffect();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#getEffectAmplifier()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:83
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Effect Amplifier

ทำงานยังไง

คืนค่า: this.effectAmplifier.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
int result = instance.getEffectAmplifier();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#getEffectDurationTicks()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:87
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Effect Duration Ticks

ทำงานยังไง

คืนค่า: this.effectDurationTicks.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
int result = instance.getEffectDurationTicks();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#getEntityId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:75
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Entity Id

ทำงานยังไง

คืนค่า: this.entityId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
int result = instance.getEntityId();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:71
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUpdateMobEffect().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#isEffectAmbient()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:95
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Effect Ambient

ทำงานยังไง

คืนค่า: (this.flags & 1) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
boolean result = instance.isEffectAmbient();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#isEffectVisible()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:91
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Effect Visible

ทำงานยังไง

คืนค่า: (this.flags & 2) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
boolean result = instance.isEffectVisible();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#shouldBlend()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:103
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Blend

ทำงานยังไง

คืนค่า: (this.flags & 8) != 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
boolean result = instance.shouldBlend();

net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateMobEffectPacket.java:66
  • Modifiers: public
  • Return: PacketType<ClientboundUpdateMobEffectPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundUpdateMobEffectPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_UPDATE_MOB_EFFECT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateMobEffectPacket instance = ...;
PacketType<ClientboundUpdateMobEffectPacket> result = instance.type();

ClientboundUpdateRecipesPacket

  • Full name: net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientboundUpdateRecipesPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ClientGamePacketListener>

net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket#handle(ClientGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateRecipesPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUpdateRecipes().

Parameters

  • ClientGamePacketListener clientGamePacketListener

ตัวอย่างใช้งาน

ClientboundUpdateRecipesPacket instance = ...;
ClientGamePacketListener clientGamePacketListener = ...;
instance.handle(clientGamePacketListener);

net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientboundUpdateRecipesPacket.java:26
  • Modifiers: public
  • Return: PacketType<ClientboundUpdateRecipesPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ClientboundUpdateRecipesPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.CLIENTBOUND_UPDATE_RECIPES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientboundUpdateRecipesPacket instance = ...;
PacketType<ClientboundUpdateRecipesPacket> result = instance.type();

ClientGamePacketListener

  • Full name: net.minecraft.network.protocol.game.ClientGamePacketListener
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ClientGamePacketListener.java
  • Type: interface
  • Modifiers: public
  • Implements: ClientPongPacketListener,ClientCommonPacketListener

net.minecraft.network.protocol.game.ClientGamePacketListener#handleAddEntity(ClientboundAddEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:13
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Add Entity

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundAddEntityPacket clientboundAddEntityPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundAddEntityPacket clientboundAddEntityPacket = ...;
instance.handleAddEntity(clientboundAddEntityPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleAddExperienceOrb(ClientboundAddExperienceOrbPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:15
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Add Experience Orb

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundAddExperienceOrbPacket clientboundAddExperienceOrbPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundAddExperienceOrbPacket clientboundAddExperienceOrbPacket = ...;
instance.handleAddExperienceOrb(clientboundAddExperienceOrbPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleAddObjective(ClientboundSetObjectivePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:17
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Add Objective

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetObjectivePacket clientboundSetObjectivePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetObjectivePacket clientboundSetObjectivePacket = ...;
instance.handleAddObjective(clientboundSetObjectivePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleAnimate(ClientboundAnimatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:19
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Animate

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundAnimatePacket clientboundAnimatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundAnimatePacket clientboundAnimatePacket = ...;
instance.handleAnimate(clientboundAnimatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleAwardStats(ClientboundAwardStatsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:23
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Award Stats

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundAwardStatsPacket clientboundAwardStatsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundAwardStatsPacket clientboundAwardStatsPacket = ...;
instance.handleAwardStats(clientboundAwardStatsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBlockChangedAck(ClientboundBlockChangedAckPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:211
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Changed Ack

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBlockChangedAckPacket clientboundBlockChangedAckPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBlockChangedAckPacket clientboundBlockChangedAckPacket = ...;
instance.handleBlockChangedAck(clientboundBlockChangedAckPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBlockDestruction(ClientboundBlockDestructionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:31
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Destruction

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBlockDestructionPacket clientboundBlockDestructionPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBlockDestructionPacket clientboundBlockDestructionPacket = ...;
instance.handleBlockDestruction(clientboundBlockDestructionPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBlockEntityData(ClientboundBlockEntityDataPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:35
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Entity Data

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBlockEntityDataPacket clientboundBlockEntityDataPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBlockEntityDataPacket clientboundBlockEntityDataPacket = ...;
instance.handleBlockEntityData(clientboundBlockEntityDataPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBlockEvent(ClientboundBlockEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:37
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBlockEventPacket clientboundBlockEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBlockEventPacket clientboundBlockEventPacket = ...;
instance.handleBlockEvent(clientboundBlockEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBlockUpdate(ClientboundBlockUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:39
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBlockUpdatePacket clientboundBlockUpdatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBlockUpdatePacket clientboundBlockUpdatePacket = ...;
instance.handleBlockUpdate(clientboundBlockUpdatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBossUpdate(ClientboundBossEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:173
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Boss Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBossEventPacket clientboundBossEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBossEventPacket clientboundBossEventPacket = ...;
instance.handleBossUpdate(clientboundBossEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleBundlePacket(ClientboundBundlePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:227
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Bundle Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundBundlePacket clientboundBundlePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundBundlePacket clientboundBundlePacket = ...;
instance.handleBundlePacket(clientboundBundlePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleChangeDifficulty(ClientboundChangeDifficultyPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:155
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Change Difficulty

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundChangeDifficultyPacket clientboundChangeDifficultyPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundChangeDifficultyPacket clientboundChangeDifficultyPacket = ...;
instance.handleChangeDifficulty(clientboundChangeDifficultyPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleChunkBatchFinished(ClientboundChunkBatchFinishedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:235
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chunk Batch Finished

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundChunkBatchFinishedPacket clientboundChunkBatchFinishedPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundChunkBatchFinishedPacket clientboundChunkBatchFinishedPacket = ...;
instance.handleChunkBatchFinished(clientboundChunkBatchFinishedPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleChunkBatchStart(ClientboundChunkBatchStartPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:233
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chunk Batch Start

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundChunkBatchStartPacket clientboundChunkBatchStartPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundChunkBatchStartPacket clientboundChunkBatchStartPacket = ...;
instance.handleChunkBatchStart(clientboundChunkBatchStartPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleChunkBlocksUpdate(ClientboundSectionBlocksUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:49
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chunk Blocks Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSectionBlocksUpdatePacket clientboundSectionBlocksUpdatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSectionBlocksUpdatePacket clientboundSectionBlocksUpdatePacket = ...;
instance.handleChunkBlocksUpdate(clientboundSectionBlocksUpdatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleChunksBiomes(ClientboundChunksBiomesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:75
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chunks Biomes

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundChunksBiomesPacket clientboundChunksBiomesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundChunksBiomesPacket clientboundChunksBiomesPacket = ...;
instance.handleChunksBiomes(clientboundChunksBiomesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleCommands(ClientboundCommandsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:185
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Commands

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundCommandsPacket clientboundCommandsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundCommandsPacket clientboundCommandsPacket = ...;
instance.handleCommands(clientboundCommandsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleCommandSuggestions(ClientboundCommandSuggestionsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:189
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Command Suggestions

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundCommandSuggestionsPacket clientboundCommandSuggestionsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundCommandSuggestionsPacket clientboundCommandSuggestionsPacket = ...;
instance.handleCommandSuggestions(clientboundCommandSuggestionsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleConfigurationStart(ClientboundStartConfigurationPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:231
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Configuration Start

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundStartConfigurationPacket clientboundStartConfigurationPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundStartConfigurationPacket clientboundStartConfigurationPacket = ...;
instance.handleConfigurationStart(clientboundStartConfigurationPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleContainerClose(ClientboundContainerClosePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:53
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Close

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundContainerClosePacket clientboundContainerClosePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundContainerClosePacket clientboundContainerClosePacket = ...;
instance.handleContainerClose(clientboundContainerClosePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleContainerContent(ClientboundContainerSetContentPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:55
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Content

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundContainerSetContentPacket clientboundContainerSetContentPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundContainerSetContentPacket clientboundContainerSetContentPacket = ...;
instance.handleContainerContent(clientboundContainerSetContentPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleContainerSetData(ClientboundContainerSetDataPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:59
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Set Data

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundContainerSetDataPacket clientboundContainerSetDataPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundContainerSetDataPacket clientboundContainerSetDataPacket = ...;
instance.handleContainerSetData(clientboundContainerSetDataPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleContainerSetSlot(ClientboundContainerSetSlotPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:61
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Set Slot

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundContainerSetSlotPacket clientboundContainerSetSlotPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundContainerSetSlotPacket clientboundContainerSetSlotPacket = ...;
instance.handleContainerSetSlot(clientboundContainerSetSlotPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleCustomChatCompletions(ClientboundCustomChatCompletionsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:225
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Custom Chat Completions

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundCustomChatCompletionsPacket clientboundCustomChatCompletionsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundCustomChatCompletionsPacket clientboundCustomChatCompletionsPacket = ...;
instance.handleCustomChatCompletions(clientboundCustomChatCompletionsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleDamageEvent(ClientboundDamageEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:229
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Damage Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundDamageEventPacket clientboundDamageEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundDamageEventPacket clientboundDamageEventPacket = ...;
instance.handleDamageEvent(clientboundDamageEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleDebugSample(ClientboundDebugSamplePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:237
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Debug Sample

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundDebugSamplePacket clientboundDebugSamplePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundDebugSamplePacket clientboundDebugSamplePacket = ...;
instance.handleDebugSample(clientboundDebugSamplePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleDeleteChat(ClientboundDeleteChatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:47
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Delete Chat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundDeleteChatPacket clientboundDeleteChatPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundDeleteChatPacket clientboundDeleteChatPacket = ...;
instance.handleDeleteChat(clientboundDeleteChatPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleDisguisedChat(ClientboundDisguisedChatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:45
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Disguised Chat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundDisguisedChatPacket clientboundDisguisedChatPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundDisguisedChatPacket clientboundDisguisedChatPacket = ...;
instance.handleDisguisedChat(clientboundDisguisedChatPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleEntityEvent(ClientboundEntityEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:63
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Entity Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundEntityEventPacket clientboundEntityEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundEntityEventPacket clientboundEntityEventPacket = ...;
instance.handleEntityEvent(clientboundEntityEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleEntityLinkPacket(ClientboundSetEntityLinkPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:65
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Entity Link Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetEntityLinkPacket clientboundSetEntityLinkPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetEntityLinkPacket clientboundSetEntityLinkPacket = ...;
instance.handleEntityLinkPacket(clientboundSetEntityLinkPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleEntityPositionSync(ClientboundEntityPositionSyncPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:137
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Entity Position Sync

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundEntityPositionSyncPacket clientboundEntityPositionSyncPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundEntityPositionSyncPacket clientboundEntityPositionSyncPacket = ...;
instance.handleEntityPositionSync(clientboundEntityPositionSyncPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleExplosion(ClientboundExplodePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:69
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Explosion

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundExplodePacket clientboundExplodePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundExplodePacket clientboundExplodePacket = ...;
instance.handleExplosion(clientboundExplodePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleForgetLevelChunk(ClientboundForgetLevelChunkPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:77
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Forget Level Chunk

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundForgetLevelChunkPacket clientboundForgetLevelChunkPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundForgetLevelChunkPacket clientboundForgetLevelChunkPacket = ...;
instance.handleForgetLevelChunk(clientboundForgetLevelChunkPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleGameEvent(ClientboundGameEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:71
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Game Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundGameEventPacket clientboundGameEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundGameEventPacket clientboundGameEventPacket = ...;
instance.handleGameEvent(clientboundGameEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleHorseScreenOpen(ClientboundHorseScreenOpenPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:57
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Horse Screen Open

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundHorseScreenOpenPacket clientboundHorseScreenOpenPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundHorseScreenOpenPacket clientboundHorseScreenOpenPacket = ...;
instance.handleHorseScreenOpen(clientboundHorseScreenOpenPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleHurtAnimation(ClientboundHurtAnimationPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:21
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Hurt Animation

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundHurtAnimationPacket clientboundHurtAnimationPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundHurtAnimationPacket clientboundHurtAnimationPacket = ...;
instance.handleHurtAnimation(clientboundHurtAnimationPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleInitializeBorder(ClientboundInitializeBorderPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:159
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Initialize Border

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundInitializeBorderPacket clientboundInitializeBorderPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundInitializeBorderPacket clientboundInitializeBorderPacket = ...;
instance.handleInitializeBorder(clientboundInitializeBorderPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleItemCooldown(ClientboundCooldownPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:175
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Item Cooldown

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundCooldownPacket clientboundCooldownPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundCooldownPacket clientboundCooldownPacket = ...;
instance.handleItemCooldown(clientboundCooldownPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleLevelChunkWithLight(ClientboundLevelChunkWithLightPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:73
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Level Chunk With Light

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundLevelChunkWithLightPacket clientboundLevelChunkWithLightPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundLevelChunkWithLightPacket clientboundLevelChunkWithLightPacket = ...;
instance.handleLevelChunkWithLight(clientboundLevelChunkWithLightPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleLevelEvent(ClientboundLevelEventPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:79
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Level Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundLevelEventPacket clientboundLevelEventPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundLevelEventPacket clientboundLevelEventPacket = ...;
instance.handleLevelEvent(clientboundLevelEventPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleLightUpdatePacket(ClientboundLightUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:197
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Light Update Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundLightUpdatePacket clientboundLightUpdatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundLightUpdatePacket clientboundLightUpdatePacket = ...;
instance.handleLightUpdatePacket(clientboundLightUpdatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleLogin(ClientboundLoginPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:81
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Login

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundLoginPacket clientboundLoginPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundLoginPacket clientboundLoginPacket = ...;
instance.handleLogin(clientboundLoginPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleLookAt(ClientboundPlayerLookAtPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:193
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Look At

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerLookAtPacket clientboundPlayerLookAtPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerLookAtPacket clientboundPlayerLookAtPacket = ...;
instance.handleLookAt(clientboundPlayerLookAtPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMapItemData(ClientboundMapItemDataPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:51
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Map Item Data

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundMapItemDataPacket clientboundMapItemDataPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundMapItemDataPacket clientboundMapItemDataPacket = ...;
instance.handleMapItemData(clientboundMapItemDataPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMerchantOffers(ClientboundMerchantOffersPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:203
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Merchant Offers

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundMerchantOffersPacket clientboundMerchantOffersPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundMerchantOffersPacket clientboundMerchantOffersPacket = ...;
instance.handleMerchantOffers(clientboundMerchantOffersPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMinecartAlongTrack(ClientboundMoveMinecartPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:85
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Minecart Along Track

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundMoveMinecartPacket clientboundMoveMinecartPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundMoveMinecartPacket clientboundMoveMinecartPacket = ...;
instance.handleMinecartAlongTrack(clientboundMoveMinecartPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMoveEntity(ClientboundMoveEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:83
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Move Entity

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundMoveEntityPacket clientboundMoveEntityPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundMoveEntityPacket clientboundMoveEntityPacket = ...;
instance.handleMoveEntity(clientboundMoveEntityPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMovePlayer(ClientboundPlayerPositionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:87
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Move Player

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerPositionPacket clientboundPlayerPositionPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerPositionPacket clientboundPlayerPositionPacket = ...;
instance.handleMovePlayer(clientboundPlayerPositionPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleMoveVehicle(ClientboundMoveVehiclePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:177
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Move Vehicle

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundMoveVehiclePacket clientboundMoveVehiclePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundMoveVehiclePacket clientboundMoveVehiclePacket = ...;
instance.handleMoveVehicle(clientboundMoveVehiclePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleOpenBook(ClientboundOpenBookPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:199
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Open Book

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundOpenBookPacket clientboundOpenBookPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundOpenBookPacket clientboundOpenBookPacket = ...;
instance.handleOpenBook(clientboundOpenBookPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleOpenScreen(ClientboundOpenScreenPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:201
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Open Screen

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundOpenScreenPacket clientboundOpenScreenPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundOpenScreenPacket clientboundOpenScreenPacket = ...;
instance.handleOpenScreen(clientboundOpenScreenPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleOpenSignEditor(ClientboundOpenSignEditorPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:33
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Open Sign Editor

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundOpenSignEditorPacket clientboundOpenSignEditorPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundOpenSignEditorPacket clientboundOpenSignEditorPacket = ...;
instance.handleOpenSignEditor(clientboundOpenSignEditorPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleParticleEvent(ClientboundLevelParticlesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:91
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Particle Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundLevelParticlesPacket clientboundLevelParticlesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundLevelParticlesPacket clientboundLevelParticlesPacket = ...;
instance.handleParticleEvent(clientboundLevelParticlesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlaceRecipe(ClientboundPlaceGhostRecipePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:183
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Place Recipe

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlaceGhostRecipePacket clientboundPlaceGhostRecipePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlaceGhostRecipePacket clientboundPlaceGhostRecipePacket = ...;
instance.handlePlaceRecipe(clientboundPlaceGhostRecipePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerAbilities(ClientboundPlayerAbilitiesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:93
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Abilities

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerAbilitiesPacket clientboundPlayerAbilitiesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerAbilitiesPacket clientboundPlayerAbilitiesPacket = ...;
instance.handlePlayerAbilities(clientboundPlayerAbilitiesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerChat(ClientboundPlayerChatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:43
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Chat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerChatPacket clientboundPlayerChatPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerChatPacket clientboundPlayerChatPacket = ...;
instance.handlePlayerChat(clientboundPlayerChatPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerCombatEnd(ClientboundPlayerCombatEndPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:149
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Combat End

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerCombatEndPacket clientboundPlayerCombatEndPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerCombatEndPacket clientboundPlayerCombatEndPacket = ...;
instance.handlePlayerCombatEnd(clientboundPlayerCombatEndPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerCombatEnter(ClientboundPlayerCombatEnterPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:151
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Combat Enter

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerCombatEnterPacket clientboundPlayerCombatEnterPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerCombatEnterPacket clientboundPlayerCombatEnterPacket = ...;
instance.handlePlayerCombatEnter(clientboundPlayerCombatEnterPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerCombatKill(ClientboundPlayerCombatKillPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:153
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Combat Kill

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerCombatKillPacket clientboundPlayerCombatKillPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerCombatKillPacket clientboundPlayerCombatKillPacket = ...;
instance.handlePlayerCombatKill(clientboundPlayerCombatKillPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerInfoRemove(ClientboundPlayerInfoRemovePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:95
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Info Remove

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerInfoRemovePacket clientboundPlayerInfoRemovePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerInfoRemovePacket clientboundPlayerInfoRemovePacket = ...;
instance.handlePlayerInfoRemove(clientboundPlayerInfoRemovePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handlePlayerInfoUpdate(ClientboundPlayerInfoUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:97
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Info Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerInfoUpdatePacket clientboundPlayerInfoUpdatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerInfoUpdatePacket clientboundPlayerInfoUpdatePacket = ...;
instance.handlePlayerInfoUpdate(clientboundPlayerInfoUpdatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleProjectilePowerPacket(ClientboundProjectilePowerPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:239
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Projectile Power Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundProjectilePowerPacket clientboundProjectilePowerPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundProjectilePowerPacket clientboundProjectilePowerPacket = ...;
instance.handleProjectilePowerPacket(clientboundProjectilePowerPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRecipeBookAdd(ClientboundRecipeBookAddPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:25
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Recipe Book Add

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRecipeBookAddPacket clientboundRecipeBookAddPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRecipeBookAddPacket clientboundRecipeBookAddPacket = ...;
instance.handleRecipeBookAdd(clientboundRecipeBookAddPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRecipeBookRemove(ClientboundRecipeBookRemovePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:27
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Recipe Book Remove

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRecipeBookRemovePacket clientboundRecipeBookRemovePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRecipeBookRemovePacket clientboundRecipeBookRemovePacket = ...;
instance.handleRecipeBookRemove(clientboundRecipeBookRemovePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRecipeBookSettings(ClientboundRecipeBookSettingsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:29
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Recipe Book Settings

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRecipeBookSettingsPacket clientboundRecipeBookSettingsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRecipeBookSettingsPacket clientboundRecipeBookSettingsPacket = ...;
instance.handleRecipeBookSettings(clientboundRecipeBookSettingsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRemoveEntities(ClientboundRemoveEntitiesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:99
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Remove Entities

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRemoveEntitiesPacket clientboundRemoveEntitiesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRemoveEntitiesPacket clientboundRemoveEntitiesPacket = ...;
instance.handleRemoveEntities(clientboundRemoveEntitiesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRemoveMobEffect(ClientboundRemoveMobEffectPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:101
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Remove Mob Effect

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRemoveMobEffectPacket clientboundRemoveMobEffectPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRemoveMobEffectPacket clientboundRemoveMobEffectPacket = ...;
instance.handleRemoveMobEffect(clientboundRemoveMobEffectPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleResetScore(ClientboundResetScorePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:125
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Reset Score

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundResetScorePacket clientboundResetScorePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundResetScorePacket clientboundResetScorePacket = ...;
instance.handleResetScore(clientboundResetScorePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRespawn(ClientboundRespawnPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:103
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Respawn

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRespawnPacket clientboundRespawnPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRespawnPacket clientboundRespawnPacket = ...;
instance.handleRespawn(clientboundRespawnPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRotateMob(ClientboundRotateHeadPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:105
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Rotate Mob

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundRotateHeadPacket clientboundRotateHeadPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundRotateHeadPacket clientboundRotateHeadPacket = ...;
instance.handleRotateMob(clientboundRotateHeadPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleRotatePlayer(ClientboundPlayerRotationPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:89
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Rotate Player

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundPlayerRotationPacket clientboundPlayerRotationPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundPlayerRotationPacket clientboundPlayerRotationPacket = ...;
instance.handleRotatePlayer(clientboundPlayerRotationPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSelectAdvancementsTab(ClientboundSelectAdvancementsTabPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:181
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Select Advancements Tab

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSelectAdvancementsTabPacket clientboundSelectAdvancementsTabPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSelectAdvancementsTabPacket clientboundSelectAdvancementsTabPacket = ...;
instance.handleSelectAdvancementsTab(clientboundSelectAdvancementsTabPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleServerData(ClientboundServerDataPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:223
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Server Data

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundServerDataPacket clientboundServerDataPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundServerDataPacket clientboundServerDataPacket = ...;
instance.handleServerData(clientboundServerDataPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetBorderCenter(ClientboundSetBorderCenterPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:169
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Border Center

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetBorderCenterPacket clientboundSetBorderCenterPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetBorderCenterPacket clientboundSetBorderCenterPacket = ...;
instance.handleSetBorderCenter(clientboundSetBorderCenterPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetBorderLerpSize(ClientboundSetBorderLerpSizePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:161
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Border Lerp Size

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetBorderLerpSizePacket clientboundSetBorderLerpSizePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetBorderLerpSizePacket clientboundSetBorderLerpSizePacket = ...;
instance.handleSetBorderLerpSize(clientboundSetBorderLerpSizePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetBorderSize(ClientboundSetBorderSizePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:163
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Border Size

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetBorderSizePacket clientboundSetBorderSizePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetBorderSizePacket clientboundSetBorderSizePacket = ...;
instance.handleSetBorderSize(clientboundSetBorderSizePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetBorderWarningDelay(ClientboundSetBorderWarningDelayPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:165
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Border Warning Delay

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetBorderWarningDelayPacket clientboundSetBorderWarningDelayPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetBorderWarningDelayPacket clientboundSetBorderWarningDelayPacket = ...;
instance.handleSetBorderWarningDelay(clientboundSetBorderWarningDelayPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetBorderWarningDistance(ClientboundSetBorderWarningDistancePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:167
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Border Warning Distance

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetBorderWarningDistancePacket clientboundSetBorderWarningDistancePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetBorderWarningDistancePacket clientboundSetBorderWarningDistancePacket = ...;
instance.handleSetBorderWarningDistance(clientboundSetBorderWarningDistancePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetCamera(ClientboundSetCameraPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:157
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Camera

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetCameraPacket clientboundSetCameraPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetCameraPacket clientboundSetCameraPacket = ...;
instance.handleSetCamera(clientboundSetCameraPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetChunkCacheCenter(ClientboundSetChunkCacheCenterPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:209
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Chunk Cache Center

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetChunkCacheCenterPacket clientboundSetChunkCacheCenterPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetChunkCacheCenterPacket clientboundSetChunkCacheCenterPacket = ...;
instance.handleSetChunkCacheCenter(clientboundSetChunkCacheCenterPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetChunkCacheRadius(ClientboundSetChunkCacheRadiusPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:205
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Chunk Cache Radius

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetChunkCacheRadiusPacket clientboundSetChunkCacheRadiusPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetChunkCacheRadiusPacket clientboundSetChunkCacheRadiusPacket = ...;
instance.handleSetChunkCacheRadius(clientboundSetChunkCacheRadiusPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetCursorItem(ClientboundSetCursorItemPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:241
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Cursor Item

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetCursorItemPacket clientboundSetCursorItemPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetCursorItemPacket clientboundSetCursorItemPacket = ...;
instance.handleSetCursorItem(clientboundSetCursorItemPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetDisplayObjective(ClientboundSetDisplayObjectivePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:109
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Display Objective

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetDisplayObjectivePacket clientboundSetDisplayObjectivePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetDisplayObjectivePacket clientboundSetDisplayObjectivePacket = ...;
instance.handleSetDisplayObjective(clientboundSetDisplayObjectivePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetEntityData(ClientboundSetEntityDataPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:111
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Entity Data

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetEntityDataPacket clientboundSetEntityDataPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetEntityDataPacket clientboundSetEntityDataPacket = ...;
instance.handleSetEntityData(clientboundSetEntityDataPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetEntityMotion(ClientboundSetEntityMotionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:113
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Entity Motion

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetEntityMotionPacket clientboundSetEntityMotionPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetEntityMotionPacket clientboundSetEntityMotionPacket = ...;
instance.handleSetEntityMotion(clientboundSetEntityMotionPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetEntityPassengersPacket(ClientboundSetPassengersPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:67
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Entity Passengers Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetPassengersPacket clientboundSetPassengersPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetPassengersPacket clientboundSetPassengersPacket = ...;
instance.handleSetEntityPassengersPacket(clientboundSetPassengersPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetEquipment(ClientboundSetEquipmentPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:115
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Equipment

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetEquipmentPacket clientboundSetEquipmentPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetEquipmentPacket clientboundSetEquipmentPacket = ...;
instance.handleSetEquipment(clientboundSetEquipmentPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetExperience(ClientboundSetExperiencePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:117
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Experience

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetExperiencePacket clientboundSetExperiencePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetExperiencePacket clientboundSetExperiencePacket = ...;
instance.handleSetExperience(clientboundSetExperiencePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetHealth(ClientboundSetHealthPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:119
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Health

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetHealthPacket clientboundSetHealthPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetHealthPacket clientboundSetHealthPacket = ...;
instance.handleSetHealth(clientboundSetHealthPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetHeldSlot(ClientboundSetHeldSlotPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:107
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Held Slot

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetHeldSlotPacket clientboundSetHeldSlotPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetHeldSlotPacket clientboundSetHeldSlotPacket = ...;
instance.handleSetHeldSlot(clientboundSetHeldSlotPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetPlayerInventory(ClientboundSetPlayerInventoryPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:243
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Player Inventory

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetPlayerInventoryPacket clientboundSetPlayerInventoryPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetPlayerInventoryPacket clientboundSetPlayerInventoryPacket = ...;
instance.handleSetPlayerInventory(clientboundSetPlayerInventoryPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetPlayerTeamPacket(ClientboundSetPlayerTeamPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:121
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Player Team Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetPlayerTeamPacket clientboundSetPlayerTeamPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetPlayerTeamPacket clientboundSetPlayerTeamPacket = ...;
instance.handleSetPlayerTeamPacket(clientboundSetPlayerTeamPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetScore(ClientboundSetScorePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:123
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Score

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetScorePacket clientboundSetScorePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetScorePacket clientboundSetScorePacket = ...;
instance.handleSetScore(clientboundSetScorePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetSimulationDistance(ClientboundSetSimulationDistancePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:207
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Simulation Distance

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetSimulationDistancePacket clientboundSetSimulationDistancePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetSimulationDistancePacket clientboundSetSimulationDistancePacket = ...;
instance.handleSetSimulationDistance(clientboundSetSimulationDistancePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetSpawn(ClientboundSetDefaultSpawnPositionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:127
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Spawn

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetDefaultSpawnPositionPacket clientboundSetDefaultSpawnPositionPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetDefaultSpawnPositionPacket clientboundSetDefaultSpawnPositionPacket = ...;
instance.handleSetSpawn(clientboundSetDefaultSpawnPositionPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSetTime(ClientboundSetTimePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:129
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Time

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetTimePacket clientboundSetTimePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetTimePacket clientboundSetTimePacket = ...;
instance.handleSetTime(clientboundSetTimePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSoundEntityEvent(ClientboundSoundEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:133
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Sound Entity Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSoundEntityPacket clientboundSoundEntityPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSoundEntityPacket clientboundSoundEntityPacket = ...;
instance.handleSoundEntityEvent(clientboundSoundEntityPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSoundEvent(ClientboundSoundPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:131
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Sound Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSoundPacket clientboundSoundPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSoundPacket clientboundSoundPacket = ...;
instance.handleSoundEvent(clientboundSoundPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleStopSoundEvent(ClientboundStopSoundPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:187
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Stop Sound Event

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundStopSoundPacket clientboundStopSoundPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundStopSoundPacket clientboundStopSoundPacket = ...;
instance.handleStopSoundEvent(clientboundStopSoundPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleSystemChat(ClientboundSystemChatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:41
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ System Chat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSystemChatPacket clientboundSystemChatPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSystemChatPacket clientboundSystemChatPacket = ...;
instance.handleSystemChat(clientboundSystemChatPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTabListCustomisation(ClientboundTabListPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:171
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Tab List Customisation

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTabListPacket clientboundTabListPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTabListPacket clientboundTabListPacket = ...;
instance.handleTabListCustomisation(clientboundTabListPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTagQueryPacket(ClientboundTagQueryPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:195
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Tag Query Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTagQueryPacket clientboundTagQueryPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTagQueryPacket clientboundTagQueryPacket = ...;
instance.handleTagQueryPacket(clientboundTagQueryPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTakeItemEntity(ClientboundTakeItemEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:135
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Take Item Entity

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTakeItemEntityPacket clientboundTakeItemEntityPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTakeItemEntityPacket clientboundTakeItemEntityPacket = ...;
instance.handleTakeItemEntity(clientboundTakeItemEntityPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTeleportEntity(ClientboundTeleportEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:139
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Teleport Entity

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTeleportEntityPacket clientboundTeleportEntityPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTeleportEntityPacket clientboundTeleportEntityPacket = ...;
instance.handleTeleportEntity(clientboundTeleportEntityPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTickingState(ClientboundTickingStatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:141
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Ticking State

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTickingStatePacket clientboundTickingStatePacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTickingStatePacket clientboundTickingStatePacket = ...;
instance.handleTickingState(clientboundTickingStatePacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTickingStep(ClientboundTickingStepPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:143
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Ticking Step

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundTickingStepPacket clientboundTickingStepPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundTickingStepPacket clientboundTickingStepPacket = ...;
instance.handleTickingStep(clientboundTickingStepPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleTitlesClear(ClientboundClearTitlesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:221
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Titles Clear

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundClearTitlesPacket clientboundClearTitlesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundClearTitlesPacket clientboundClearTitlesPacket = ...;
instance.handleTitlesClear(clientboundClearTitlesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleUpdateAdvancementsPacket(ClientboundUpdateAdvancementsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:179
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Update Advancements Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundUpdateAdvancementsPacket clientboundUpdateAdvancementsPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundUpdateAdvancementsPacket clientboundUpdateAdvancementsPacket = ...;
instance.handleUpdateAdvancementsPacket(clientboundUpdateAdvancementsPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleUpdateAttributes(ClientboundUpdateAttributesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:145
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Update Attributes

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundUpdateAttributesPacket clientboundUpdateAttributesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundUpdateAttributesPacket clientboundUpdateAttributesPacket = ...;
instance.handleUpdateAttributes(clientboundUpdateAttributesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleUpdateMobEffect(ClientboundUpdateMobEffectPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:147
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Update Mob Effect

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundUpdateMobEffectPacket clientboundUpdateMobEffectPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundUpdateMobEffectPacket clientboundUpdateMobEffectPacket = ...;
instance.handleUpdateMobEffect(clientboundUpdateMobEffectPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#handleUpdateRecipes(ClientboundUpdateRecipesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:191
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Update Recipes

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundUpdateRecipesPacket clientboundUpdateRecipesPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundUpdateRecipesPacket clientboundUpdateRecipesPacket = ...;
instance.handleUpdateRecipes(clientboundUpdateRecipesPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#protocol()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:8
  • Modifiers: default
  • Return: ConnectionProtocol

คืออะไร

ดำเนินการ protocol ตาม implementation ของ ClientGamePacketListener

ทำงานยังไง

คืนค่า: ConnectionProtocol.PLAY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ConnectionProtocol result = instance.protocol();

net.minecraft.network.protocol.game.ClientGamePacketListener#setActionBarText(ClientboundSetActionBarTextPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:213
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Action Bar Text

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetActionBarTextPacket clientboundSetActionBarTextPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetActionBarTextPacket clientboundSetActionBarTextPacket = ...;
instance.setActionBarText(clientboundSetActionBarTextPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#setSubtitleText(ClientboundSetSubtitleTextPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:215
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Subtitle Text

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetSubtitleTextPacket clientboundSetSubtitleTextPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetSubtitleTextPacket clientboundSetSubtitleTextPacket = ...;
instance.setSubtitleText(clientboundSetSubtitleTextPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#setTitlesAnimation(ClientboundSetTitlesAnimationPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:219
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Titles Animation

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetTitlesAnimationPacket clientboundSetTitlesAnimationPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetTitlesAnimationPacket clientboundSetTitlesAnimationPacket = ...;
instance.setTitlesAnimation(clientboundSetTitlesAnimationPacket);

net.minecraft.network.protocol.game.ClientGamePacketListener#setTitleText(ClientboundSetTitleTextPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ClientGamePacketListener.java:217
  • Modifiers: ``
  • Return: void

คืออะไร

กำหนดค่า Title Text

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ClientboundSetTitleTextPacket clientboundSetTitleTextPacket

ตัวอย่างใช้งาน

ClientGamePacketListener instance = ...;
ClientboundSetTitleTextPacket clientboundSetTitleTextPacket = ...;
instance.setTitleText(clientboundSetTitleTextPacket);

CommonPlayerSpawnInfo

  • Full name: net.minecraft.network.protocol.game.CommonPlayerSpawnInfo
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/CommonPlayerSpawnInfo.java
  • Type: record
  • Modifiers: public

net.minecraft.network.protocol.game.CommonPlayerSpawnInfo#CommonPlayerSpawnInfo(RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/CommonPlayerSpawnInfo.java:27
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ CommonPlayerSpawnInfo ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: decode(), readResourceKey(), readLong(), byId(), readByte(), byNullableId(), readBoolean(), readOptional().

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf

ตัวอย่างใช้งาน

RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
CommonPlayerSpawnInfo instance = new CommonPlayerSpawnInfo(registryFriendlyByteBuf);

net.minecraft.network.protocol.game.CommonPlayerSpawnInfo#write(RegistryFriendlyByteBuf)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/CommonPlayerSpawnInfo.java:42
  • Modifiers: public
  • Return: void

คืออะไร

เขียน write

ทำงานยังไง

เรียกต่อ: encode(), writeResourceKey(), writeLong(), writeByte(), getId(), getNullableId(), writeBoolean(), writeOptional().

Parameters

  • RegistryFriendlyByteBuf registryFriendlyByteBuf

ตัวอย่างใช้งาน

CommonPlayerSpawnInfo instance = ...;
RegistryFriendlyByteBuf registryFriendlyByteBuf = ...;
instance.write(registryFriendlyByteBuf);

DebugEntityNameGenerator

  • Full name: net.minecraft.network.protocol.game.DebugEntityNameGenerator
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/DebugEntityNameGenerator.java
  • Type: class
  • Modifiers: public

net.minecraft.network.protocol.game.DebugEntityNameGenerator#getEntityName(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugEntityNameGenerator.java:79
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Entity Name

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getName(), getString(), getCustomName(), getUUID(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • Entity entity

ตัวอย่างใช้งาน

Entity entity = ...;
String result = DebugEntityNameGenerator.getEntityName(entity);

net.minecraft.network.protocol.game.DebugEntityNameGenerator#getEntityName(UUID)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugEntityNameGenerator.java:88
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Entity Name

ทำงานยังไง

เรียกต่อ: getRandom(), getRandomString(). คืนค่า: getRandomString(randomSource, NAMES_FIRST_PART) + getRandomString(randomSource, NAMES_SECOND_PART).

Parameters

  • UUID uUID

ตัวอย่างใช้งาน

UUID uUID = ...;
String result = DebugEntityNameGenerator.getEntityName(uUID);

DebugPackets

  • Full name: net.minecraft.network.protocol.game.DebugPackets
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/DebugPackets.java
  • Type: class
  • Modifiers: public

net.minecraft.network.protocol.game.DebugPackets#sendBeeInfo(Bee)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:103
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Bee Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Bee bee

ตัวอย่างใช้งาน

Bee bee = ...;
DebugPackets.sendBeeInfo(bee);

net.minecraft.network.protocol.game.DebugPackets#sendBreezeInfo(Breeze)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:106
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Breeze Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Breeze breeze

ตัวอย่างใช้งาน

Breeze breeze = ...;
DebugPackets.sendBreezeInfo(breeze);

net.minecraft.network.protocol.game.DebugPackets#sendEntityBrain(LivingEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:100
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Entity Brain

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • LivingEntity livingEntity

ตัวอย่างใช้งาน

LivingEntity livingEntity = ...;
DebugPackets.sendEntityBrain(livingEntity);

net.minecraft.network.protocol.game.DebugPackets#sendGameEventInfo(Level,Holder<GameEvent>,Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:109
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Game Event Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • Holder<GameEvent> holder
  • Vec3 vec3

ตัวอย่างใช้งาน

Level level = ...;
Holder<GameEvent> holder = ...;
Vec3 vec3 = ...;
DebugPackets.sendGameEventInfo(level, holder, vec3);

net.minecraft.network.protocol.game.DebugPackets#sendGameEventListenerInfo(Level,GameEventListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:112
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Game Event Listener Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • GameEventListener gameEventListener

ตัวอย่างใช้งาน

Level level = ...;
GameEventListener gameEventListener = ...;
DebugPackets.sendGameEventListenerInfo(level, gameEventListener);

net.minecraft.network.protocol.game.DebugPackets#sendGameTestAddMarker(ServerLevel,BlockPos,String,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:53
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Game Test Add Marker

ทำงานยังไง

เรียกต่อ: sendPacketToAllPlayers(). สร้างออบเจ็กต์: GameTestAddMarkerDebugPayload.

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos
  • String string
  • int i
  • int j

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
DebugPackets.sendGameTestAddMarker(serverLevel, blockPos, "value", 0, 0);

net.minecraft.network.protocol.game.DebugPackets#sendGameTestClearPacket(ServerLevel)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:57
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Game Test Clear Packet

ทำงานยังไง

เรียกต่อ: sendPacketToAllPlayers(). สร้างออบเจ็กต์: GameTestClearMarkersDebugPayload.

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
DebugPackets.sendGameTestClearPacket(serverLevel);

net.minecraft.network.protocol.game.DebugPackets#sendGoalSelector(Level,Mob,GoalSelector)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:94
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Goal Selector

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • Mob mob
  • GoalSelector goalSelector

ตัวอย่างใช้งาน

Level level = ...;
Mob mob = ...;
GoalSelector goalSelector = ...;
DebugPackets.sendGoalSelector(level, mob, goalSelector);

net.minecraft.network.protocol.game.DebugPackets#sendHiveInfo(Level,BlockPos,BlockState,BeehiveBlockEntity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:115
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Hive Info

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • BlockPos blockPos
  • BlockState blockState
  • BeehiveBlockEntity beehiveBlockEntity

ตัวอย่างใช้งาน

Level level = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
BeehiveBlockEntity beehiveBlockEntity = ...;
DebugPackets.sendHiveInfo(level, blockPos, blockState, beehiveBlockEntity);

net.minecraft.network.protocol.game.DebugPackets#sendNeighborsUpdatePacket(Level,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:82
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Neighbors Update Packet

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • BlockPos blockPos

ตัวอย่างใช้งาน

Level level = ...;
BlockPos blockPos = ...;
DebugPackets.sendNeighborsUpdatePacket(level, blockPos);

net.minecraft.network.protocol.game.DebugPackets#sendPathFindingPacket(Level,Mob,Path,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:79
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Path Finding Packet

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Level level
  • Mob mob
  • Path path
  • float f

ตัวอย่างใช้งาน

Level level = ...;
Mob mob = ...;
Path path = ...;
DebugPackets.sendPathFindingPacket(level, mob, path, 0.0F);

net.minecraft.network.protocol.game.DebugPackets#sendPoiAddedPacket(ServerLevel,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:64
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Poi Added Packet

ทำงานยังไง

เรียกต่อ: sendVillageSectionsPacket().

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
DebugPackets.sendPoiAddedPacket(serverLevel, blockPos);

net.minecraft.network.protocol.game.DebugPackets#sendPoiPacketsForChunk(ServerLevel,ChunkPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:61
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Poi Packets For Chunk

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ServerLevel serverLevel
  • ChunkPos chunkPos

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
ChunkPos chunkPos = ...;
DebugPackets.sendPoiPacketsForChunk(serverLevel, chunkPos);

net.minecraft.network.protocol.game.DebugPackets#sendPoiRemovedPacket(ServerLevel,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:68
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Poi Removed Packet

ทำงานยังไง

เรียกต่อ: sendVillageSectionsPacket().

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
DebugPackets.sendPoiRemovedPacket(serverLevel, blockPos);

net.minecraft.network.protocol.game.DebugPackets#sendPoiTicketCountPacket(ServerLevel,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:72
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Poi Ticket Count Packet

ทำงานยังไง

เรียกต่อ: sendVillageSectionsPacket().

Parameters

  • ServerLevel serverLevel
  • BlockPos blockPos

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
BlockPos blockPos = ...;
DebugPackets.sendPoiTicketCountPacket(serverLevel, blockPos);

net.minecraft.network.protocol.game.DebugPackets#sendRaids(ServerLevel,Collection<Raid>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:97
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Raids

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ServerLevel serverLevel
  • Collection<Raid> collection

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
Collection<Raid> collection = ...;
DebugPackets.sendRaids(serverLevel, collection);

net.minecraft.network.protocol.game.DebugPackets#sendStructurePacket(WorldGenLevel,StructureStart)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:91
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Structure Packet

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • WorldGenLevel worldGenLevel
  • StructureStart structureStart

ตัวอย่างใช้งาน

WorldGenLevel worldGenLevel = ...;
StructureStart structureStart = ...;
DebugPackets.sendStructurePacket(worldGenLevel, structureStart);

net.minecraft.network.protocol.game.DebugPackets#sendWireUpdates(Level,RedstoneWireOrientationsDebugPayload)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/DebugPackets.java:85
  • Modifiers: public static
  • Return: void

คืออะไร

ส่ง Wire Updates

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: sendPacketToAllPlayers().

Parameters

  • Level level
  • RedstoneWireOrientationsDebugPayload redstoneWireOrientationsDebugPayload

ตัวอย่างใช้งาน

Level level = ...;
RedstoneWireOrientationsDebugPayload redstoneWireOrientationsDebugPayload = ...;
DebugPackets.sendWireUpdates(level, redstoneWireOrientationsDebugPayload);

ServerboundAcceptTeleportationPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundAcceptTeleportationPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundAcceptTeleportationPacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundAcceptTeleportationPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundAcceptTeleportationPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleAcceptTeleportPacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundAcceptTeleportationPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacket#ServerboundAcceptTeleportationPacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundAcceptTeleportationPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundAcceptTeleportationPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id.

Parameters

  • int i

ตัวอย่างใช้งาน

ServerboundAcceptTeleportationPacket instance = new ServerboundAcceptTeleportationPacket(0);

net.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundAcceptTeleportationPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundAcceptTeleportationPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundAcceptTeleportationPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_ACCEPT_TELEPORTATION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundAcceptTeleportationPacket instance = ...;
PacketType<ServerboundAcceptTeleportationPacket> result = instance.type();

ServerboundBlockEntityTagQueryPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java:44
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundBlockEntityTagQueryPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket#getTransactionId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java:40
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Transaction Id

ทำงานยังไง

คืนค่า: this.transactionId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundBlockEntityTagQueryPacket instance = ...;
int result = instance.getTransactionId();

net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java:36
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleBlockEntityTagQuery().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundBlockEntityTagQueryPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket#ServerboundBlockEntityTagQueryPacket(int,BlockPos)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundBlockEntityTagQueryPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: transactionId, pos.

Parameters

  • int i
  • BlockPos blockPos

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerboundBlockEntityTagQueryPacket instance = new ServerboundBlockEntityTagQueryPacket(0, blockPos);

net.minecraft.network.protocol.game.ServerboundBlockEntityTagQueryPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundBlockEntityTagQueryPacket.java:31
  • Modifiers: public
  • Return: PacketType<ServerboundBlockEntityTagQueryPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundBlockEntityTagQueryPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_BLOCK_ENTITY_TAG_QUERY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundBlockEntityTagQueryPacket instance = ...;
PacketType<ServerboundBlockEntityTagQueryPacket> result = instance.type();

ServerboundChangeDifficultyPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChangeDifficultyPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket#getDifficulty()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChangeDifficultyPacket.java:36
  • Modifiers: public
  • Return: Difficulty

คืออะไร

อ่านค่า Difficulty

ทำงานยังไง

คืนค่า: this.difficulty.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChangeDifficultyPacket instance = ...;
Difficulty result = instance.getDifficulty();

net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChangeDifficultyPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChangeDifficulty().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChangeDifficultyPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket#ServerboundChangeDifficultyPacket(Difficulty)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChangeDifficultyPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundChangeDifficultyPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: difficulty.

Parameters

  • Difficulty difficulty

ตัวอย่างใช้งาน

Difficulty difficulty = ...;
ServerboundChangeDifficultyPacket instance = new ServerboundChangeDifficultyPacket(difficulty);

net.minecraft.network.protocol.game.ServerboundChangeDifficultyPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChangeDifficultyPacket.java:27
  • Modifiers: public
  • Return: PacketType<ServerboundChangeDifficultyPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChangeDifficultyPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHANGE_DIFFICULTY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChangeDifficultyPacket instance = ...;
PacketType<ServerboundChangeDifficultyPacket> result = instance.type();

ServerboundChatAckPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChatAckPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChatAckPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChatAckPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatAckPacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChatAck().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChatAckPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChatAckPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatAckPacket.java:21
  • Modifiers: public
  • Return: PacketType<ServerboundChatAckPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChatAckPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHAT_ACK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChatAckPacket instance = ...;
PacketType<ServerboundChatAckPacket> result = instance.type();

ServerboundChatCommandPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChatCommandPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChatCommandPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChatCommandPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChatCommand().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChatCommandPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChatCommandPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java:21
  • Modifiers: public
  • Return: PacketType<ServerboundChatCommandPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChatCommandPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHAT_COMMAND.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChatCommandPacket instance = ...;
PacketType<ServerboundChatCommandPacket> result = instance.type();

ServerboundChatCommandSignedPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChatCommandSignedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChatCommandSignedPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java:41
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSignedChatCommand().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChatCommandSignedPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChatCommandSignedPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java:36
  • Modifiers: public
  • Return: PacketType<ServerboundChatCommandSignedPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChatCommandSignedPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHAT_COMMAND_SIGNED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChatCommandSignedPacket instance = ...;
PacketType<ServerboundChatCommandSignedPacket> result = instance.type();

ServerboundChatPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChatPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChatPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChat().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChatPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatPacket.java:34
  • Modifiers: public
  • Return: PacketType<ServerboundChatPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChatPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHAT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChatPacket instance = ...;
PacketType<ServerboundChatPacket> result = instance.type();

ServerboundChatSessionUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChatSessionUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChatSessionUpdatePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChatSessionUpdatePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatSessionUpdatePacket.java:27
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChatSessionUpdate().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChatSessionUpdatePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChatSessionUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChatSessionUpdatePacket.java:22
  • Modifiers: public
  • Return: PacketType<ServerboundChatSessionUpdatePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChatSessionUpdatePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHAT_SESSION_UPDATE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChatSessionUpdatePacket instance = ...;
PacketType<ServerboundChatSessionUpdatePacket> result = instance.type();

ServerboundChunkBatchReceivedPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundChunkBatchReceivedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundChunkBatchReceivedPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundChunkBatchReceivedPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChunkBatchReceivedPacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleChunkBatchReceived().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundChunkBatchReceivedPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundChunkBatchReceivedPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundChunkBatchReceivedPacket.java:21
  • Modifiers: public
  • Return: PacketType<ServerboundChunkBatchReceivedPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundChunkBatchReceivedPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CHUNK_BATCH_RECEIVED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundChunkBatchReceivedPacket instance = ...;
PacketType<ServerboundChunkBatchReceivedPacket> result = instance.type();

ServerboundClientCommandPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundClientCommandPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundClientCommandPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundClientCommandPacket#getAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientCommandPacket.java:35
  • Modifiers: public
  • Return: ServerboundClientCommandPacket.Action

คืออะไร

อ่านค่า Action

ทำงานยังไง

คืนค่า: this.action.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundClientCommandPacket instance = ...;
ServerboundClientCommandPacket.Action result = instance.getAction();

net.minecraft.network.protocol.game.ServerboundClientCommandPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientCommandPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleClientCommand().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundClientCommandPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundClientCommandPacket#ServerboundClientCommandPacket(ServerboundClientCommandPacket.Action)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientCommandPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundClientCommandPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: action.

Parameters

  • ServerboundClientCommandPacket.Action action

ตัวอย่างใช้งาน

ServerboundClientCommandPacket.Action action = ...;
ServerboundClientCommandPacket instance = new ServerboundClientCommandPacket(action);

net.minecraft.network.protocol.game.ServerboundClientCommandPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientCommandPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundClientCommandPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundClientCommandPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CLIENT_COMMAND.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundClientCommandPacket instance = ...;
PacketType<ServerboundClientCommandPacket> result = instance.type();

ServerboundClientTickEndPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundClientTickEndPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundClientTickEndPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundClientTickEndPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientTickEndPacket.java:17
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleClientTickEnd().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundClientTickEndPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundClientTickEndPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundClientTickEndPacket.java:12
  • Modifiers: public
  • Return: PacketType<ServerboundClientTickEndPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundClientTickEndPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CLIENT_TICK_END.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundClientTickEndPacket instance = ...;
PacketType<ServerboundClientTickEndPacket> result = instance.type();

ServerboundCommandSuggestionPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket#getCommand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java:43
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Command

ทำงานยังไง

คืนค่า: this.command.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundCommandSuggestionPacket instance = ...;
String result = instance.getCommand();

net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java:39
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundCommandSuggestionPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleCustomCommandSuggestions().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundCommandSuggestionPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket#ServerboundCommandSuggestionPacket(int,String)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundCommandSuggestionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, command.

Parameters

  • int i
  • String string

ตัวอย่างใช้งาน

ServerboundCommandSuggestionPacket instance = new ServerboundCommandSuggestionPacket(0, "value");

net.minecraft.network.protocol.game.ServerboundCommandSuggestionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundCommandSuggestionPacket.java:30
  • Modifiers: public
  • Return: PacketType<ServerboundCommandSuggestionPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundCommandSuggestionPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_COMMAND_SUGGESTION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundCommandSuggestionPacket instance = ...;
PacketType<ServerboundCommandSuggestionPacket> result = instance.type();

ServerboundConfigurationAcknowledgedPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundConfigurationAcknowledgedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundConfigurationAcknowledgedPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundConfigurationAcknowledgedPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundConfigurationAcknowledgedPacket.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleConfigurationAcknowledged().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundConfigurationAcknowledgedPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundConfigurationAcknowledgedPacket#isTerminal()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundConfigurationAcknowledgedPacket.java:24
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Terminal

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundConfigurationAcknowledgedPacket instance = ...;
boolean result = instance.isTerminal();

net.minecraft.network.protocol.game.ServerboundConfigurationAcknowledgedPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundConfigurationAcknowledgedPacket.java:15
  • Modifiers: public
  • Return: PacketType<ServerboundConfigurationAcknowledgedPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundConfigurationAcknowledgedPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CONFIGURATION_ACKNOWLEDGED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundConfigurationAcknowledgedPacket instance = ...;
PacketType<ServerboundConfigurationAcknowledgedPacket> result = instance.type();

ServerboundContainerButtonClickPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundContainerButtonClickPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundContainerButtonClickPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundContainerButtonClickPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerButtonClickPacket.java:23
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleContainerButtonClick().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundContainerButtonClickPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundContainerButtonClickPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerButtonClickPacket.java:18
  • Modifiers: public
  • Return: PacketType<ServerboundContainerButtonClickPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundContainerButtonClickPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CONTAINER_BUTTON_CLICK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerButtonClickPacket instance = ...;
PacketType<ServerboundContainerButtonClickPacket> result = instance.type();

ServerboundContainerClickPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundContainerClickPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundContainerClickPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getButtonNum()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:77
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Button Num

ทำงานยังไง

คืนค่า: this.buttonNum.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
int result = instance.getButtonNum();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getCarriedItem()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:81
  • Modifiers: public
  • Return: ItemStack

คืออะไร

อ่านค่า Carried Item

ทำงานยังไง

คืนค่า: this.carriedItem.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
ItemStack result = instance.getCarriedItem();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getChangedSlots()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:85
  • Modifiers: public
  • Return: Int2ObjectMap<ItemStack>

คืออะไร

อ่านค่า Changed Slots

ทำงานยังไง

คืนค่า: this.changedSlots.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
Int2ObjectMap<ItemStack> result = instance.getChangedSlots();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getClickType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:89
  • Modifiers: public
  • Return: ClickType

คืออะไร

อ่านค่า Click Type

ทำงานยังไง

คืนค่า: this.clickType.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
ClickType result = instance.getClickType();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:69
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getSlotNum()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:73
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Slot Num

ทำงานยังไง

คืนค่า: this.slotNum.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
int result = instance.getSlotNum();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#getStateId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:93
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า State Id

ทำงานยังไง

คืนค่า: this.stateId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
int result = instance.getStateId();

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:65
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleContainerClick().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#ServerboundContainerClickPacket(int,int,int,int,ClickType,ItemStack,Int2ObjectMap<ItemStack>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:30
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundContainerClickPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId, stateId, slotNum, buttonNum, clickType, carriedItem. เรียกต่อ: unmodifiable().

Parameters

  • int i
  • int j
  • int k
  • int l
  • ClickType clickType
  • ItemStack itemStack
  • Int2ObjectMap<ItemStack> int2ObjectMap

ตัวอย่างใช้งาน

ClickType clickType = ...;
ItemStack itemStack = ...;
Int2ObjectMap<ItemStack> int2ObjectMap = ...;
ServerboundContainerClickPacket instance = new ServerboundContainerClickPacket(0, 0, 0, 0, clickType, itemStack, int2ObjectMap);

net.minecraft.network.protocol.game.ServerboundContainerClickPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClickPacket.java:60
  • Modifiers: public
  • Return: PacketType<ServerboundContainerClickPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundContainerClickPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CONTAINER_CLICK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClickPacket instance = ...;
PacketType<ServerboundContainerClickPacket> result = instance.type();

ServerboundContainerClosePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundContainerClosePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundContainerClosePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundContainerClosePacket#getContainerId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClosePacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Container Id

ทำงานยังไง

คืนค่า: this.containerId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClosePacket instance = ...;
int result = instance.getContainerId();

net.minecraft.network.protocol.game.ServerboundContainerClosePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClosePacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleContainerClose().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundContainerClosePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundContainerClosePacket#ServerboundContainerClosePacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClosePacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundContainerClosePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: containerId.

Parameters

  • int i

ตัวอย่างใช้งาน

ServerboundContainerClosePacket instance = new ServerboundContainerClosePacket(0);

net.minecraft.network.protocol.game.ServerboundContainerClosePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerClosePacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundContainerClosePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundContainerClosePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CONTAINER_CLOSE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerClosePacket instance = ...;
PacketType<ServerboundContainerClosePacket> result = instance.type();

ServerboundContainerSlotStateChangedPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundContainerSlotStateChangedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundContainerSlotStateChangedPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundContainerSlotStateChangedPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerSlotStateChangedPacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleContainerSlotStateChanged().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundContainerSlotStateChangedPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundContainerSlotStateChangedPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundContainerSlotStateChangedPacket.java:23
  • Modifiers: public
  • Return: PacketType<ServerboundContainerSlotStateChangedPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundContainerSlotStateChangedPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_CONTAINER_SLOT_STATE_CHANGED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundContainerSlotStateChangedPacket instance = ...;
PacketType<ServerboundContainerSlotStateChangedPacket> result = instance.type();

ServerboundDebugSampleSubscriptionPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundDebugSampleSubscriptionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundDebugSampleSubscriptionPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundDebugSampleSubscriptionPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundDebugSampleSubscriptionPacket.java:27
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleDebugSampleSubscription().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundDebugSampleSubscriptionPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundDebugSampleSubscriptionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundDebugSampleSubscriptionPacket.java:22
  • Modifiers: public
  • Return: PacketType<ServerboundDebugSampleSubscriptionPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundDebugSampleSubscriptionPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_DEBUG_SAMPLE_SUBSCRIPTION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundDebugSampleSubscriptionPacket instance = ...;
PacketType<ServerboundDebugSampleSubscriptionPacket> result = instance.type();

ServerboundEditBookPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundEditBookPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundEditBookPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundEditBookPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEditBookPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleEditBook().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundEditBookPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundEditBookPacket#ServerboundEditBookPacket(int,List<String>,Optional<String>)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEditBookPacket.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundEditBookPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: copyOf().

Parameters

  • int slot
  • List<String> pages
  • Optional<String> title

ตัวอย่างใช้งาน

List<String> pages = ...;
Optional<String> title = ...;
ServerboundEditBookPacket instance = new ServerboundEditBookPacket(0, pages, title);

net.minecraft.network.protocol.game.ServerboundEditBookPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEditBookPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundEditBookPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundEditBookPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_EDIT_BOOK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundEditBookPacket instance = ...;
PacketType<ServerboundEditBookPacket> result = instance.type();

ServerboundEntityTagQueryPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket#getEntityId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java:43
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Entity Id

ทำงานยังไง

คืนค่า: this.entityId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundEntityTagQueryPacket instance = ...;
int result = instance.getEntityId();

net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket#getTransactionId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java:39
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Transaction Id

ทำงานยังไง

คืนค่า: this.transactionId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundEntityTagQueryPacket instance = ...;
int result = instance.getTransactionId();

net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleEntityTagQuery().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundEntityTagQueryPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket#ServerboundEntityTagQueryPacket(int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundEntityTagQueryPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: transactionId, entityId.

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

ServerboundEntityTagQueryPacket instance = new ServerboundEntityTagQueryPacket(0, 0);

net.minecraft.network.protocol.game.ServerboundEntityTagQueryPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundEntityTagQueryPacket.java:30
  • Modifiers: public
  • Return: PacketType<ServerboundEntityTagQueryPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundEntityTagQueryPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_ENTITY_TAG_QUERY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundEntityTagQueryPacket instance = ...;
PacketType<ServerboundEntityTagQueryPacket> result = instance.type();

ServerboundInteractPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundInteractPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundInteractPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundInteractPacket#createAttackPacket(Entity,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:43
  • Modifiers: public static
  • Return: ServerboundInteractPacket

คืออะไร

สร้าง Attack Packet

ทำงานยังไง

เรียกต่อ: getId(). สร้างออบเจ็กต์: ServerboundInteractPacket. คืนค่า: new ServerboundInteractPacket(entity.getId(), bl, ATTACK_ACTION).

Parameters

  • Entity entity
  • boolean bl

ตัวอย่างใช้งาน

Entity entity = ...;
ServerboundInteractPacket result = ServerboundInteractPacket.createAttackPacket(entity, true);

net.minecraft.network.protocol.game.ServerboundInteractPacket#createInteractionPacket(Entity,boolean,InteractionHand)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:47
  • Modifiers: public static
  • Return: ServerboundInteractPacket

คืออะไร

สร้าง Interaction Packet

ทำงานยังไง

เรียกต่อ: getId(), InteractionAction(). สร้างออบเจ็กต์: ServerboundInteractPacket, ServerboundInteractPacket.InteractionAction. คืนค่า: new ServerboundInteractPacket(entity.getId(), bl, new ServerboundInteractPacket.InteractionAction(interactionHand)).

Parameters

  • Entity entity
  • boolean bl
  • InteractionHand interactionHand

ตัวอย่างใช้งาน

Entity entity = ...;
InteractionHand interactionHand = ...;
ServerboundInteractPacket result = ServerboundInteractPacket.createInteractionPacket(entity, true, interactionHand);

net.minecraft.network.protocol.game.ServerboundInteractPacket#createInteractionPacket(Entity,boolean,InteractionHand,Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:51
  • Modifiers: public static
  • Return: ServerboundInteractPacket

คืออะไร

สร้าง Interaction Packet

ทำงานยังไง

เรียกต่อ: getId(), InteractionAtLocationAction(). สร้างออบเจ็กต์: ServerboundInteractPacket, ServerboundInteractPacket.InteractionAtLocationAction. คืนค่า: new ServerboundInteractPacket(entity.getId(), bl, new ServerboundInteractPacket.InteractionAtLocationAction(interactionHand, vec3)).

Parameters

  • Entity entity
  • boolean bl
  • InteractionHand interactionHand
  • Vec3 vec3

ตัวอย่างใช้งาน

Entity entity = ...;
InteractionHand interactionHand = ...;
Vec3 vec3 = ...;
ServerboundInteractPacket result = ServerboundInteractPacket.createInteractionPacket(entity, true, interactionHand, vec3);

net.minecraft.network.protocol.game.ServerboundInteractPacket#dispatch(ServerboundInteractPacket.Handler)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:87
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ dispatch ตาม implementation ของ ServerboundInteractPacket

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ServerboundInteractPacket.Handler handler

ตัวอย่างใช้งาน

ServerboundInteractPacket instance = ...;
ServerboundInteractPacket.Handler handler = ...;
instance.dispatch(handler);

net.minecraft.network.protocol.game.ServerboundInteractPacket#getTarget(ServerLevel)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:78
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Target

ทำงานยังไง

เรียกต่อ: getEntityOrPart(). คืนค่า: serverLevel.getEntityOrPart(this.entityId).

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

ServerboundInteractPacket instance = ...;
ServerLevel serverLevel = ...;
Entity result = instance.getTarget(serverLevel);

net.minecraft.network.protocol.game.ServerboundInteractPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:74
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleInteract().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundInteractPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundInteractPacket#isUsingSecondaryAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:83
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Using Secondary Action

ทำงานยังไง

คืนค่า: this.usingSecondaryAction.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundInteractPacket instance = ...;
boolean result = instance.isUsingSecondaryAction();

net.minecraft.network.protocol.game.ServerboundInteractPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:69
  • Modifiers: public
  • Return: PacketType<ServerboundInteractPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundInteractPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_INTERACT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundInteractPacket instance = ...;
PacketType<ServerboundInteractPacket> result = instance.type();

ServerboundInteractPacket$Handler

  • Full name: net.minecraft.network.protocol.game.ServerboundInteractPacket$Handler
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundInteractPacket.java
  • Type: interface
  • Modifiers: public

net.minecraft.network.protocol.game.ServerboundInteractPacket$Handler#onAttack()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:116
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Attack

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundInteractPacket.Handler instance = ...;
instance.onAttack();

net.minecraft.network.protocol.game.ServerboundInteractPacket$Handler#onInteraction(InteractionHand)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:112
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Interaction

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • InteractionHand interactionHand

ตัวอย่างใช้งาน

ServerboundInteractPacket.Handler instance = ...;
InteractionHand interactionHand = ...;
instance.onInteraction(interactionHand);

net.minecraft.network.protocol.game.ServerboundInteractPacket$Handler#onInteraction(InteractionHand,Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundInteractPacket.java:114
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Interaction

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • InteractionHand interactionHand
  • Vec3 vec3

ตัวอย่างใช้งาน

ServerboundInteractPacket.Handler instance = ...;
InteractionHand interactionHand = ...;
Vec3 vec3 = ...;
instance.onInteraction(interactionHand, vec3);

ServerboundJigsawGeneratePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:44
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundJigsawGeneratePacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:40
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleJigsawGenerate().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundJigsawGeneratePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#keepJigsaws()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:52
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ keepJigsaws ตาม implementation ของ ServerboundJigsawGeneratePacket

ทำงานยังไง

คืนค่า: this.keepJigsaws.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundJigsawGeneratePacket instance = ...;
boolean result = instance.keepJigsaws();

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#levels()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:48
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ levels ตาม implementation ของ ServerboundJigsawGeneratePacket

ทำงานยังไง

คืนค่า: this.levels.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundJigsawGeneratePacket instance = ...;
int result = instance.levels();

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#ServerboundJigsawGeneratePacket(BlockPos,int,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundJigsawGeneratePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, levels, keepJigsaws.

Parameters

  • BlockPos blockPos
  • int i
  • boolean bl

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerboundJigsawGeneratePacket instance = new ServerboundJigsawGeneratePacket(blockPos, 0, true);

net.minecraft.network.protocol.game.ServerboundJigsawGeneratePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundJigsawGeneratePacket.java:35
  • Modifiers: public
  • Return: PacketType<ServerboundJigsawGeneratePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundJigsawGeneratePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_JIGSAW_GENERATE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundJigsawGeneratePacket instance = ...;
PacketType<ServerboundJigsawGeneratePacket> result = instance.type();

ServerboundLockDifficultyPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundLockDifficultyPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundLockDifficultyPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundLockDifficultyPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundLockDifficultyPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleLockDifficulty().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundLockDifficultyPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundLockDifficultyPacket#isLocked()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundLockDifficultyPacket.java:35
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Locked

ทำงานยังไง

คืนค่า: this.locked.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundLockDifficultyPacket instance = ...;
boolean result = instance.isLocked();

net.minecraft.network.protocol.game.ServerboundLockDifficultyPacket#ServerboundLockDifficultyPacket(boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundLockDifficultyPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundLockDifficultyPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: locked.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

ServerboundLockDifficultyPacket instance = new ServerboundLockDifficultyPacket(true);

net.minecraft.network.protocol.game.ServerboundLockDifficultyPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundLockDifficultyPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundLockDifficultyPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundLockDifficultyPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_LOCK_DIFFICULTY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundLockDifficultyPacket instance = ...;
PacketType<ServerboundLockDifficultyPacket> result = instance.type();

ServerboundMovePlayerPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundMovePlayerPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java
  • Type: class
  • Modifiers: public abstract
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#getX(double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:61
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า X

ทำงานยังไง

คืนค่า: this.hasPos ? this.x : d.

Parameters

  • double d

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
double result = instance.getX(0.0D);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#getXRot(float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:77
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า XRot

ทำงานยังไง

คืนค่า: this.hasRot ? this.xRot : f.

Parameters

  • float f

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
float result = instance.getXRot(0.0F);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#getY(double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:65
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Y

ทำงานยังไง

คืนค่า: this.hasPos ? this.y : d.

Parameters

  • double d

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
double result = instance.getY(0.0D);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#getYRot(float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:73
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YRot

ทำงานยังไง

คืนค่า: this.hasRot ? this.yRot : f.

Parameters

  • float f

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
float result = instance.getYRot(0.0F);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#getZ(double)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:69
  • Modifiers: public
  • Return: double

คืออะไร

อ่านค่า Z

ทำงานยังไง

คืนค่า: this.hasPos ? this.z : d.

Parameters

  • double d

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
double result = instance.getZ(0.0D);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:57
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleMovePlayer().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#hasPosition()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:89
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Position

ทำงานยังไง

คืนค่า: this.hasPos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
boolean result = instance.hasPosition();

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#hasRotation()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:93
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Rotation

ทำงานยังไง

คืนค่า: this.hasRot.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
boolean result = instance.hasRotation();

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#horizontalCollision()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:85
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ horizontalCollision ตาม implementation ของ ServerboundMovePlayerPacket

ทำงานยังไง

คืนค่า: this.horizontalCollision.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
boolean result = instance.horizontalCollision();

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#isOnGround()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:81
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ On Ground

ทำงานยังไง

คืนค่า: this.onGround.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
boolean result = instance.isOnGround();

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#ServerboundMovePlayerPacket(double,double,double,float,float,boolean,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:42
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundMovePlayerPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: x, y, z, yRot, xRot, onGround.

Parameters

  • double d
  • double e
  • double f
  • float g
  • float h
  • boolean bl
  • boolean bl2
  • boolean bl3
  • boolean bl4

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = new ServerboundMovePlayerPacket(0.0D, 0.0D, 0.0D, 0.0F, 0.0F, true, true, true, true);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:54
  • Modifiers: public abstract
  • Return: PacketType<? extends ServerboundMovePlayerPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMovePlayerPacket

ทำงานยังไง

ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket instance = ...;
PacketType<? extends ServerboundMovePlayerPacket> result = instance.type();

ServerboundMovePlayerPacket$Pos

  • Full name: net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ServerboundMovePlayerPacket

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos#Pos(double,double,double,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:102
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundMovePlayerPacket.Pos ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • double d
  • double e
  • double f
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.Pos instance = new ServerboundMovePlayerPacket.Pos(0.0D, 0.0D, 0.0D, true, true);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:123
  • Modifiers: public
  • Return: PacketType<ServerboundMovePlayerPacket.Pos>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMovePlayerPacket$Pos

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_MOVE_PLAYER_POS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.Pos instance = ...;
PacketType<ServerboundMovePlayerPacket.Pos> result = instance.type();

ServerboundMovePlayerPacket$PosRot

  • Full name: net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRot
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ServerboundMovePlayerPacket

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRot#PosRot(double,double,double,float,float,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:134
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundMovePlayerPacket.PosRot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • double d
  • double e
  • double f
  • float g
  • float h
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.PosRot instance = new ServerboundMovePlayerPacket.PosRot(0.0D, 0.0D, 0.0D, 0.0F, 0.0F, true, true);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRot#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:159
  • Modifiers: public
  • Return: PacketType<ServerboundMovePlayerPacket.PosRot>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMovePlayerPacket$PosRot

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_MOVE_PLAYER_POS_ROT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.PosRot instance = ...;
PacketType<ServerboundMovePlayerPacket.PosRot> result = instance.type();

ServerboundMovePlayerPacket$Rot

  • Full name: net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Rot
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ServerboundMovePlayerPacket

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Rot#Rot(float,float,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:170
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundMovePlayerPacket.Rot ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • float f
  • float g
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.Rot instance = new ServerboundMovePlayerPacket.Rot(0.0F, 0.0F, true, true);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Rot#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:189
  • Modifiers: public
  • Return: PacketType<ServerboundMovePlayerPacket.Rot>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMovePlayerPacket$Rot

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_MOVE_PLAYER_ROT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.Rot instance = ...;
PacketType<ServerboundMovePlayerPacket.Rot> result = instance.type();

ServerboundMovePlayerPacket$StatusOnly

  • Full name: net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$StatusOnly
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java
  • Type: class
  • Modifiers: public static
  • Extends: ServerboundMovePlayerPacket

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$StatusOnly#StatusOnly(boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:200
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundMovePlayerPacket.StatusOnly ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.StatusOnly instance = new ServerboundMovePlayerPacket.StatusOnly(true, true);

net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$StatusOnly#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMovePlayerPacket.java:215
  • Modifiers: public
  • Return: PacketType<ServerboundMovePlayerPacket.StatusOnly>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMovePlayerPacket$StatusOnly

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_MOVE_PLAYER_STATUS_ONLY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMovePlayerPacket.StatusOnly instance = ...;
PacketType<ServerboundMovePlayerPacket.StatusOnly> result = instance.type();

ServerboundMoveVehiclePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundMoveVehiclePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundMoveVehiclePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundMoveVehiclePacket#fromEntity(Entity)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMoveVehiclePacket.java:24
  • Modifiers: public static
  • Return: ServerboundMoveVehiclePacket

คืออะไร

ดำเนินการ fromEntity ตาม implementation ของ ServerboundMoveVehiclePacket

ทำงานยังไง

เรียกต่อ: lerpTargetX(), lerpTargetY(), lerpTargetZ(), getYRot(), getXRot(), onGround(). สร้างออบเจ็กต์: ServerboundMoveVehiclePacket, Vec3.

Parameters

  • Entity entity

ตัวอย่างใช้งาน

Entity entity = ...;
ServerboundMoveVehiclePacket result = ServerboundMoveVehiclePacket.fromEntity(entity);

net.minecraft.network.protocol.game.ServerboundMoveVehiclePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMoveVehiclePacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleMoveVehicle().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundMoveVehiclePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundMoveVehiclePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundMoveVehiclePacket.java:30
  • Modifiers: public
  • Return: PacketType<ServerboundMoveVehiclePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundMoveVehiclePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_MOVE_VEHICLE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundMoveVehiclePacket instance = ...;
PacketType<ServerboundMoveVehiclePacket> result = instance.type();

ServerboundPaddleBoatPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket#getLeft()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java:39
  • Modifiers: public
  • Return: boolean

คืออะไร

อ่านค่า Left

ทำงานยังไง

คืนค่า: this.left.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPaddleBoatPacket instance = ...;
boolean result = instance.getLeft();

net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket#getRight()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java:43
  • Modifiers: public
  • Return: boolean

คืออะไร

อ่านค่า Right

ทำงานยังไง

คืนค่า: this.right.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPaddleBoatPacket instance = ...;
boolean result = instance.getRight();

net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java:30
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePaddleBoat().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPaddleBoatPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket#ServerboundPaddleBoatPacket(boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPaddleBoatPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: left, right.

Parameters

  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

ServerboundPaddleBoatPacket instance = new ServerboundPaddleBoatPacket(true, true);

net.minecraft.network.protocol.game.ServerboundPaddleBoatPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPaddleBoatPacket.java:34
  • Modifiers: public
  • Return: PacketType<ServerboundPaddleBoatPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPaddleBoatPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PADDLE_BOAT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPaddleBoatPacket instance = ...;
PacketType<ServerboundPaddleBoatPacket> result = instance.type();

ServerboundPickItemFromBlockPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPickItemFromBlockPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPickItemFromBlockPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPickItemFromBlockPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPickItemFromBlockPacket.java:24
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePickItemFromBlock().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPickItemFromBlockPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPickItemFromBlockPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPickItemFromBlockPacket.java:19
  • Modifiers: public
  • Return: PacketType<ServerboundPickItemFromBlockPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPickItemFromBlockPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PICK_ITEM_FROM_BLOCK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPickItemFromBlockPacket instance = ...;
PacketType<ServerboundPickItemFromBlockPacket> result = instance.type();

ServerboundPickItemFromEntityPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPickItemFromEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPickItemFromEntityPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPickItemFromEntityPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPickItemFromEntityPacket.java:23
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePickItemFromEntity().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPickItemFromEntityPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPickItemFromEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPickItemFromEntityPacket.java:18
  • Modifiers: public
  • Return: PacketType<ServerboundPickItemFromEntityPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPickItemFromEntityPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PICK_ITEM_FROM_ENTITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPickItemFromEntityPacket instance = ...;
PacketType<ServerboundPickItemFromEntityPacket> result = instance.type();

ServerboundPlaceRecipePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlaceRecipePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlaceRecipePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlaceRecipePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlaceRecipePacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePlaceRecipe().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlaceRecipePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlaceRecipePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlaceRecipePacket.java:21
  • Modifiers: public
  • Return: PacketType<ServerboundPlaceRecipePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlaceRecipePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLACE_RECIPE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlaceRecipePacket instance = ...;
PacketType<ServerboundPlaceRecipePacket> result = instance.type();

ServerboundPlayerAbilitiesPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlayerAbilitiesPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerAbilitiesPacket.java:39
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePlayerAbilities().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlayerAbilitiesPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacket#isFlying()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerAbilitiesPacket.java:43
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Flying

ทำงานยังไง

คืนค่า: this.isFlying.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerAbilitiesPacket instance = ...;
boolean result = instance.isFlying();

net.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacket#ServerboundPlayerAbilitiesPacket(Abilities)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerAbilitiesPacket.java:16
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPlayerAbilitiesPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: isFlying.

Parameters

  • Abilities abilities

ตัวอย่างใช้งาน

Abilities abilities = ...;
ServerboundPlayerAbilitiesPacket instance = new ServerboundPlayerAbilitiesPacket(abilities);

net.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerAbilitiesPacket.java:34
  • Modifiers: public
  • Return: PacketType<ServerboundPlayerAbilitiesPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlayerAbilitiesPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLAYER_ABILITIES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerAbilitiesPacket instance = ...;
PacketType<ServerboundPlayerAbilitiesPacket> result = instance.type();

ServerboundPlayerActionPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlayerActionPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#getAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:61
  • Modifiers: public
  • Return: ServerboundPlayerActionPacket.Action

คืออะไร

อ่านค่า Action

ทำงานยังไง

คืนค่า: this.action.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
ServerboundPlayerActionPacket.Action result = instance.getAction();

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#getDirection()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:57
  • Modifiers: public
  • Return: Direction

คืออะไร

อ่านค่า Direction

ทำงานยังไง

คืนค่า: this.direction.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
Direction result = instance.getDirection();

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:53
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#getSequence()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:65
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Sequence

ทำงานยังไง

คืนค่า: this.sequence.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
int result = instance.getSequence();

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:49
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePlayerAction().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action,BlockPos,Direction)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:26
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPlayerActionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ServerboundPlayerActionPacket.Action action
  • BlockPos blockPos
  • Direction direction

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket.Action action = ...;
BlockPos blockPos = ...;
Direction direction = ...;
ServerboundPlayerActionPacket instance = new ServerboundPlayerActionPacket(action, blockPos, direction);

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action,BlockPos,Direction,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPlayerActionPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: action, pos, direction, sequence. เรียกต่อ: immutable().

Parameters

  • ServerboundPlayerActionPacket.Action action
  • BlockPos blockPos
  • Direction direction
  • int i

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket.Action action = ...;
BlockPos blockPos = ...;
Direction direction = ...;
ServerboundPlayerActionPacket instance = new ServerboundPlayerActionPacket(action, blockPos, direction, 0);

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerActionPacket.java:44
  • Modifiers: public
  • Return: PacketType<ServerboundPlayerActionPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlayerActionPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLAYER_ACTION.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerActionPacket instance = ...;
PacketType<ServerboundPlayerActionPacket> result = instance.type();

ServerboundPlayerCommandPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#getAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:52
  • Modifiers: public
  • Return: ServerboundPlayerCommandPacket.Action

คืออะไร

อ่านค่า Action

ทำงานยังไง

คืนค่า: this.action.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerCommandPacket instance = ...;
ServerboundPlayerCommandPacket.Action result = instance.getAction();

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#getData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:56
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Data

ทำงานยังไง

คืนค่า: this.data.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerCommandPacket instance = ...;
int result = instance.getData();

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#getId()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:48
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Id

ทำงานยังไง

คืนค่า: this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerCommandPacket instance = ...;
int result = instance.getId();

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePlayerCommand().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlayerCommandPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#ServerboundPlayerCommandPacket(Entity,ServerboundPlayerCommandPacket.Action)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPlayerCommandPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Entity entity
  • ServerboundPlayerCommandPacket.Action action

ตัวอย่างใช้งาน

Entity entity = ...;
ServerboundPlayerCommandPacket.Action action = ...;
ServerboundPlayerCommandPacket instance = new ServerboundPlayerCommandPacket(entity, action);

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#ServerboundPlayerCommandPacket(Entity,ServerboundPlayerCommandPacket.Action,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundPlayerCommandPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: id, action, data. เรียกต่อ: getId().

Parameters

  • Entity entity
  • ServerboundPlayerCommandPacket.Action action
  • int i

ตัวอย่างใช้งาน

Entity entity = ...;
ServerboundPlayerCommandPacket.Action action = ...;
ServerboundPlayerCommandPacket instance = new ServerboundPlayerCommandPacket(entity, action, 0);

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerCommandPacket.java:39
  • Modifiers: public
  • Return: PacketType<ServerboundPlayerCommandPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlayerCommandPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLAYER_COMMAND.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerCommandPacket instance = ...;
PacketType<ServerboundPlayerCommandPacket> result = instance.type();

ServerboundPlayerInputPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlayerInputPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlayerInputPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerInputPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerInputPacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handlePlayerInput().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlayerInputPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlayerInputPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerInputPacket.java:14
  • Modifiers: public
  • Return: PacketType<ServerboundPlayerInputPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlayerInputPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLAYER_INPUT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerInputPacket instance = ...;
PacketType<ServerboundPlayerInputPacket> result = instance.type();

ServerboundPlayerLoadedPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundPlayerLoadedPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundPlayerLoadedPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerLoadedPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerLoadedPacket.java:16
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleAcceptPlayerLoad().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundPlayerLoadedPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundPlayerLoadedPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundPlayerLoadedPacket.java:11
  • Modifiers: public
  • Return: PacketType<ServerboundPlayerLoadedPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundPlayerLoadedPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_PLAYER_LOADED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundPlayerLoadedPacket instance = ...;
PacketType<ServerboundPlayerLoadedPacket> result = instance.type();

ServerboundRecipeBookChangeSettingsPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#getBookType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:44
  • Modifiers: public
  • Return: RecipeBookType

คืออะไร

อ่านค่า Book Type

ทำงานยังไง

คืนค่า: this.bookType.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRecipeBookChangeSettingsPacket instance = ...;
RecipeBookType result = instance.getBookType();

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:40
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleRecipeBookChangeSettingsPacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundRecipeBookChangeSettingsPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#isFiltering()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:52
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Filtering

ทำงานยังไง

คืนค่า: this.isFiltering.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRecipeBookChangeSettingsPacket instance = ...;
boolean result = instance.isFiltering();

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#isOpen()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:48
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Open

ทำงานยังไง

คืนค่า: this.isOpen.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRecipeBookChangeSettingsPacket instance = ...;
boolean result = instance.isOpen();

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#ServerboundRecipeBookChangeSettingsPacket(RecipeBookType,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundRecipeBookChangeSettingsPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: bookType, isOpen, isFiltering.

Parameters

  • RecipeBookType recipeBookType
  • boolean bl
  • boolean bl2

ตัวอย่างใช้งาน

RecipeBookType recipeBookType = ...;
ServerboundRecipeBookChangeSettingsPacket instance = new ServerboundRecipeBookChangeSettingsPacket(recipeBookType, true, true);

net.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookChangeSettingsPacket.java:35
  • Modifiers: public
  • Return: PacketType<ServerboundRecipeBookChangeSettingsPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundRecipeBookChangeSettingsPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_RECIPE_BOOK_CHANGE_SETTINGS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRecipeBookChangeSettingsPacket instance = ...;
PacketType<ServerboundRecipeBookChangeSettingsPacket> result = instance.type();

ServerboundRecipeBookSeenRecipePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundRecipeBookSeenRecipePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundRecipeBookSeenRecipePacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundRecipeBookSeenRecipePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookSeenRecipePacket.java:19
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleRecipeBookSeenRecipePacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundRecipeBookSeenRecipePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundRecipeBookSeenRecipePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRecipeBookSeenRecipePacket.java:14
  • Modifiers: public
  • Return: PacketType<ServerboundRecipeBookSeenRecipePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundRecipeBookSeenRecipePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_RECIPE_BOOK_SEEN_RECIPE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRecipeBookSeenRecipePacket instance = ...;
PacketType<ServerboundRecipeBookSeenRecipePacket> result = instance.type();

ServerboundRenameItemPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundRenameItemPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundRenameItemPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundRenameItemPacket#getName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRenameItemPacket.java:35
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRenameItemPacket instance = ...;
String result = instance.getName();

net.minecraft.network.protocol.game.ServerboundRenameItemPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRenameItemPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleRenameItem().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundRenameItemPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundRenameItemPacket#ServerboundRenameItemPacket(String)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRenameItemPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundRenameItemPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: name.

Parameters

  • String string

ตัวอย่างใช้งาน

ServerboundRenameItemPacket instance = new ServerboundRenameItemPacket("value");

net.minecraft.network.protocol.game.ServerboundRenameItemPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundRenameItemPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundRenameItemPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundRenameItemPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_RENAME_ITEM.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundRenameItemPacket instance = ...;
PacketType<ServerboundRenameItemPacket> result = instance.type();

ServerboundSeenAdvancementsPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#closedScreen()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:28
  • Modifiers: public static
  • Return: ServerboundSeenAdvancementsPacket

คืออะไร

ดำเนินการ closedScreen ตาม implementation ของ ServerboundSeenAdvancementsPacket

ทำงานยังไง

สร้างออบเจ็กต์: ServerboundSeenAdvancementsPacket. คืนค่า: new ServerboundSeenAdvancementsPacket(ServerboundSeenAdvancementsPacket.Action.CLOSED_SCREEN, null).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket result = ServerboundSeenAdvancementsPacket.closedScreen();

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#getAction()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:57
  • Modifiers: public
  • Return: ServerboundSeenAdvancementsPacket.Action

คืออะไร

อ่านค่า Action

ทำงานยังไง

คืนค่า: this.action.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket instance = ...;
ServerboundSeenAdvancementsPacket.Action result = instance.getAction();

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#getTab()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:61
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Tab

ทำงานยังไง

คืนค่า: this.tab.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket instance = ...;
ResourceLocation result = instance.getTab();

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:53
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSeenAdvancements().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#openedTab(AdvancementHolder)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:24
  • Modifiers: public static
  • Return: ServerboundSeenAdvancementsPacket

คืออะไร

ดำเนินการ openedTab ตาม implementation ของ ServerboundSeenAdvancementsPacket

ทำงานยังไง

เรียกต่อ: id(). สร้างออบเจ็กต์: ServerboundSeenAdvancementsPacket. คืนค่า: new ServerboundSeenAdvancementsPacket(ServerboundSeenAdvancementsPacket.Action.OPENED_TAB, advancementHolder.id()).

Parameters

  • AdvancementHolder advancementHolder

ตัวอย่างใช้งาน

AdvancementHolder advancementHolder = ...;
ServerboundSeenAdvancementsPacket result = ServerboundSeenAdvancementsPacket.openedTab(advancementHolder);

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#ServerboundSeenAdvancementsPacket(ServerboundSeenAdvancementsPacket.Action,ResourceLocation)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSeenAdvancementsPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: action, tab.

Parameters

  • ServerboundSeenAdvancementsPacket.Action action
  • ResourceLocation resourceLocation

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket.Action action = ...;
ResourceLocation resourceLocation = ...;
ServerboundSeenAdvancementsPacket instance = new ServerboundSeenAdvancementsPacket(action, resourceLocation);

net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket.java:48
  • Modifiers: public
  • Return: PacketType<ServerboundSeenAdvancementsPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSeenAdvancementsPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SEEN_ADVANCEMENTS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSeenAdvancementsPacket instance = ...;
PacketType<ServerboundSeenAdvancementsPacket> result = instance.type();

ServerboundSelectBundleItemPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSelectBundleItemPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSelectBundleItemPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSelectBundleItemPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectBundleItemPacket.java:27
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleBundleItemSelectedPacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSelectBundleItemPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSelectBundleItemPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectBundleItemPacket.java:22
  • Modifiers: public
  • Return: PacketType<ServerboundSelectBundleItemPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSelectBundleItemPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_BUNDLE_ITEM_SELECTED.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSelectBundleItemPacket instance = ...;
PacketType<ServerboundSelectBundleItemPacket> result = instance.type();

ServerboundSelectTradePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSelectTradePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSelectTradePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSelectTradePacket#getItem()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectTradePacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Item

ทำงานยังไง

คืนค่า: this.item.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSelectTradePacket instance = ...;
int result = instance.getItem();

net.minecraft.network.protocol.game.ServerboundSelectTradePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectTradePacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSelectTrade().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSelectTradePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSelectTradePacket#ServerboundSelectTradePacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectTradePacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSelectTradePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: item.

Parameters

  • int i

ตัวอย่างใช้งาน

ServerboundSelectTradePacket instance = new ServerboundSelectTradePacket(0);

net.minecraft.network.protocol.game.ServerboundSelectTradePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSelectTradePacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundSelectTradePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSelectTradePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SELECT_TRADE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSelectTradePacket instance = ...;
PacketType<ServerboundSelectTradePacket> result = instance.type();

ServerboundSetBeaconPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetBeaconPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetBeaconPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetBeaconPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetBeaconPacket.java:26
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetBeaconPacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetBeaconPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetBeaconPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetBeaconPacket.java:21
  • Modifiers: public
  • Return: PacketType<ServerboundSetBeaconPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetBeaconPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_BEACON.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetBeaconPacket instance = ...;
PacketType<ServerboundSetBeaconPacket> result = instance.type();

ServerboundSetCarriedItemPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetCarriedItemPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket#getSlot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCarriedItemPacket.java:35
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Slot

ทำงานยังไง

คืนค่า: this.slot.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCarriedItemPacket instance = ...;
int result = instance.getSlot();

net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCarriedItemPacket.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetCarriedItem().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetCarriedItemPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket#ServerboundSetCarriedItemPacket(int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCarriedItemPacket.java:14
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetCarriedItemPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: slot.

Parameters

  • int i

ตัวอย่างใช้งาน

ServerboundSetCarriedItemPacket instance = new ServerboundSetCarriedItemPacket(0);

net.minecraft.network.protocol.game.ServerboundSetCarriedItemPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCarriedItemPacket.java:26
  • Modifiers: public
  • Return: PacketType<ServerboundSetCarriedItemPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetCarriedItemPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_CARRIED_ITEM.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCarriedItemPacket instance = ...;
PacketType<ServerboundSetCarriedItemPacket> result = instance.type();

ServerboundSetCommandBlockPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#getCommand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:76
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Command

ทำงานยังไง

คืนค่า: this.command.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
String result = instance.getCommand();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#getMode()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:92
  • Modifiers: public
  • Return: CommandBlockEntity.Mode

คืออะไร

อ่านค่า Mode

ทำงานยังไง

คืนค่า: this.mode.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
CommandBlockEntity.Mode result = instance.getMode();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:72
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:68
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetCommandBlock().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#isAutomatic()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:88
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Automatic

ทำงานยังไง

คืนค่า: this.automatic.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
boolean result = instance.isAutomatic();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#isConditional()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:84
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Conditional

ทำงานยังไง

คืนค่า: this.conditional.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
boolean result = instance.isConditional();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#isTrackOutput()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:80
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Track Output

ทำงานยังไง

คืนค่า: this.trackOutput.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
boolean result = instance.isTrackOutput();

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#ServerboundSetCommandBlockPacket(BlockPos,String,CommandBlockEntity.Mode,boolean,boolean,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetCommandBlockPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, command, trackOutput, conditional, automatic, mode.

Parameters

  • BlockPos blockPos
  • String string
  • CommandBlockEntity.Mode mode
  • boolean bl
  • boolean bl2
  • boolean bl3

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
CommandBlockEntity.Mode mode = ...;
ServerboundSetCommandBlockPacket instance = new ServerboundSetCommandBlockPacket(blockPos, "value", mode, true, true, true);

net.minecraft.network.protocol.game.ServerboundSetCommandBlockPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandBlockPacket.java:63
  • Modifiers: public
  • Return: PacketType<ServerboundSetCommandBlockPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetCommandBlockPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_COMMAND_BLOCK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandBlockPacket instance = ...;
PacketType<ServerboundSetCommandBlockPacket> result = instance.type();

ServerboundSetCommandMinecartPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#getCommand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:54
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Command

ทำงานยังไง

คืนค่า: this.command.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = ...;
String result = instance.getCommand();

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#getCommandBlock(Level)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:48
  • Modifiers: public
  • Return: BaseCommandBlock

คืออะไร

อ่านค่า Command Block

ทำงานยังไง

เรียกต่อ: getEntity(). คืนค่า: entity instanceof MinecartCommandBlock ? ((MinecartCommandBlock)entity).getCommandBlock() : null.

Parameters

  • Level level

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = ...;
Level level = ...;
BaseCommandBlock result = instance.getCommandBlock(level);

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetCommandMinecart().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#isTrackOutput()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:58
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Track Output

ทำงานยังไง

คืนค่า: this.trackOutput.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = ...;
boolean result = instance.isTrackOutput();

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#ServerboundSetCommandMinecartPacket(int,String,boolean)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:21
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetCommandMinecartPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: entity, command, trackOutput.

Parameters

  • int i
  • String string
  • boolean bl

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = new ServerboundSetCommandMinecartPacket(0, "value", true);

net.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCommandMinecartPacket.java:39
  • Modifiers: public
  • Return: PacketType<ServerboundSetCommandMinecartPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetCommandMinecartPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_COMMAND_MINECART.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCommandMinecartPacket instance = ...;
PacketType<ServerboundSetCommandMinecartPacket> result = instance.type();

ServerboundSetCreativeModeSlotPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetCreativeModeSlotPacket.java
  • Type: record
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCreativeModeSlotPacket.java:28
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetCreativeModeSlot().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetCreativeModeSlotPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket#ServerboundSetCreativeModeSlotPacket(int,ItemStack)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCreativeModeSlotPacket.java:19
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetCreativeModeSlotPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i
  • ItemStack itemStack

ตัวอย่างใช้งาน

ItemStack itemStack = ...;
ServerboundSetCreativeModeSlotPacket instance = new ServerboundSetCreativeModeSlotPacket(0, itemStack);

net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetCreativeModeSlotPacket.java:23
  • Modifiers: public
  • Return: PacketType<ServerboundSetCreativeModeSlotPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetCreativeModeSlotPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_CREATIVE_MODE_SLOT.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetCreativeModeSlotPacket instance = ...;
PacketType<ServerboundSetCreativeModeSlotPacket> result = instance.type();

ServerboundSetJigsawBlockPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getFinalState()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:91
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Final State

ทำงานยังไง

คืนค่า: this.finalState.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
String result = instance.getFinalState();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getJoint()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:95
  • Modifiers: public
  • Return: JigsawBlockEntity.JointType

คืออะไร

อ่านค่า Joint

ทำงานยังไง

คืนค่า: this.joint.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
JigsawBlockEntity.JointType result = instance.getJoint();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:79
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
ResourceLocation result = instance.getName();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getPlacementPriority()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:103
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Placement Priority

ทำงานยังไง

คืนค่า: this.placementPriority.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
int result = instance.getPlacementPriority();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getPool()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:87
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Pool

ทำงานยังไง

คืนค่า: this.pool.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
ResourceLocation result = instance.getPool();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:75
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getSelectionPriority()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:99
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Selection Priority

ทำงานยังไง

คืนค่า: this.selectionPriority.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
int result = instance.getSelectionPriority();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#getTarget()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:83
  • Modifiers: public
  • Return: ResourceLocation

คืออะไร

อ่านค่า Target

ทำงานยังไง

คืนค่า: this.target.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
ResourceLocation result = instance.getTarget();

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:71
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetJigsawBlock().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#ServerboundSetJigsawBlockPacket(BlockPos,ResourceLocation,ResourceLocation,ResourceLocation,String,JigsawBlockEntity.JointType,int,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetJigsawBlockPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, name, target, pool, finalState, joint.

Parameters

  • BlockPos blockPos
  • ResourceLocation resourceLocation
  • ResourceLocation resourceLocation2
  • ResourceLocation resourceLocation3
  • String string
  • JigsawBlockEntity.JointType jointType
  • int i
  • int j

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ResourceLocation resourceLocation = ...;
ResourceLocation resourceLocation2 = ...;
ResourceLocation resourceLocation3 = ...;
JigsawBlockEntity.JointType jointType = ...;
ServerboundSetJigsawBlockPacket instance = new ServerboundSetJigsawBlockPacket(blockPos, resourceLocation, resourceLocation2, resourceLocation3, "value", jointType, 0, 0);

net.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetJigsawBlockPacket.java:66
  • Modifiers: public
  • Return: PacketType<ServerboundSetJigsawBlockPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetJigsawBlockPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_JIGSAW_BLOCK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetJigsawBlockPacket instance = ...;
PacketType<ServerboundSetJigsawBlockPacket> result = instance.type();

ServerboundSetStructureBlockPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getData()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:166
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Data

ทำงานยังไง

คืนค่า: this.data.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
String result = instance.getData();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getIntegrity()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:182
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า Integrity

ทำงานยังไง

คืนค่า: this.integrity.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
float result = instance.getIntegrity();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getMirror()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:158
  • Modifiers: public
  • Return: Mirror

คืออะไร

อ่านค่า Mirror

ทำงานยังไง

คืนค่า: this.mirror.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
Mirror result = instance.getMirror();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getMode()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:142
  • Modifiers: public
  • Return: StructureMode

คืออะไร

อ่านค่า Mode

ทำงานยังไง

คืนค่า: this.mode.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
StructureMode result = instance.getMode();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getName()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:146
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Name

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
String result = instance.getName();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getOffset()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:150
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Offset

ทำงานยังไง

คืนค่า: this.offset.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
BlockPos result = instance.getOffset();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:134
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getRotation()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:162
  • Modifiers: public
  • Return: Rotation

คืออะไร

อ่านค่า Rotation

ทำงานยังไง

คืนค่า: this.rotation.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
Rotation result = instance.getRotation();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getSeed()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:186
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Seed

ทำงานยังไง

คืนค่า: this.seed.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
long result = instance.getSeed();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getSize()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:154
  • Modifiers: public
  • Return: Vec3i

คืออะไร

อ่านค่า Size

ทำงานยังไง

คืนค่า: this.size.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
Vec3i result = instance.getSize();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#getUpdateType()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:138
  • Modifiers: public
  • Return: StructureBlockEntity.UpdateType

คืออะไร

อ่านค่า Update Type

ทำงานยังไง

คืนค่า: this.updateType.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
StructureBlockEntity.UpdateType result = instance.getUpdateType();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:130
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSetStructureBlock().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#isIgnoreEntities()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:170
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Ignore Entities

ทำงานยังไง

คืนค่า: this.ignoreEntities.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
boolean result = instance.isIgnoreEntities();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#isShowAir()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:174
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Show Air

ทำงานยังไง

คืนค่า: this.showAir.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
boolean result = instance.isShowAir();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#isShowBoundingBox()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:178
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Show Bounding Box

ทำงานยังไง

คืนค่า: this.showBoundingBox.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
boolean result = instance.isShowBoundingBox();

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#ServerboundSetStructureBlockPacket(BlockPos,StructureBlockEntity.UpdateType,StructureMode,String,BlockPos,Vec3i,Mirror,Rotation,String,boolean,boolean,boolean,float,long)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:37
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSetStructureBlockPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, updateType, mode, name, offset, size.

Parameters

  • BlockPos blockPos
  • StructureBlockEntity.UpdateType updateType
  • StructureMode structureMode
  • String string
  • BlockPos blockPos2
  • Vec3i vec3i
  • Mirror mirror
  • Rotation rotation
  • String string2
  • boolean bl
  • boolean bl2
  • boolean bl3
  • float f
  • long l

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
StructureBlockEntity.UpdateType updateType = ...;
StructureMode structureMode = ...;
BlockPos blockPos2 = ...;
Vec3i vec3i = ...;
Mirror mirror = ...;
Rotation rotation = ...;
ServerboundSetStructureBlockPacket instance = new ServerboundSetStructureBlockPacket(blockPos, updateType, structureMode, "value", blockPos2, vec3i, mirror, rotation, "value", true, true, true, 0.0F, 0L);

net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSetStructureBlockPacket.java:125
  • Modifiers: public
  • Return: PacketType<ServerboundSetStructureBlockPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSetStructureBlockPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SET_STRUCTURE_BLOCK.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSetStructureBlockPacket instance = ...;
PacketType<ServerboundSetStructureBlockPacket> result = instance.type();

ServerboundSignUpdatePacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSignUpdatePacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#getLines()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:60
  • Modifiers: public
  • Return: String[]

คืออะไร

อ่านค่า Lines

ทำงานยังไง

คืนค่า: this.lines.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSignUpdatePacket instance = ...;
String[] result = instance.getLines();

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#getPos()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:52
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Pos

ทำงานยังไง

คืนค่า: this.pos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSignUpdatePacket instance = ...;
BlockPos result = instance.getPos();

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:48
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleSignUpdate().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSignUpdatePacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#isFrontText()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:56
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Front Text

ทำงานยังไง

คืนค่า: this.isFrontText.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSignUpdatePacket instance = ...;
boolean result = instance.isFrontText();

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#ServerboundSignUpdatePacket(BlockPos,boolean,String,String,String,String)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSignUpdatePacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: pos, isFrontText, lines.

Parameters

  • BlockPos blockPos
  • boolean bl
  • String string
  • String string2
  • String string3
  • String string4

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerboundSignUpdatePacket instance = new ServerboundSignUpdatePacket(blockPos, true, "value", "value", "value", "value");

net.minecraft.network.protocol.game.ServerboundSignUpdatePacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSignUpdatePacket.java:43
  • Modifiers: public
  • Return: PacketType<ServerboundSignUpdatePacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSignUpdatePacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SIGN_UPDATE.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSignUpdatePacket instance = ...;
PacketType<ServerboundSignUpdatePacket> result = instance.type();

ServerboundSwingPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundSwingPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundSwingPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundSwingPacket#getHand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSwingPacket.java:36
  • Modifiers: public
  • Return: InteractionHand

คืออะไร

อ่านค่า Hand

ทำงานยังไง

คืนค่า: this.hand.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSwingPacket instance = ...;
InteractionHand result = instance.getHand();

net.minecraft.network.protocol.game.ServerboundSwingPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSwingPacket.java:32
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleAnimate().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundSwingPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundSwingPacket#ServerboundSwingPacket(InteractionHand)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSwingPacket.java:15
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundSwingPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hand.

Parameters

  • InteractionHand interactionHand

ตัวอย่างใช้งาน

InteractionHand interactionHand = ...;
ServerboundSwingPacket instance = new ServerboundSwingPacket(interactionHand);

net.minecraft.network.protocol.game.ServerboundSwingPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundSwingPacket.java:27
  • Modifiers: public
  • Return: PacketType<ServerboundSwingPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundSwingPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_SWING.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundSwingPacket instance = ...;
PacketType<ServerboundSwingPacket> result = instance.type();

ServerboundTeleportToEntityPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundTeleportToEntityPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundTeleportToEntityPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundTeleportToEntityPacket#getEntity(ServerLevel)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundTeleportToEntityPacket.java:39
  • Modifiers: public
  • Return: Entity

คืออะไร

อ่านค่า Entity

ทำงานยังไง

คืนค่า: serverLevel.getEntity(this.uuid).

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

ServerboundTeleportToEntityPacket instance = ...;
ServerLevel serverLevel = ...;
Entity result = instance.getEntity(serverLevel);

net.minecraft.network.protocol.game.ServerboundTeleportToEntityPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundTeleportToEntityPacket.java:35
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleTeleportToEntityPacket().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundTeleportToEntityPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundTeleportToEntityPacket#ServerboundTeleportToEntityPacket(UUID)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundTeleportToEntityPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundTeleportToEntityPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: uuid.

Parameters

  • UUID uUID

ตัวอย่างใช้งาน

UUID uUID = ...;
ServerboundTeleportToEntityPacket instance = new ServerboundTeleportToEntityPacket(uUID);

net.minecraft.network.protocol.game.ServerboundTeleportToEntityPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundTeleportToEntityPacket.java:30
  • Modifiers: public
  • Return: PacketType<ServerboundTeleportToEntityPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundTeleportToEntityPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_TELEPORT_TO_ENTITY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundTeleportToEntityPacket instance = ...;
PacketType<ServerboundTeleportToEntityPacket> result = instance.type();

ServerboundUseItemOnPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundUseItemOnPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#getHand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:45
  • Modifiers: public
  • Return: InteractionHand

คืออะไร

อ่านค่า Hand

ทำงานยังไง

คืนค่า: this.hand.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemOnPacket instance = ...;
InteractionHand result = instance.getHand();

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#getHitResult()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:49
  • Modifiers: public
  • Return: BlockHitResult

คืออะไร

อ่านค่า Hit Result

ทำงานยังไง

คืนค่า: this.blockHit.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemOnPacket instance = ...;
BlockHitResult result = instance.getHitResult();

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#getSequence()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:53
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Sequence

ทำงานยังไง

คืนค่า: this.sequence.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemOnPacket instance = ...;
int result = instance.getSequence();

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:41
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUseItemOn().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundUseItemOnPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#ServerboundUseItemOnPacket(InteractionHand,BlockHitResult,int)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundUseItemOnPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hand, blockHit, sequence.

Parameters

  • InteractionHand interactionHand
  • BlockHitResult blockHitResult
  • int i

ตัวอย่างใช้งาน

InteractionHand interactionHand = ...;
BlockHitResult blockHitResult = ...;
ServerboundUseItemOnPacket instance = new ServerboundUseItemOnPacket(interactionHand, blockHitResult, 0);

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemOnPacket.java:36
  • Modifiers: public
  • Return: PacketType<ServerboundUseItemOnPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundUseItemOnPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_USE_ITEM_ON.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemOnPacket instance = ...;
PacketType<ServerboundUseItemOnPacket> result = instance.type();

ServerboundUseItemPacket

  • Full name: net.minecraft.network.protocol.game.ServerboundUseItemPacket
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerboundUseItemPacket.java
  • Type: class
  • Modifiers: public
  • Implements: Packet<ServerGamePacketListener>

net.minecraft.network.protocol.game.ServerboundUseItemPacket#getHand()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:48
  • Modifiers: public
  • Return: InteractionHand

คืออะไร

อ่านค่า Hand

ทำงานยังไง

คืนค่า: this.hand.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
InteractionHand result = instance.getHand();

net.minecraft.network.protocol.game.ServerboundUseItemPacket#getSequence()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:52
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Sequence

ทำงานยังไง

คืนค่า: this.sequence.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
int result = instance.getSequence();

net.minecraft.network.protocol.game.ServerboundUseItemPacket#getXRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:60
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า XRot

ทำงานยังไง

คืนค่า: this.xRot.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
float result = instance.getXRot();

net.minecraft.network.protocol.game.ServerboundUseItemPacket#getYRot()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:56
  • Modifiers: public
  • Return: float

คืออะไร

อ่านค่า YRot

ทำงานยังไง

คืนค่า: this.yRot.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
float result = instance.getYRot();

net.minecraft.network.protocol.game.ServerboundUseItemPacket#handle(ServerGamePacketListener)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการ handle

ทำงานยังไง

เรียกต่อ: handleUseItem().

Parameters

  • ServerGamePacketListener serverGamePacketListener

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
ServerGamePacketListener serverGamePacketListener = ...;
instance.handle(serverGamePacketListener);

net.minecraft.network.protocol.game.ServerboundUseItemPacket#ServerboundUseItemPacket(InteractionHand,int,float,float)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ServerboundUseItemPacket ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: hand, sequence, yRot, xRot.

Parameters

  • InteractionHand interactionHand
  • int i
  • float f
  • float g

ตัวอย่างใช้งาน

InteractionHand interactionHand = ...;
ServerboundUseItemPacket instance = new ServerboundUseItemPacket(interactionHand, 0, 0.0F, 0.0F);

net.minecraft.network.protocol.game.ServerboundUseItemPacket#type()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerboundUseItemPacket.java:39
  • Modifiers: public
  • Return: PacketType<ServerboundUseItemPacket>

คืออะไร

ดำเนินการ type ตาม implementation ของ ServerboundUseItemPacket

ทำงานยังไง

คืนค่า: GamePacketTypes.SERVERBOUND_USE_ITEM.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerboundUseItemPacket instance = ...;
PacketType<ServerboundUseItemPacket> result = instance.type();

ServerGamePacketListener

  • Full name: net.minecraft.network.protocol.game.ServerGamePacketListener
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerGamePacketListener.java
  • Type: interface
  • Modifiers: public
  • Implements: ServerPingPacketListener,ServerCommonPacketListener

net.minecraft.network.protocol.game.ServerGamePacketListener#handleAcceptPlayerLoad(ServerboundPlayerLoadedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:63
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Accept Player Load

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlayerLoadedPacket serverboundPlayerLoadedPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlayerLoadedPacket serverboundPlayerLoadedPacket = ...;
instance.handleAcceptPlayerLoad(serverboundPlayerLoadedPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleAcceptTeleportPacket(ServerboundAcceptTeleportationPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:61
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Accept Teleport Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundAcceptTeleportationPacket serverboundAcceptTeleportationPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundAcceptTeleportationPacket serverboundAcceptTeleportationPacket = ...;
instance.handleAcceptTeleportPacket(serverboundAcceptTeleportationPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleAnimate(ServerboundSwingPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:13
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Animate

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSwingPacket serverboundSwingPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSwingPacket serverboundSwingPacket = ...;
instance.handleAnimate(serverboundSwingPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleBlockEntityTagQuery(ServerboundBlockEntityTagQueryPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:97
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Block Entity Tag Query

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundBlockEntityTagQueryPacket serverboundBlockEntityTagQueryPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundBlockEntityTagQueryPacket serverboundBlockEntityTagQueryPacket = ...;
instance.handleBlockEntityTagQuery(serverboundBlockEntityTagQueryPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleBundleItemSelectedPacket(ServerboundSelectBundleItemPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:67
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Bundle Item Selected Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSelectBundleItemPacket serverboundSelectBundleItemPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSelectBundleItemPacket serverboundSelectBundleItemPacket = ...;
instance.handleBundleItemSelectedPacket(serverboundSelectBundleItemPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChangeDifficulty(ServerboundChangeDifficultyPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:103
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Change Difficulty

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChangeDifficultyPacket serverboundChangeDifficultyPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChangeDifficultyPacket serverboundChangeDifficultyPacket = ...;
instance.handleChangeDifficulty(serverboundChangeDifficultyPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChat(ServerboundChatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:15
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChatPacket serverboundChatPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChatPacket serverboundChatPacket = ...;
instance.handleChat(serverboundChatPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChatAck(ServerboundChatAckPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:21
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chat Ack

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChatAckPacket serverboundChatAckPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChatAckPacket serverboundChatAckPacket = ...;
instance.handleChatAck(serverboundChatAckPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChatCommand(ServerboundChatCommandPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:17
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chat Command

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChatCommandPacket serverboundChatCommandPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChatCommandPacket serverboundChatCommandPacket = ...;
instance.handleChatCommand(serverboundChatCommandPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChatSessionUpdate(ServerboundChatSessionUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:107
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chat Session Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChatSessionUpdatePacket serverboundChatSessionUpdatePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChatSessionUpdatePacket serverboundChatSessionUpdatePacket = ...;
instance.handleChatSessionUpdate(serverboundChatSessionUpdatePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleChunkBatchReceived(ServerboundChunkBatchReceivedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:111
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Chunk Batch Received

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChunkBatchReceivedPacket serverboundChunkBatchReceivedPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChunkBatchReceivedPacket serverboundChunkBatchReceivedPacket = ...;
instance.handleChunkBatchReceived(serverboundChunkBatchReceivedPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleClientCommand(ServerboundClientCommandPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:23
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Client Command

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundClientCommandPacket serverboundClientCommandPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundClientCommandPacket serverboundClientCommandPacket = ...;
instance.handleClientCommand(serverboundClientCommandPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleClientTickEnd(ServerboundClientTickEndPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:115
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Client Tick End

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundClientTickEndPacket serverboundClientTickEndPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundClientTickEndPacket serverboundClientTickEndPacket = ...;
instance.handleClientTickEnd(serverboundClientTickEndPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleConfigurationAcknowledged(ServerboundConfigurationAcknowledgedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:109
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Configuration Acknowledged

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundConfigurationAcknowledgedPacket serverboundConfigurationAcknowledgedPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundConfigurationAcknowledgedPacket serverboundConfigurationAcknowledgedPacket = ...;
instance.handleConfigurationAcknowledged(serverboundConfigurationAcknowledgedPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleContainerButtonClick(ServerboundContainerButtonClickPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:25
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Button Click

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundContainerButtonClickPacket serverboundContainerButtonClickPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundContainerButtonClickPacket serverboundContainerButtonClickPacket = ...;
instance.handleContainerButtonClick(serverboundContainerButtonClickPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleContainerClick(ServerboundContainerClickPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:27
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Click

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundContainerClickPacket serverboundContainerClickPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundContainerClickPacket serverboundContainerClickPacket = ...;
instance.handleContainerClick(serverboundContainerClickPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleContainerClose(ServerboundContainerClosePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:31
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Close

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundContainerClosePacket serverboundContainerClosePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundContainerClosePacket serverboundContainerClosePacket = ...;
instance.handleContainerClose(serverboundContainerClosePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleContainerSlotStateChanged(ServerboundContainerSlotStateChangedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:95
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Container Slot State Changed

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundContainerSlotStateChangedPacket serverboundContainerSlotStateChangedPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundContainerSlotStateChangedPacket serverboundContainerSlotStateChangedPacket = ...;
instance.handleContainerSlotStateChanged(serverboundContainerSlotStateChangedPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleCustomCommandSuggestions(ServerboundCommandSuggestionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:73
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Custom Command Suggestions

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundCommandSuggestionPacket serverboundCommandSuggestionPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundCommandSuggestionPacket serverboundCommandSuggestionPacket = ...;
instance.handleCustomCommandSuggestions(serverboundCommandSuggestionPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleDebugSampleSubscription(ServerboundDebugSampleSubscriptionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:113
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Debug Sample Subscription

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundDebugSampleSubscriptionPacket serverboundDebugSampleSubscriptionPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundDebugSampleSubscriptionPacket serverboundDebugSampleSubscriptionPacket = ...;
instance.handleDebugSampleSubscription(serverboundDebugSampleSubscriptionPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleEditBook(ServerboundEditBookPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:91
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Edit Book

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundEditBookPacket serverboundEditBookPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundEditBookPacket serverboundEditBookPacket = ...;
instance.handleEditBook(serverboundEditBookPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleEntityTagQuery(ServerboundEntityTagQueryPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:93
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Entity Tag Query

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundEntityTagQueryPacket serverboundEntityTagQueryPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundEntityTagQueryPacket serverboundEntityTagQueryPacket = ...;
instance.handleEntityTagQuery(serverboundEntityTagQueryPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleInteract(ServerboundInteractPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:33
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Interact

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundInteractPacket serverboundInteractPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundInteractPacket serverboundInteractPacket = ...;
instance.handleInteract(serverboundInteractPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleJigsawGenerate(ServerboundJigsawGeneratePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:101
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Jigsaw Generate

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundJigsawGeneratePacket serverboundJigsawGeneratePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundJigsawGeneratePacket serverboundJigsawGeneratePacket = ...;
instance.handleJigsawGenerate(serverboundJigsawGeneratePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleLockDifficulty(ServerboundLockDifficultyPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:105
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Lock Difficulty

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundLockDifficultyPacket serverboundLockDifficultyPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundLockDifficultyPacket serverboundLockDifficultyPacket = ...;
instance.handleLockDifficulty(serverboundLockDifficultyPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleMovePlayer(ServerboundMovePlayerPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:35
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Move Player

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundMovePlayerPacket serverboundMovePlayerPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundMovePlayerPacket serverboundMovePlayerPacket = ...;
instance.handleMovePlayer(serverboundMovePlayerPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleMoveVehicle(ServerboundMoveVehiclePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:59
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Move Vehicle

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundMoveVehiclePacket serverboundMoveVehiclePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundMoveVehiclePacket serverboundMoveVehiclePacket = ...;
instance.handleMoveVehicle(serverboundMoveVehiclePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePaddleBoat(ServerboundPaddleBoatPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:57
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Paddle Boat

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPaddleBoatPacket serverboundPaddleBoatPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPaddleBoatPacket serverboundPaddleBoatPacket = ...;
instance.handlePaddleBoat(serverboundPaddleBoatPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePickItemFromBlock(ServerboundPickItemFromBlockPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:79
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Pick Item From Block

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPickItemFromBlockPacket serverboundPickItemFromBlockPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPickItemFromBlockPacket serverboundPickItemFromBlockPacket = ...;
instance.handlePickItemFromBlock(serverboundPickItemFromBlockPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePickItemFromEntity(ServerboundPickItemFromEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:81
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Pick Item From Entity

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPickItemFromEntityPacket serverboundPickItemFromEntityPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPickItemFromEntityPacket serverboundPickItemFromEntityPacket = ...;
instance.handlePickItemFromEntity(serverboundPickItemFromEntityPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePlaceRecipe(ServerboundPlaceRecipePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:29
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Place Recipe

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlaceRecipePacket serverboundPlaceRecipePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlaceRecipePacket serverboundPlaceRecipePacket = ...;
instance.handlePlaceRecipe(serverboundPlaceRecipePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePlayerAbilities(ServerboundPlayerAbilitiesPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:37
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Abilities

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlayerAbilitiesPacket serverboundPlayerAbilitiesPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlayerAbilitiesPacket serverboundPlayerAbilitiesPacket = ...;
instance.handlePlayerAbilities(serverboundPlayerAbilitiesPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePlayerAction(ServerboundPlayerActionPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:39
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Action

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlayerActionPacket serverboundPlayerActionPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlayerActionPacket serverboundPlayerActionPacket = ...;
instance.handlePlayerAction(serverboundPlayerActionPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePlayerCommand(ServerboundPlayerCommandPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:41
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Command

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlayerCommandPacket serverboundPlayerCommandPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlayerCommandPacket serverboundPlayerCommandPacket = ...;
instance.handlePlayerCommand(serverboundPlayerCommandPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handlePlayerInput(ServerboundPlayerInputPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:43
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Player Input

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundPlayerInputPacket serverboundPlayerInputPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundPlayerInputPacket serverboundPlayerInputPacket = ...;
instance.handlePlayerInput(serverboundPlayerInputPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleRecipeBookChangeSettingsPacket(ServerboundRecipeBookChangeSettingsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:69
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Recipe Book Change Settings Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundRecipeBookChangeSettingsPacket serverboundRecipeBookChangeSettingsPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundRecipeBookChangeSettingsPacket serverboundRecipeBookChangeSettingsPacket = ...;
instance.handleRecipeBookChangeSettingsPacket(serverboundRecipeBookChangeSettingsPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleRecipeBookSeenRecipePacket(ServerboundRecipeBookSeenRecipePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:65
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Recipe Book Seen Recipe Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundRecipeBookSeenRecipePacket serverboundRecipeBookSeenRecipePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundRecipeBookSeenRecipePacket serverboundRecipeBookSeenRecipePacket = ...;
instance.handleRecipeBookSeenRecipePacket(serverboundRecipeBookSeenRecipePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleRenameItem(ServerboundRenameItemPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:83
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Rename Item

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundRenameItemPacket serverboundRenameItemPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundRenameItemPacket serverboundRenameItemPacket = ...;
instance.handleRenameItem(serverboundRenameItemPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSeenAdvancements(ServerboundSeenAdvancementsPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:71
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Seen Advancements

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSeenAdvancementsPacket serverboundSeenAdvancementsPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSeenAdvancementsPacket serverboundSeenAdvancementsPacket = ...;
instance.handleSeenAdvancements(serverboundSeenAdvancementsPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSelectTrade(ServerboundSelectTradePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:89
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Select Trade

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSelectTradePacket serverboundSelectTradePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSelectTradePacket serverboundSelectTradePacket = ...;
instance.handleSelectTrade(serverboundSelectTradePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetBeaconPacket(ServerboundSetBeaconPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:85
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Beacon Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetBeaconPacket serverboundSetBeaconPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetBeaconPacket serverboundSetBeaconPacket = ...;
instance.handleSetBeaconPacket(serverboundSetBeaconPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetCarriedItem(ServerboundSetCarriedItemPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:45
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Carried Item

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetCarriedItemPacket serverboundSetCarriedItemPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetCarriedItemPacket serverboundSetCarriedItemPacket = ...;
instance.handleSetCarriedItem(serverboundSetCarriedItemPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetCommandBlock(ServerboundSetCommandBlockPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:75
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Command Block

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetCommandBlockPacket serverboundSetCommandBlockPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetCommandBlockPacket serverboundSetCommandBlockPacket = ...;
instance.handleSetCommandBlock(serverboundSetCommandBlockPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetCommandMinecart(ServerboundSetCommandMinecartPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:77
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Command Minecart

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetCommandMinecartPacket serverboundSetCommandMinecartPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetCommandMinecartPacket serverboundSetCommandMinecartPacket = ...;
instance.handleSetCommandMinecart(serverboundSetCommandMinecartPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetCreativeModeSlot(ServerboundSetCreativeModeSlotPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:47
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Creative Mode Slot

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetCreativeModeSlotPacket serverboundSetCreativeModeSlotPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetCreativeModeSlotPacket serverboundSetCreativeModeSlotPacket = ...;
instance.handleSetCreativeModeSlot(serverboundSetCreativeModeSlotPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetJigsawBlock(ServerboundSetJigsawBlockPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:99
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Jigsaw Block

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetJigsawBlockPacket serverboundSetJigsawBlockPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetJigsawBlockPacket serverboundSetJigsawBlockPacket = ...;
instance.handleSetJigsawBlock(serverboundSetJigsawBlockPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSetStructureBlock(ServerboundSetStructureBlockPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:87
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Set Structure Block

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSetStructureBlockPacket serverboundSetStructureBlockPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSetStructureBlockPacket serverboundSetStructureBlockPacket = ...;
instance.handleSetStructureBlock(serverboundSetStructureBlockPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSignedChatCommand(ServerboundChatCommandSignedPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:19
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Signed Chat Command

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundChatCommandSignedPacket serverboundChatCommandSignedPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundChatCommandSignedPacket serverboundChatCommandSignedPacket = ...;
instance.handleSignedChatCommand(serverboundChatCommandSignedPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleSignUpdate(ServerboundSignUpdatePacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:49
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Sign Update

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundSignUpdatePacket serverboundSignUpdatePacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundSignUpdatePacket serverboundSignUpdatePacket = ...;
instance.handleSignUpdate(serverboundSignUpdatePacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleTeleportToEntityPacket(ServerboundTeleportToEntityPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:55
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Teleport To Entity Packet

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundTeleportToEntityPacket serverboundTeleportToEntityPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundTeleportToEntityPacket serverboundTeleportToEntityPacket = ...;
instance.handleTeleportToEntityPacket(serverboundTeleportToEntityPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleUseItem(ServerboundUseItemPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:53
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Use Item

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundUseItemPacket serverboundUseItemPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundUseItemPacket serverboundUseItemPacket = ...;
instance.handleUseItem(serverboundUseItemPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#handleUseItemOn(ServerboundUseItemOnPacket)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:51
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการ Use Item On

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ServerboundUseItemOnPacket serverboundUseItemOnPacket

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ServerboundUseItemOnPacket serverboundUseItemOnPacket = ...;
instance.handleUseItemOn(serverboundUseItemOnPacket);

net.minecraft.network.protocol.game.ServerGamePacketListener#protocol()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerGamePacketListener.java:8
  • Modifiers: default
  • Return: ConnectionProtocol

คืออะไร

ดำเนินการ protocol ตาม implementation ของ ServerGamePacketListener

ทำงานยังไง

คืนค่า: ConnectionProtocol.PLAY.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ServerGamePacketListener instance = ...;
ConnectionProtocol result = instance.protocol();

ServerPacketListener

  • Full name: net.minecraft.network.protocol.game.ServerPacketListener
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/ServerPacketListener.java
  • Type: interface
  • Modifiers: public
  • Implements: ServerboundPacketListener

net.minecraft.network.protocol.game.ServerPacketListener#onPacketError(Packet,Exception)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/ServerPacketListener.java:12
  • Modifiers: default
  • Return: void

คืออะไร

จัดการเหตุการณ์ Packet Error

ทำงานยังไง

เรียกต่อ: error().

Parameters

  • Packet packet
  • Exception exception

Throws

  • ReportedException

ตัวอย่างใช้งาน

ServerPacketListener instance = ...;
Packet packet = ...;
Exception exception = ...;
instance.onPacketError(packet, exception);

VecDeltaCodec

  • Full name: net.minecraft.network.protocol.game.VecDeltaCodec
  • Package: net.minecraft.network.protocol.game
  • Source: commonnet/minecraft/network/protocol/game/VecDeltaCodec.java
  • Type: class
  • Modifiers: public

net.minecraft.network.protocol.game.VecDeltaCodec#decode(long,long,long)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:20
  • Modifiers: public
  • Return: Vec3

คืออะไร

ถอดรหัสข้อมูล decode

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: encode(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • long l
  • long m
  • long n

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 result = instance.decode(0L, 0L, 0L);

net.minecraft.network.protocol.game.VecDeltaCodec#delta(Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:43
  • Modifiers: public
  • Return: Vec3

คืออะไร

ดำเนินการ delta ตาม implementation ของ VecDeltaCodec

ทำงานยังไง

เรียกต่อ: subtract(). คืนค่า: vec3.subtract(this.base).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 vec3 = ...;
Vec3 result = instance.delta(vec3);

net.minecraft.network.protocol.game.VecDeltaCodec#encodeX(Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:31
  • Modifiers: public
  • Return: long

คืออะไร

เข้ารหัสข้อมูล X

ทำงานยังไง

เรียกต่อ: encode(). คืนค่า: encode(vec3.x) - encode(this.base.x).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 vec3 = ...;
long result = instance.encodeX(vec3);

net.minecraft.network.protocol.game.VecDeltaCodec#encodeY(Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:35
  • Modifiers: public
  • Return: long

คืออะไร

เข้ารหัสข้อมูล Y

ทำงานยังไง

เรียกต่อ: encode(). คืนค่า: encode(vec3.y) - encode(this.base.y).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 vec3 = ...;
long result = instance.encodeY(vec3);

net.minecraft.network.protocol.game.VecDeltaCodec#encodeZ(Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:39
  • Modifiers: public
  • Return: long

คืออะไร

เข้ารหัสข้อมูล Z

ทำงานยังไง

เรียกต่อ: encode(). คืนค่า: encode(vec3.z) - encode(this.base.z).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 vec3 = ...;
long result = instance.encodeZ(vec3);

net.minecraft.network.protocol.game.VecDeltaCodec#getBase()

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:51
  • Modifiers: public
  • Return: Vec3

คืออะไร

อ่านค่า Base

ทำงานยังไง

คืนค่า: this.base.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 result = instance.getBase();

net.minecraft.network.protocol.game.VecDeltaCodec#setBase(Vec3)

  • Origin: common
  • Source: net/minecraft/network/protocol/game/VecDeltaCodec.java:47
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Base

ทำงานยังไง

แก้ state: base.

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

VecDeltaCodec instance = ...;
Vec3 vec3 = ...;
instance.setBase(vec3);