类 ClientboundSetPlayerTeamPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacket
- 所有已实现的接口:
Packet<ClientGamePacketListener>
public class ClientboundSetPlayerTeamPacket
extends Object
implements Packet<ClientGamePacketListener>
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
static class
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final String
private final Optional<ClientboundSetPlayerTeamPacket.Parameters>
private final Collection<String>
-
构造器概要
构造器限定符构造器说明private
ClientboundSetPlayerTeamPacket
(String pName, int pMethod, Optional<ClientboundSetPlayerTeamPacket.Parameters> pParameters, Collection<String> pPlayers) -
方法概要
修饰符和类型方法说明createAddOrModifyPacket
(PlayerTeam pTeam, boolean pUseAdd) createPlayerPacket
(PlayerTeam pTeam, String pPlayerName, ClientboundSetPlayerTeamPacket.Action pAction) createRemovePacket
(PlayerTeam pTeam) getName()
void
handle
(ClientGamePacketListener pHandler) private static boolean
shouldHaveParameters
(int pMethod) private static boolean
shouldHavePlayerList
(int pMethod) void
write
(FriendlyByteBuf pBuffer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
METHOD_ADD
private static final int METHOD_ADD- 另请参阅:
-
METHOD_REMOVE
private static final int METHOD_REMOVE- 另请参阅:
-
METHOD_CHANGE
private static final int METHOD_CHANGE- 另请参阅:
-
METHOD_JOIN
private static final int METHOD_JOIN- 另请参阅:
-
METHOD_LEAVE
private static final int METHOD_LEAVE- 另请参阅:
-
MAX_VISIBILITY_LENGTH
private static final int MAX_VISIBILITY_LENGTH- 另请参阅:
-
MAX_COLLISION_LENGTH
private static final int MAX_COLLISION_LENGTH- 另请参阅:
-
method
private final int method -
name
-
players
-
parameters
-
-
构造器详细资料
-
ClientboundSetPlayerTeamPacket
private ClientboundSetPlayerTeamPacket(String pName, int pMethod, Optional<ClientboundSetPlayerTeamPacket.Parameters> pParameters, Collection<String> pPlayers) -
ClientboundSetPlayerTeamPacket
-
-
方法详细资料
-
createAddOrModifyPacket
public static ClientboundSetPlayerTeamPacket createAddOrModifyPacket(PlayerTeam pTeam, boolean pUseAdd) -
createRemovePacket
-
createPlayerPacket
public static ClientboundSetPlayerTeamPacket createPlayerPacket(PlayerTeam pTeam, String pPlayerName, ClientboundSetPlayerTeamPacket.Action pAction) -
write
- 指定者:
write
在接口中Packet<ClientGamePacketListener>
-
shouldHavePlayerList
private static boolean shouldHavePlayerList(int pMethod) -
shouldHaveParameters
private static boolean shouldHaveParameters(int pMethod) -
getPlayerAction
-
getTeamAction
-
handle
- 指定者:
handle
在接口中Packet<ClientGamePacketListener>
-
getName
-
getPlayers
-
getParameters
-