Renamed root packet

This commit is contained in:
Nan1t 2022-12-11 13:36:24 +03:00
parent 8210e61989
commit 77a68efdc8
63 changed files with 330 additions and 329 deletions

View File

@ -33,7 +33,7 @@ shadowJar {
from 'LICENSE' from 'LICENSE'
manifest { manifest {
attributes('Main-Class': 'ru.nanit.limbo.NanoLimbo') attributes('Main-Class': 'ua.nanit.limbo.NanoLimbo')
} }
minimize() minimize()

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo; package ua.nanit.limbo;
public final class LimboConstants { public final class LimboConstants {

View File

@ -15,10 +15,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo; package ua.nanit.limbo;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
public final class NanoLimbo { public final class NanoLimbo {

View File

@ -15,14 +15,17 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.configuration; package ua.nanit.limbo.configuration;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;
import org.spongepowered.configurate.ConfigurationOptions; import org.spongepowered.configurate.ConfigurationOptions;
import org.spongepowered.configurate.serialize.TypeSerializerCollection; import org.spongepowered.configurate.serialize.TypeSerializerCollection;
import org.spongepowered.configurate.yaml.YamlConfigurationLoader; import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
import ru.nanit.limbo.server.data.*; import ua.nanit.limbo.util.Colors;
import ru.nanit.limbo.util.Colors; import ua.nanit.limbo.server.data.BossBar;
import ua.nanit.limbo.server.data.InfoForwarding;
import ua.nanit.limbo.server.data.PingData;
import ua.nanit.limbo.server.data.Title;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.configuration; package ua.nanit.limbo.configuration;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;

View File

@ -15,17 +15,17 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection; package ua.nanit.limbo.connection;
import io.netty.channel.Channel; import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline; import io.netty.channel.ChannelPipeline;
import io.netty.handler.timeout.ReadTimeoutHandler; import io.netty.handler.timeout.ReadTimeoutHandler;
import ru.nanit.limbo.connection.pipeline.PacketDecoder; import ua.nanit.limbo.connection.pipeline.PacketDecoder;
import ru.nanit.limbo.connection.pipeline.PacketEncoder; import ua.nanit.limbo.connection.pipeline.PacketEncoder;
import ru.nanit.limbo.connection.pipeline.VarIntFrameDecoder; import ua.nanit.limbo.connection.pipeline.VarIntFrameDecoder;
import ru.nanit.limbo.connection.pipeline.VarIntLengthEncoder; import ua.nanit.limbo.connection.pipeline.VarIntLengthEncoder;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection; package ua.nanit.limbo.connection;
import com.grack.nanojson.JsonArray; import com.grack.nanojson.JsonArray;
import com.grack.nanojson.JsonObject; import com.grack.nanojson.JsonObject;
@ -26,17 +26,17 @@ import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.channel.ChannelInboundHandlerAdapter;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import ru.nanit.limbo.connection.pipeline.PacketDecoder; import ua.nanit.limbo.connection.pipeline.PacketDecoder;
import ru.nanit.limbo.connection.pipeline.PacketEncoder; import ua.nanit.limbo.connection.pipeline.PacketEncoder;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.packets.login.*; import ua.nanit.limbo.protocol.packets.login.PacketDisconnect;
import ru.nanit.limbo.protocol.packets.play.*; import ua.nanit.limbo.protocol.packets.play.PacketKeepAlive;
import ru.nanit.limbo.protocol.registry.State; import ua.nanit.limbo.protocol.registry.State;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import ru.nanit.limbo.util.UuidUtil; import ua.nanit.limbo.util.UuidUtil;
import javax.crypto.Mac; import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.SecretKeySpec;

View File

@ -1,42 +1,42 @@
/* /*
* Copyright (C) 2020 Nan1t * Copyright (C) 2020 Nan1t
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection; package ua.nanit.limbo.connection;
import java.util.UUID; import java.util.UUID;
public class GameProfile { public class GameProfile {
private UUID uuid; private UUID uuid;
private String username; private String username;
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
} }

View File

@ -15,20 +15,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection; package ua.nanit.limbo.connection;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import ru.nanit.limbo.LimboConstants; import ua.nanit.limbo.LimboConstants;
import ru.nanit.limbo.protocol.packets.PacketHandshake; import ua.nanit.limbo.protocol.packets.PacketHandshake;
import ru.nanit.limbo.protocol.packets.login.PacketLoginPluginRequest; import ua.nanit.limbo.protocol.packets.login.PacketLoginPluginRequest;
import ru.nanit.limbo.protocol.packets.login.PacketLoginPluginResponse; import ua.nanit.limbo.protocol.packets.login.PacketLoginPluginResponse;
import ru.nanit.limbo.protocol.packets.login.PacketLoginStart; import ua.nanit.limbo.protocol.packets.login.PacketLoginStart;
import ru.nanit.limbo.protocol.packets.status.PacketStatusPing; import ua.nanit.limbo.protocol.packets.status.PacketStatusPing;
import ru.nanit.limbo.protocol.packets.status.PacketStatusRequest; import ua.nanit.limbo.protocol.packets.status.PacketStatusRequest;
import ru.nanit.limbo.protocol.packets.status.PacketStatusResponse; import ua.nanit.limbo.protocol.packets.status.PacketStatusResponse;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import ru.nanit.limbo.util.UuidUtil; import ua.nanit.limbo.util.UuidUtil;
import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.ThreadLocalRandom;

View File

@ -15,15 +15,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection; package ua.nanit.limbo.connection;
import ru.nanit.limbo.LimboConstants; import ua.nanit.limbo.LimboConstants;
import ru.nanit.limbo.protocol.PacketSnapshot; import ua.nanit.limbo.protocol.PacketSnapshot;
import ru.nanit.limbo.protocol.packets.login.PacketLoginSuccess; import ua.nanit.limbo.protocol.packets.login.PacketLoginSuccess;
import ru.nanit.limbo.protocol.packets.play.*; import ua.nanit.limbo.protocol.packets.play.*;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.data.Title; import ua.nanit.limbo.server.data.Title;
import ru.nanit.limbo.util.UuidUtil; import ua.nanit.limbo.util.UuidUtil;
import java.util.Collections; import java.util.Collections;
import java.util.UUID; import java.util.UUID;

View File

@ -15,16 +15,16 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection.pipeline; package ua.nanit.limbo.connection.pipeline;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder; import io.netty.handler.codec.MessageToMessageDecoder;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.registry.State; import ua.nanit.limbo.protocol.registry.State;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import java.util.List; import java.util.List;

View File

@ -15,17 +15,17 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection.pipeline; package ua.nanit.limbo.connection.pipeline;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder; import io.netty.handler.codec.MessageToByteEncoder;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.PacketSnapshot; import ua.nanit.limbo.protocol.PacketSnapshot;
import ru.nanit.limbo.protocol.registry.State; import ua.nanit.limbo.protocol.registry.State;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
public class PacketEncoder extends MessageToByteEncoder<Packet> { public class PacketEncoder extends MessageToByteEncoder<Packet> {

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection.pipeline; package ua.nanit.limbo.connection.pipeline;
import io.netty.util.ByteProcessor; import io.netty.util.ByteProcessor;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection.pipeline; package ua.nanit.limbo.connection.pipeline;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder; import io.netty.handler.codec.ByteToMessageDecoder;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import java.util.List; import java.util.List;

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.connection.pipeline; package ua.nanit.limbo.connection.pipeline;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder; import io.netty.handler.codec.MessageToByteEncoder;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
@ChannelHandler.Sharable @ChannelHandler.Sharable
public class VarIntLengthEncoder extends MessageToByteEncoder<ByteBuf> { public class VarIntLengthEncoder extends MessageToByteEncoder<ByteBuf> {

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol; package ua.nanit.limbo.protocol;
import io.netty.buffer.*; import io.netty.buffer.*;
import io.netty.handler.codec.DecoderException; import io.netty.handler.codec.DecoderException;

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol; package ua.nanit.limbo.protocol;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public interface Packet { public interface Packet {

View File

@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol; package ua.nanit.limbo.protocol;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public interface PacketIn extends Packet { public interface PacketIn extends Packet {

View File

@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol; package ua.nanit.limbo.protocol;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public interface PacketOut extends Packet { public interface PacketOut extends Packet {

View File

@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol; package ua.nanit.limbo.protocol;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -15,16 +15,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets; package ua.nanit.limbo.protocol.packets;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketIn; import ua.nanit.limbo.protocol.PacketIn;
import ru.nanit.limbo.protocol.registry.State; import ua.nanit.limbo.protocol.registry.State;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger;
import ru.nanit.limbo.util.UuidUtil;
public class PacketHandshake implements PacketIn { public class PacketHandshake implements PacketIn {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.login; package ua.nanit.limbo.protocol.packets.login;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketDisconnect implements PacketOut { public class PacketDisconnect implements PacketOut {

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.login; package ua.nanit.limbo.protocol.packets.login;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketLoginPluginRequest implements PacketOut { public class PacketLoginPluginRequest implements PacketOut {

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.login; package ua.nanit.limbo.protocol.packets.login;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketIn; import ua.nanit.limbo.protocol.PacketIn;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public class PacketLoginPluginResponse implements PacketIn { public class PacketLoginPluginResponse implements PacketIn {

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.login; package ua.nanit.limbo.protocol.packets.login;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketIn; import ua.nanit.limbo.protocol.PacketIn;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public class PacketLoginStart implements PacketIn { public class PacketLoginStart implements PacketIn {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.login; package ua.nanit.limbo.protocol.packets.login;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import java.util.UUID; import java.util.UUID;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.data.BossBar; import ua.nanit.limbo.server.data.BossBar;
import java.util.UUID; import java.util.UUID;

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import java.util.UUID; import java.util.UUID;

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import java.util.List; import java.util.List;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.world.DimensionRegistry; import ua.nanit.limbo.world.DimensionRegistry;
public class PacketJoinGame implements PacketOut { public class PacketJoinGame implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketKeepAlive implements Packet { public class PacketKeepAlive implements Packet {

View File

@ -1,49 +1,49 @@
/* /*
* Copyright (C) 2020 Nan1t * Copyright (C) 2020 Nan1t
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketPlayerAbilities implements PacketOut { public class PacketPlayerAbilities implements PacketOut {
private int flags = 0x02; private int flags = 0x02;
private float flyingSpeed = 0.0F; private float flyingSpeed = 0.0F;
private float fieldOfView = 0.1F; private float fieldOfView = 0.1F;
public void setFlags(int flags) { public void setFlags(int flags) {
this.flags = flags; this.flags = flags;
} }
public void setFlyingSpeed(float flyingSpeed) { public void setFlyingSpeed(float flyingSpeed) {
this.flyingSpeed = flyingSpeed; this.flyingSpeed = flyingSpeed;
} }
public void setFieldOfView(float fieldOfView) { public void setFieldOfView(float fieldOfView) {
this.fieldOfView = fieldOfView; this.fieldOfView = fieldOfView;
} }
@Override @Override
public void encode(ByteMessage msg, Version version) { public void encode(ByteMessage msg, Version version) {
msg.writeByte(flags); msg.writeByte(flags);
msg.writeFloat(flyingSpeed); msg.writeFloat(flyingSpeed);
msg.writeFloat(fieldOfView); msg.writeFloat(fieldOfView);
} }
} }

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import java.util.EnumSet; import java.util.EnumSet;
import java.util.UUID; import java.util.UUID;

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketPlayerListHeader implements PacketOut { public class PacketPlayerListHeader implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketPlayerPositionAndLook implements PacketOut { public class PacketPlayerPositionAndLook implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketPluginMessage implements PacketOut { public class PacketPluginMessage implements PacketOut {

View File

@ -1,10 +1,10 @@
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketSpawnPosition implements PacketOut { public class PacketSpawnPosition implements PacketOut {
private long x; private long x;
private long y; private long y;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.data.Title; import ua.nanit.limbo.server.data.Title;
public class PacketTitleLegacy implements PacketOut { public class PacketTitleLegacy implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketTitleSetSubTitle implements PacketOut { public class PacketTitleSetSubTitle implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketTitleSetTitle implements PacketOut { public class PacketTitleSetTitle implements PacketOut {

View File

@ -15,11 +15,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.play; package ua.nanit.limbo.protocol.packets.play;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
public class PacketTitleTimes implements PacketOut { public class PacketTitleTimes implements PacketOut {

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.status; package ua.nanit.limbo.protocol.packets.status;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public class PacketStatusPing implements Packet { public class PacketStatusPing implements Packet {

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.status; package ua.nanit.limbo.protocol.packets.status;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketIn; import ua.nanit.limbo.protocol.PacketIn;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public class PacketStatusRequest implements PacketIn { public class PacketStatusRequest implements PacketIn {

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.packets.status; package ua.nanit.limbo.protocol.packets.status;
import ru.nanit.limbo.protocol.ByteMessage; import ua.nanit.limbo.protocol.ByteMessage;
import ru.nanit.limbo.protocol.PacketOut; import ua.nanit.limbo.protocol.PacketOut;
import ru.nanit.limbo.protocol.registry.Version; import ua.nanit.limbo.protocol.registry.Version;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
public class PacketStatusResponse implements PacketOut { public class PacketStatusResponse implements PacketOut {

View File

@ -15,20 +15,20 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.registry; package ua.nanit.limbo.protocol.registry;
import ru.nanit.limbo.protocol.Packet; import ua.nanit.limbo.protocol.Packet;
import ru.nanit.limbo.protocol.packets.PacketHandshake; import ua.nanit.limbo.protocol.packets.PacketHandshake;
import ru.nanit.limbo.protocol.packets.login.*; import ua.nanit.limbo.protocol.packets.login.*;
import ru.nanit.limbo.protocol.packets.play.*; import ua.nanit.limbo.protocol.packets.play.*;
import ru.nanit.limbo.protocol.packets.status.PacketStatusPing; import ua.nanit.limbo.protocol.packets.status.PacketStatusPing;
import ru.nanit.limbo.protocol.packets.status.PacketStatusRequest; import ua.nanit.limbo.protocol.packets.status.PacketStatusRequest;
import ru.nanit.limbo.protocol.packets.status.PacketStatusResponse; import ua.nanit.limbo.protocol.packets.status.PacketStatusResponse;
import java.util.*; import java.util.*;
import java.util.function.Supplier; import java.util.function.Supplier;
import static ru.nanit.limbo.protocol.registry.Version.*; import static ua.nanit.limbo.protocol.registry.Version.*;
public enum State { public enum State {

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.protocol.registry; package ua.nanit.limbo.protocol.registry;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package ru.nanit.limbo.server; package ua.nanit.limbo.server;
public interface Command { public interface Command {

View File

@ -1,9 +1,9 @@
package ru.nanit.limbo.server; package ua.nanit.limbo.server;
import ru.nanit.limbo.server.commands.CmdConn; import ua.nanit.limbo.server.commands.CmdConn;
import ru.nanit.limbo.server.commands.CmdHelp; import ua.nanit.limbo.server.commands.CmdHelp;
import ru.nanit.limbo.server.commands.CmdMem; import ua.nanit.limbo.server.commands.CmdMem;
import ru.nanit.limbo.server.commands.CmdStop; import ua.nanit.limbo.server.commands.CmdStop;
import java.util.*; import java.util.*;

View File

@ -15,9 +15,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server; package ua.nanit.limbo.server;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server; package ua.nanit.limbo.server;
import io.netty.bootstrap.ServerBootstrap; import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelOption; import io.netty.channel.ChannelOption;
@ -27,12 +27,12 @@ import io.netty.channel.epoll.EpollServerSocketChannel;
import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel; import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.ResourceLeakDetector; import io.netty.util.ResourceLeakDetector;
import ru.nanit.limbo.configuration.LimboConfig; import ua.nanit.limbo.configuration.LimboConfig;
import ru.nanit.limbo.connection.ClientChannelInitializer; import ua.nanit.limbo.connection.ClientChannelInitializer;
import ru.nanit.limbo.connection.ClientConnection; import ua.nanit.limbo.connection.ClientConnection;
import ru.nanit.limbo.connection.PacketHandler; import ua.nanit.limbo.connection.PacketHandler;
import ru.nanit.limbo.connection.PacketSnapshots; import ua.nanit.limbo.connection.PacketSnapshots;
import ru.nanit.limbo.world.DimensionRegistry; import ua.nanit.limbo.world.DimensionRegistry;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ScheduledFuture;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server; package ua.nanit.limbo.server;
import java.time.LocalTime; import java.time.LocalTime;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;

View File

@ -1,8 +1,8 @@
package ru.nanit.limbo.server.commands; package ua.nanit.limbo.server.commands;
import ru.nanit.limbo.server.Command; import ua.nanit.limbo.server.Command;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
public class CmdConn implements Command { public class CmdConn implements Command {

View File

@ -1,8 +1,8 @@
package ru.nanit.limbo.server.commands; package ua.nanit.limbo.server.commands;
import ru.nanit.limbo.server.Command; import ua.nanit.limbo.server.Command;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import java.util.Map; import java.util.Map;

View File

@ -1,7 +1,7 @@
package ru.nanit.limbo.server.commands; package ua.nanit.limbo.server.commands;
import ru.nanit.limbo.server.Command; import ua.nanit.limbo.server.Command;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
public class CmdMem implements Command { public class CmdMem implements Command {

View File

@ -1,6 +1,6 @@
package ru.nanit.limbo.server.commands; package ua.nanit.limbo.server.commands;
import ru.nanit.limbo.server.Command; import ua.nanit.limbo.server.Command;
public class CmdStop implements Command { public class CmdStop implements Command {

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server.data; package ua.nanit.limbo.server.data;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;
import org.spongepowered.configurate.serialize.SerializationException; import org.spongepowered.configurate.serialize.SerializationException;
import org.spongepowered.configurate.serialize.TypeSerializer; import org.spongepowered.configurate.serialize.TypeSerializer;
import ru.nanit.limbo.util.Colors; import ua.nanit.limbo.util.Colors;
import java.lang.reflect.Type; import java.lang.reflect.Type;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server.data; package ua.nanit.limbo.server.data;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server.data; package ua.nanit.limbo.server.data;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;
import org.spongepowered.configurate.serialize.TypeSerializer; import org.spongepowered.configurate.serialize.TypeSerializer;
import ru.nanit.limbo.util.Colors; import ua.nanit.limbo.util.Colors;
import java.lang.reflect.Type; import java.lang.reflect.Type;

View File

@ -15,12 +15,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.server.data; package ua.nanit.limbo.server.data;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.ConfigurationNode;
import org.spongepowered.configurate.serialize.TypeSerializer; import org.spongepowered.configurate.serialize.TypeSerializer;
import ru.nanit.limbo.util.Colors; import ua.nanit.limbo.util.Colors;
import java.lang.reflect.Type; import java.lang.reflect.Type;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.util; package ua.nanit.limbo.util;
public final class Colors { public final class Colors {

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.util; package ua.nanit.limbo.util;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.util.UUID; import java.util.UUID;

View File

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.world; package ua.nanit.limbo.world;
import net.kyori.adventure.nbt.CompoundBinaryTag; import net.kyori.adventure.nbt.CompoundBinaryTag;

View File

@ -15,13 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
package ru.nanit.limbo.world; package ua.nanit.limbo.world;
import net.kyori.adventure.nbt.CompoundBinaryTag; import net.kyori.adventure.nbt.CompoundBinaryTag;
import net.kyori.adventure.nbt.ListBinaryTag; import net.kyori.adventure.nbt.ListBinaryTag;
import net.kyori.adventure.nbt.TagStringIO; import net.kyori.adventure.nbt.TagStringIO;
import ru.nanit.limbo.server.LimboServer; import ua.nanit.limbo.server.LimboServer;
import ru.nanit.limbo.server.Logger; import ua.nanit.limbo.server.Logger;
import java.io.*; import java.io.*;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;