Package moe.caramel.daydream.packet
Interface PlayerInfoUpdatePacket
- All Superinterfaces:
Packet
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Player Info Update 패킷 액션static final record
플레이어 데이터 -
Field Summary
Fields inherited from interface moe.caramel.daydream.packet.Packet
API_VERSION
-
Method Summary
Modifier and TypeMethodDescriptionaddPlayer
(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable Component playerListName, @Nullable ChatSession chatSession) for Add Player Actionfor Add Player Actioncreate
(EnumSet<PlayerInfoUpdatePacket.Action> actions, Collection<PlayerInfoUpdatePacket.PlayerData> data) 패킷을 생성합니다.default PlayerInfoUpdatePacket
create
(EnumSet<PlayerInfoUpdatePacket.Action> actions, PlayerInfoUpdatePacket.PlayerData... data) 패킷을 생성합니다.create
(EnumSet<PlayerInfoUpdatePacket.Action> actions, Player... players) 패킷을 생성합니다.updateGameMode
(UUID uuid, GameMode gameMode) for Update GameMode ActionupdateLatency
(UUID uuid, int latency) for Update Latency ActionupdateListed
(UUID uuid, boolean listed) for Update Listed ActionupdatePlayerListName
(UUID uuid, @Nullable Component playerListName) for Update PlayerListName Action
-
Method Details
-
create
패킷을 생성합니다.- Parameters:
actions
- 패킷이 수행할 작업의 목록players
- 플레이어 목록- Returns:
- this
-
create
default PlayerInfoUpdatePacket create(EnumSet<PlayerInfoUpdatePacket.Action> actions, PlayerInfoUpdatePacket.PlayerData... data) 패킷을 생성합니다.- Parameters:
actions
- 패킷이 수행할 작업의 목록data
- 플레이어 데이터- Returns:
- this
-
create
PlayerInfoUpdatePacket create(EnumSet<PlayerInfoUpdatePacket.Action> actions, Collection<PlayerInfoUpdatePacket.PlayerData> data) 패킷을 생성합니다.- Parameters:
actions
- 패킷이 수행할 작업의 목록data
- 플레이어 데이터- Returns:
- this
-
addPlayer
static PlayerInfoUpdatePacket.PlayerData addPlayer(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameMode gameMode, @Nullable Component playerListName, @Nullable ChatSession chatSession) for Add Player Action- Parameters:
profileId
- 플레이어의 프로파일 UUIDprofile
- 플레이어의 게임 프로파일listed
- 탭 리스트 표시 여부latency
- 플레이어의 지연 시간gameMode
- 플레이어의 게임 모드playerListName
- 플레이어의 표시 이름 (nullable)chatSession
- 플레이어의 채팅 세션 (nullable)- Returns:
- 플레이어 데이터
-
addPlayer
for Add Player Action- Parameters:
player
- 대상 플레이어- Returns:
- 플레이어 데이터
-
updateGameMode
for Update GameMode Action- Parameters:
uuid
- 플레이어의 UUIDgameMode
- 플레이어의 게임 모드- Returns:
- 플레이어 데이터
-
updateListed
for Update Listed Action- Parameters:
uuid
- 플레이어의 UUIDlisted
- 플레이어가 탭 리스트에 표시될지의 여부- Returns:
- 플레이어 데이터
-
updateLatency
for Update Latency Action- Parameters:
uuid
- 플레이어의 UUIDlatency
- 플레이어의 지연 시간- Returns:
- 플레이어 데이터
-
updatePlayerListName
static PlayerInfoUpdatePacket.PlayerData updatePlayerListName(UUID uuid, @Nullable Component playerListName) for Update PlayerListName Action- Parameters:
uuid
- 플레이어의 UUIDplayerListName
- 플레이어의 표시 이름 (nullable)- Returns:
- 플레이어 데이터
-