diff --git a/src/main/java/net/minestom/server/command/ConsoleSender.java b/src/main/java/net/minestom/server/command/ConsoleSender.java index 220509fa0..edcbfb29f 100644 --- a/src/main/java/net/minestom/server/command/ConsoleSender.java +++ b/src/main/java/net/minestom/server/command/ConsoleSender.java @@ -8,7 +8,6 @@ import net.minestom.server.permission.Permission; import net.minestom.server.tag.Tag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jglrxavpok.hephaistos.nbt.NBTCompound; import org.jglrxavpok.hephaistos.nbt.mutable.MutableNBTCompound; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/net/minestom/server/command/ServerSender.java b/src/main/java/net/minestom/server/command/ServerSender.java index 066161326..6473fe9c7 100644 --- a/src/main/java/net/minestom/server/command/ServerSender.java +++ b/src/main/java/net/minestom/server/command/ServerSender.java @@ -1,12 +1,11 @@ package net.minestom.server.command; -import net.minestom.server.command.builder.CommandContext; import net.kyori.adventure.audience.Audience; +import net.minestom.server.command.builder.CommandContext; import net.minestom.server.permission.Permission; import net.minestom.server.tag.Tag; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jglrxavpok.hephaistos.nbt.NBTCompound; import org.jglrxavpok.hephaistos.nbt.mutable.MutableNBTCompound; import java.util.Collections; diff --git a/src/main/java/net/minestom/server/entity/damage/DamageType.java b/src/main/java/net/minestom/server/entity/damage/DamageType.java index b2c6a10ab..c39899aec 100644 --- a/src/main/java/net/minestom/server/entity/damage/DamageType.java +++ b/src/main/java/net/minestom/server/entity/damage/DamageType.java @@ -9,7 +9,6 @@ import net.minestom.server.tag.Tag; import net.minestom.server.tag.TagHandler; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jglrxavpok.hephaistos.nbt.NBTCompound; import org.jglrxavpok.hephaistos.nbt.mutable.MutableNBTCompound; /** diff --git a/src/main/java/net/minestom/server/instance/DynamicChunk.java b/src/main/java/net/minestom/server/instance/DynamicChunk.java index a56d8d32f..d6660f31b 100644 --- a/src/main/java/net/minestom/server/instance/DynamicChunk.java +++ b/src/main/java/net/minestom/server/instance/DynamicChunk.java @@ -1,7 +1,6 @@ package net.minestom.server.instance; import com.extollit.gaming.ai.path.model.ColumnarOcclusionFieldList; -import it.unimi.dsi.fastutil.ints.Int2ObjectMaps; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import net.minestom.server.MinecraftServer; import net.minestom.server.coordinate.Point; diff --git a/src/main/java/net/minestom/server/instance/EntityTrackerImpl.java b/src/main/java/net/minestom/server/instance/EntityTrackerImpl.java index 237482c94..969e87704 100644 --- a/src/main/java/net/minestom/server/instance/EntityTrackerImpl.java +++ b/src/main/java/net/minestom/server/instance/EntityTrackerImpl.java @@ -127,7 +127,7 @@ final class EntityTrackerImpl implements EntityTracker { public void visibleEntities(int chunkX, int chunkZ, @NotNull Target target, @NotNull Query query) { for (List entities : references(chunkX, chunkZ, target)) { if (entities.isEmpty()) continue; - for (Entity entity : entities) query.consume((T) entity); + for (T entity : entities) query.consume(entity); } } diff --git a/src/main/java/net/minestom/server/network/packet/server/play/JoinGamePacket.java b/src/main/java/net/minestom/server/network/packet/server/play/JoinGamePacket.java index 24501c432..724dea46b 100644 --- a/src/main/java/net/minestom/server/network/packet/server/play/JoinGamePacket.java +++ b/src/main/java/net/minestom/server/network/packet/server/play/JoinGamePacket.java @@ -6,7 +6,6 @@ import net.minestom.server.network.packet.server.ServerPacketIdentifier; import net.minestom.server.utils.binary.BinaryReader; import net.minestom.server.utils.binary.BinaryWriter; import org.jetbrains.annotations.NotNull; -import org.jglrxavpok.hephaistos.nbt.NBT; import org.jglrxavpok.hephaistos.nbt.NBTCompound; import java.util.List; diff --git a/src/main/java/net/minestom/server/terminal/MinestomTerminal.java b/src/main/java/net/minestom/server/terminal/MinestomTerminal.java index e7563d480..87320527e 100644 --- a/src/main/java/net/minestom/server/terminal/MinestomTerminal.java +++ b/src/main/java/net/minestom/server/terminal/MinestomTerminal.java @@ -1,7 +1,6 @@ package net.minestom.server.terminal; import net.minestom.server.MinecraftServer; -import net.minestom.server.command.CommandManager; import org.jetbrains.annotations.ApiStatus; import org.jline.reader.EndOfFileException; import org.jline.reader.LineReader; diff --git a/src/main/java/net/minestom/server/utils/ViewEngine.java b/src/main/java/net/minestom/server/utils/ViewEngine.java index d894e673c..267a7bbc9 100644 --- a/src/main/java/net/minestom/server/utils/ViewEngine.java +++ b/src/main/java/net/minestom/server/utils/ViewEngine.java @@ -26,7 +26,6 @@ public final class ViewEngine { private final Set manualViewers = ConcurrentHashMap.newKeySet(); private EntityTracker tracker; - private Point lastTrackingPoint; // Decide if this entity should be viewable to X players public final Option viewableOption; @@ -55,7 +54,6 @@ public final class ViewEngine { public void updateTracker(@NotNull Point point, @Nullable EntityTracker tracker) { synchronized (mutex) { this.tracker = tracker; - this.lastTrackingPoint = point; if (tracker != null) { this.viewableOption.references = tracker.references(point, EntityTracker.Target.PLAYERS); this.viewerOption.references = tracker.references(point, EntityTracker.Target.ENTITIES); diff --git a/src/main/java/net/minestom/server/world/DimensionTypeManager.java b/src/main/java/net/minestom/server/world/DimensionTypeManager.java index 43e5c27a8..0c38fac88 100644 --- a/src/main/java/net/minestom/server/world/DimensionTypeManager.java +++ b/src/main/java/net/minestom/server/world/DimensionTypeManager.java @@ -5,13 +5,11 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jglrxavpok.hephaistos.nbt.NBT; import org.jglrxavpok.hephaistos.nbt.NBTCompound; -import org.jglrxavpok.hephaistos.nbt.NBTList; import org.jglrxavpok.hephaistos.nbt.NBTType; import java.util.Collections; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import java.util.stream.Collectors; /** * Allows servers to register custom dimensions. Also used during player login to send the list of all existing dimensions.