Class PlayerInfoUpdatePacket
java.lang.Object
net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket
- All Implemented Interfaces:
NetworkBuffer.Writer,SendablePacket,ServerPacket
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInfoUpdatePacket(@NotNull EnumSet<@NotNull PlayerInfoUpdatePacket.Action> actions, @NotNull List<@NotNull PlayerInfoUpdatePacket.Entry> entries) PlayerInfoUpdatePacket(@NotNull NetworkBuffer reader) PlayerInfoUpdatePacket(@NotNull PlayerInfoUpdatePacket.Action action, @NotNull PlayerInfoUpdatePacket.Entry entry) -
Method Summary
Modifier and TypeMethodDescription@NotNull EnumSet<PlayerInfoUpdatePacket.Action> actions()@NotNull List<PlayerInfoUpdatePacket.Entry> entries()booleanintgetId(@NotNull ConnectionState state) Gets the id of this packet.inthashCode()toString()voidwrite(@NotNull NetworkBuffer writer)
-
Constructor Details
-
PlayerInfoUpdatePacket
public PlayerInfoUpdatePacket(@NotNull @NotNull EnumSet<@NotNull PlayerInfoUpdatePacket.Action> actions, @NotNull @NotNull List<@NotNull PlayerInfoUpdatePacket.Entry> entries) -
PlayerInfoUpdatePacket
public PlayerInfoUpdatePacket(@NotNull @NotNull PlayerInfoUpdatePacket.Action action, @NotNull @NotNull PlayerInfoUpdatePacket.Entry entry) -
PlayerInfoUpdatePacket
-
-
Method Details
-
write
- Specified by:
writein interfaceNetworkBuffer.Writer
-
getId
Description copied from interface:ServerPacketGets the id of this packet.Written in the final buffer header so it needs to match the client id.
- Specified by:
getIdin interfaceServerPacket- Returns:
- the id of this packet
-
actions
-
entries
-
equals
-
hashCode
public int hashCode() -
toString
-