mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
parent
56f2ec46df
commit
f4176da37a
@ -269,7 +269,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* WARNING: executed in the main update thread
|
||||
* UNSAFE: Only meant to be used when a socket player connects through the server.
|
||||
*
|
||||
* @param spawnInstance the player spawn instance (defined in {@link PlayerLoginEvent})
|
||||
* @param spawnInstance the player spawn instance (defined in {@link AsyncPlayerConfigurationEvent})
|
||||
*/
|
||||
public CompletableFuture<Void> UNSAFE_init(@NotNull Instance spawnInstance) {
|
||||
this.dimensionType = spawnInstance.getDimensionType();
|
||||
|
@ -97,9 +97,10 @@ public final class PacketListenerManager {
|
||||
/**
|
||||
* Processes a packet by getting its {@link PacketPlayListenerConsumer} and calling all the packet listeners.
|
||||
*
|
||||
* @param packet the received packet
|
||||
* @param player the player who sent the packet
|
||||
* @param <T> the packet type
|
||||
* @param state the current connection state
|
||||
* @param packet the received packet
|
||||
* @param connection the connection of the player who sent the packet
|
||||
* @param <T> the packet type
|
||||
*/
|
||||
public <T extends ClientPacket> void processClientPacket(@NotNull ConnectionState state, @NotNull T packet, @NotNull PlayerConnection connection) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user