From 80a8d93ef154437c801ee5b22f970cd867961377 Mon Sep 17 00:00:00 2001 From: 3add <3add.development@gmail.com> Date: Tue, 12 May 2026 17:16:20 +0200 Subject: [PATCH 1/5] Remove unused imports across multiple classes --- api/src/main/java/me/tofaa/entitylib/Platform.java | 2 -- .../java/me/tofaa/entitylib/container/EntityContainer.java | 1 - api/src/main/java/me/tofaa/entitylib/meta/Metadata.java | 2 -- .../me/tofaa/entitylib/meta/mobs/golem/ShulkerMeta.java | 4 ---- .../me/tofaa/entitylib/meta/other/FishingHookMeta.java | 2 -- .../tofaa/entitylib/wrapper/WrapperEntityAttributes.java | 1 - .../me/tofaa/entitylib/wrapper/WrapperEntityEquipment.java | 1 - .../me/tofaa/entitylib/wrapper/WrapperLivingEntity.java | 4 ---- .../tofaa/entitylib/wrapper/hologram/LegacyHologram.java | 1 - .../tofaa/entitylib/wrapper/hologram/ModernHologram.java | 2 -- .../entitylib/wrapper/spawning/SpawnPacketProvider.java | 1 - .../entitylib/wrapper/spawning/SpawnPacketProviders.java | 2 -- .../java/me/tofaa/entitylib/common/AbstractPlatform.java | 2 -- .../me/tofaa/entitylib/spigot/ExtraConversionUtil.java | 2 -- .../tofaa/entitylib/standalone/StandaloneEntityLibApi.java | 1 - .../entitylib/velocity/VelocityEntityLibPlatform.java | 6 ------ spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPC.java | 2 -- .../java/me/tofaa/entitylib/npc/NPCListenerManager.java | 4 ---- .../java/me/tofaa/entitylib/npc/NPCPlayerListener.java | 7 ------- .../src/main/java/me/tofaa/entitylib/npc/NPCRegistry.java | 1 - .../java/me/tofaa/entitylib/npc/command/NPCCommand.java | 1 - 21 files changed, 49 deletions(-) diff --git a/api/src/main/java/me/tofaa/entitylib/Platform.java b/api/src/main/java/me/tofaa/entitylib/Platform.java index fa75430..e47af1a 100644 --- a/api/src/main/java/me/tofaa/entitylib/Platform.java +++ b/api/src/main/java/me/tofaa/entitylib/Platform.java @@ -2,10 +2,8 @@ import me.tofaa.entitylib.event.EventHandler; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; import java.util.logging.Logger; -import java.util.stream.Stream; /** * A generic representation of a platform that EntityLib is running on. diff --git a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java index 6481c0c..22b1ceb 100644 --- a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java +++ b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java @@ -1,7 +1,6 @@ package me.tofaa.entitylib.container; import me.tofaa.entitylib.wrapper.WrapperEntity; -import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.*; diff --git a/api/src/main/java/me/tofaa/entitylib/meta/Metadata.java b/api/src/main/java/me/tofaa/entitylib/meta/Metadata.java index d93666f..fc97518 100644 --- a/api/src/main/java/me/tofaa/entitylib/meta/Metadata.java +++ b/api/src/main/java/me/tofaa/entitylib/meta/Metadata.java @@ -2,7 +2,6 @@ import com.github.retrooper.packetevents.protocol.entity.data.EntityData; import com.github.retrooper.packetevents.protocol.entity.data.EntityDataType; -import com.github.retrooper.packetevents.protocol.entity.data.EntityDataTypes; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityMetadata; import me.tofaa.entitylib.EntityLib; import me.tofaa.entitylib.EntityLibAPI; @@ -10,7 +9,6 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.sql.Wrapper; import java.util.*; import java.util.concurrent.ConcurrentHashMap; diff --git a/api/src/main/java/me/tofaa/entitylib/meta/mobs/golem/ShulkerMeta.java b/api/src/main/java/me/tofaa/entitylib/meta/mobs/golem/ShulkerMeta.java index 67f5132..39dbd08 100644 --- a/api/src/main/java/me/tofaa/entitylib/meta/mobs/golem/ShulkerMeta.java +++ b/api/src/main/java/me/tofaa/entitylib/meta/mobs/golem/ShulkerMeta.java @@ -3,12 +3,8 @@ import com.github.retrooper.packetevents.protocol.color.DyeColor; import com.github.retrooper.packetevents.protocol.entity.data.EntityDataTypes; import com.github.retrooper.packetevents.protocol.world.Direction; -import com.github.retrooper.packetevents.util.Vector3i; import me.tofaa.entitylib.meta.Metadata; import me.tofaa.entitylib.meta.types.MobMeta; -import net.kyori.adventure.text.format.NamedTextColor; - -import java.util.Optional; public class ShulkerMeta extends MobMeta { diff --git a/api/src/main/java/me/tofaa/entitylib/meta/other/FishingHookMeta.java b/api/src/main/java/me/tofaa/entitylib/meta/other/FishingHookMeta.java index 61f3242..36ea392 100644 --- a/api/src/main/java/me/tofaa/entitylib/meta/other/FishingHookMeta.java +++ b/api/src/main/java/me/tofaa/entitylib/meta/other/FishingHookMeta.java @@ -5,8 +5,6 @@ import me.tofaa.entitylib.meta.Metadata; import me.tofaa.entitylib.meta.types.ObjectData; -import java.util.Optional; - public class FishingHookMeta extends EntityMeta implements ObjectData { public static final byte OFFSET = EntityMeta.MAX_OFFSET; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityAttributes.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityAttributes.java index 4f9ead5..2b23986 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityAttributes.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityAttributes.java @@ -2,7 +2,6 @@ import com.github.retrooper.packetevents.protocol.attribute.Attribute; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerUpdateAttributes; -import org.w3c.dom.Attr; import java.util.ArrayList; import java.util.Collections; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityEquipment.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityEquipment.java index 4d737a3..bcf9dda 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityEquipment.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntityEquipment.java @@ -5,7 +5,6 @@ import com.github.retrooper.packetevents.protocol.player.Equipment; import com.github.retrooper.packetevents.protocol.player.EquipmentSlot; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityEquipment; -import me.tofaa.entitylib.EntityLib; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperLivingEntity.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperLivingEntity.java index 290e557..7775996 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperLivingEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperLivingEntity.java @@ -4,14 +4,10 @@ import com.github.retrooper.packetevents.protocol.entity.type.EntityType; import com.github.retrooper.packetevents.protocol.nbt.NBTCompound; import com.github.retrooper.packetevents.protocol.potion.PotionType; -import com.github.retrooper.packetevents.protocol.world.Location; import com.github.retrooper.packetevents.wrapper.PacketWrapper; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityAnimation; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityEffect; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityEquipment; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerHurtAnimation; import me.tofaa.entitylib.EntityLib; -import me.tofaa.entitylib.container.EntityContainer; import me.tofaa.entitylib.meta.EntityMeta; import me.tofaa.entitylib.utils.VersionUtil; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/LegacyHologram.java b/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/LegacyHologram.java index f8abd7e..b755cf8 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/LegacyHologram.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/LegacyHologram.java @@ -2,7 +2,6 @@ import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes; import com.github.retrooper.packetevents.protocol.world.Location; -import me.tofaa.entitylib.EntityLib; import me.tofaa.entitylib.meta.other.ArmorStandMeta; import me.tofaa.entitylib.utils.Check; import me.tofaa.entitylib.wrapper.WrapperEntity; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/ModernHologram.java b/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/ModernHologram.java index 911fd01..a0a34d2 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/ModernHologram.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/hologram/ModernHologram.java @@ -2,7 +2,6 @@ import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes; import com.github.retrooper.packetevents.protocol.world.Location; -import me.tofaa.entitylib.EntityLib; import me.tofaa.entitylib.meta.display.TextDisplayMeta; import me.tofaa.entitylib.utils.Check; import me.tofaa.entitylib.wrapper.WrapperEntity; @@ -10,7 +9,6 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.sql.Wrapper; import java.util.ArrayList; import java.util.List; import java.util.UUID; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProvider.java b/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProvider.java index 04de61e..5186b3f 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProvider.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProvider.java @@ -1,6 +1,5 @@ package me.tofaa.entitylib.wrapper.spawning; -import com.github.retrooper.packetevents.protocol.player.User; import com.github.retrooper.packetevents.wrapper.PacketWrapper; import me.tofaa.entitylib.wrapper.WrapperEntity; diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProviders.java b/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProviders.java index e70bebb..b1fa4f4 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProviders.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/spawning/SpawnPacketProviders.java @@ -7,8 +7,6 @@ import me.tofaa.entitylib.wrapper.WrapperExperienceOrbEntity; import org.jetbrains.annotations.NotNull; -import javax.naming.OperationNotSupportedException; -import java.awt.*; import java.util.Optional; interface SpawnPacketProviders { diff --git a/common/src/main/java/me/tofaa/entitylib/common/AbstractPlatform.java b/common/src/main/java/me/tofaa/entitylib/common/AbstractPlatform.java index 22d589e..dbf2c23 100644 --- a/common/src/main/java/me/tofaa/entitylib/common/AbstractPlatform.java +++ b/common/src/main/java/me/tofaa/entitylib/common/AbstractPlatform.java @@ -3,10 +3,8 @@ import me.tofaa.entitylib.*; import me.tofaa.entitylib.event.EventHandler; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; import java.util.logging.Logger; -import java.util.stream.Stream; public abstract class AbstractPlatform
implements Platform
{ diff --git a/platforms/spigot/src/main/java/me/tofaa/entitylib/spigot/ExtraConversionUtil.java b/platforms/spigot/src/main/java/me/tofaa/entitylib/spigot/ExtraConversionUtil.java index 6701af8..63210af 100644 --- a/platforms/spigot/src/main/java/me/tofaa/entitylib/spigot/ExtraConversionUtil.java +++ b/platforms/spigot/src/main/java/me/tofaa/entitylib/spigot/ExtraConversionUtil.java @@ -5,12 +5,10 @@ import com.github.retrooper.packetevents.protocol.player.TextureProperty; import com.github.retrooper.packetevents.protocol.player.UserProfile; import com.google.common.collect.Multimap; -import io.github.retrooper.packetevents.util.SpigotConversionUtil; import io.github.retrooper.packetevents.util.SpigotReflectionUtil; import org.bukkit.entity.Player; import org.bukkit.entity.Pose; import org.bukkit.inventory.MainHand; -import org.bukkit.profile.PlayerProfile; import org.jetbrains.annotations.Nullable; import java.lang.reflect.InvocationTargetException; diff --git a/platforms/standalone/src/main/java/me/tofaa/entitylib/standalone/StandaloneEntityLibApi.java b/platforms/standalone/src/main/java/me/tofaa/entitylib/standalone/StandaloneEntityLibApi.java index 009dead..6219bf8 100644 --- a/platforms/standalone/src/main/java/me/tofaa/entitylib/standalone/StandaloneEntityLibApi.java +++ b/platforms/standalone/src/main/java/me/tofaa/entitylib/standalone/StandaloneEntityLibApi.java @@ -1,6 +1,5 @@ package me.tofaa.entitylib.standalone; -import com.github.retrooper.packetevents.protocol.world.Location; import me.tofaa.entitylib.APIConfig; import me.tofaa.entitylib.Platform; import me.tofaa.entitylib.common.AbstractEntityLibAPI; diff --git a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java index b0e96a9..52a3338 100644 --- a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java +++ b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java @@ -1,12 +1,6 @@ package me.tofaa.entitylib.velocity; -import com.github.retrooper.packetevents.PacketEventsAPI; -import com.github.retrooper.packetevents.protocol.packettype.PacketType; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerBlockAction; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerBlockChange; -import com.velocitypowered.api.plugin.PluginContainer; import com.velocitypowered.api.proxy.ProxyServer; -import io.github.retrooper.packetevents.velocity.factory.VelocityPacketEventsBuilder; import me.tofaa.entitylib.APIConfig; import me.tofaa.entitylib.EntityLibAPI; import me.tofaa.entitylib.UserLocaleProvider; diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPC.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPC.java index 91cc819..ee59e47 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPC.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPC.java @@ -17,8 +17,6 @@ import com.github.retrooper.packetevents.wrapper.PacketWrapper; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityHeadLook; import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfo; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfoRemove; -import io.github.retrooper.packetevents.util.viaversion.ViaVersionAccessor; import io.github.retrooper.packetevents.util.viaversion.ViaVersionUtil; import me.tofaa.entitylib.EntityLib; import me.tofaa.entitylib.meta.EntityMeta; diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCListenerManager.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCListenerManager.java index 7abeab0..72adcb8 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCListenerManager.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCListenerManager.java @@ -5,12 +5,9 @@ import com.github.retrooper.packetevents.protocol.packettype.PacketType; import com.github.retrooper.packetevents.protocol.player.User; import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientInteractEntity; -import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientUseItem; import me.tofaa.entitylib.EntityLib; import me.tofaa.entitylib.npc.interactions.InteractionHandler; import me.tofaa.entitylib.npc.interactions.InteractionType; -import me.tofaa.entitylib.wrapper.WrapperEntity; -import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; @@ -19,7 +16,6 @@ import org.jetbrains.annotations.Nullable; import java.util.ArrayList; -import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.UUID; diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCPlayerListener.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCPlayerListener.java index 7171fb9..f0e1604 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCPlayerListener.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCPlayerListener.java @@ -1,13 +1,6 @@ package me.tofaa.entitylib.npc; -import com.github.retrooper.packetevents.PacketEvents; -import com.github.retrooper.packetevents.protocol.player.ClientVersion; -import com.github.retrooper.packetevents.protocol.player.User; import com.github.retrooper.packetevents.protocol.world.Location; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfo; -import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerInfoRemove; -import me.tofaa.entitylib.wrapper.WrapperEntity; -import me.tofaa.entitylib.wrapper.WrapperPlayer; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCRegistry.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCRegistry.java index 1fe4977..1063d4f 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCRegistry.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCRegistry.java @@ -6,7 +6,6 @@ import java.util.Collection; import java.util.Collections; import java.util.Map; -import java.util.Optional; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/command/NPCCommand.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/command/NPCCommand.java index 82aa146..54729bc 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/command/NPCCommand.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/command/NPCCommand.java @@ -24,7 +24,6 @@ import me.tofaa.entitylib.npc.skin.NPCSkin; import me.tofaa.entitylib.npc.storage.NPCStorage; import me.tofaa.entitylib.wrapper.WrapperLivingEntity; -import me.tofaa.entitylib.wrapper.WrapperPlayer; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; From f4978c10a021aaf24d80b323cd9741f611cdac61 Mon Sep 17 00:00:00 2001 From: 3add <3add.development@gmail.com> Date: Tue, 12 May 2026 17:19:28 +0200 Subject: [PATCH 2/5] Fix typos and improve clarity in comments and documentation --- README.md | 4 ++-- api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java | 2 +- api/src/main/java/me/tofaa/entitylib/Platform.java | 2 +- .../java/me/tofaa/entitylib/container/EntityContainer.java | 2 +- api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java | 2 +- .../tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java | 2 +- .../tofaa/entitylib/velocity/VelocityEntityLibPlatform.java | 2 +- .../src/main/java/me/tofaa/entitylib/npc/NPCMovement.java | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b88d4b5..5b4c3cd 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ EntityLib uses the new Maven Central publishing system via the Central Portal (r Snapshots are automatically published on pushes to the `master` branch. Stable releases are published when a GitHub release is created. ### TODO: -Once this list is complete, i will release a stable version of the library. +Once this list is complete, I will release a stable version of the library. - [ ] Implement checks for each EntityMeta to make sure the version specific data is correct. - [ ] Verify all the EntityMeta packets are working correctly. - [x] WrapperEntities must seamlessly send packet updates to viewers, currently they are not. @@ -163,5 +163,5 @@ Once this list is complete, i will release a stable version of the library. ### Credits - PacketEvents for providing the API and retrooper being a cool guy in general -- Minestom certain mappings were taken from Minestom cause i have not slept in 4 days and it was faster +- Minestom certain mappings were taken from Minestom cause I have not slept in 4 days and it was faster diff --git a/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java b/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java index 1426684..77dd750 100644 --- a/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java +++ b/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java @@ -7,7 +7,7 @@ import java.util.concurrent.atomic.AtomicInteger; /** - * Represents a int provider that gives an id for each entity created. When using EntityLib with platform specific entities (Such as bukkit entities), make sure the id's do not + * Represents an int provider that gives an id for each entity created. When using EntityLib with platform specific entities (Such as bukkit entities), make sure the id's do not * conflict with the platform's entity id's. * {@link DefaultEntityIdProvider} is a default implementation of this interface. */ diff --git a/api/src/main/java/me/tofaa/entitylib/Platform.java b/api/src/main/java/me/tofaa/entitylib/Platform.java index e47af1a..2a6f376 100644 --- a/api/src/main/java/me/tofaa/entitylib/Platform.java +++ b/api/src/main/java/me/tofaa/entitylib/Platform.java @@ -7,7 +7,7 @@ /** * A generic representation of a platform that EntityLib is running on. - * @param
The platform handle, for Spigot this would be a JavaPlugin. etc etc. + * @param
The platform handle, for Spigot this would be a JavaPlugin. etc. */ public interface Platform
{ diff --git a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java index 22b1ceb..318740d 100644 --- a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java +++ b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java @@ -7,7 +7,7 @@ /** - * Containers are basic iterable classes that hold entities. These containers can be extended to provide more functionality, and this allows for seperation of logic between certain entities. + * Containers are basic iterable classes that hold entities. These containers can be extended to provide more functionality, and this allows for separation of logic between certain entities. *
* To access a specific {@link WrapperEntity}'s container you can use {@link WrapperEntity#getParentContainer()}. *
diff --git a/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java b/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java index 0d9b880..c19472d 100644 --- a/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java +++ b/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java @@ -44,7 +44,7 @@ public boolean removeTickable(T tickable) { } /** - * Ticks all {@link Tickable}s in this container, this method can be overriden to provide a custom implementation. + * Ticks all {@link Tickable}s in this container, this method can be overridden to provide a custom implementation. * @param time The current time in milliseconds, incase the {@link Tickable} needs to know the current time. */ public void tick(long time) { diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java index 6744044..0e2d74c 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java @@ -38,7 +38,7 @@ public WrapperExperienceOrbEntity(EntityType entityType) { ** For this to work, this method needs to be called every tick until the entity reaches the location. * We don't have ticking or updating in this library, so you'll have to do it yourself. - * This is an attempt to mimmick the vanilla behavior. + * This is an attempt to mimic the vanilla behavior. *
*/ @Override diff --git a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java index 52a3338..a2c57ef 100644 --- a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java +++ b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java @@ -33,7 +33,7 @@ public void setupApi(@NotNull APIConfig settings) { // plugin, // handle, // logger, -// pe.getSettings(). +// pe.getSettings()). // } } diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java index 8a77c6e..3157638 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java @@ -238,7 +238,7 @@ private static void processPathFollowing() { boolean obstacleAhead = !blockAtFeet.isPassable() && blockAboveFeet.isPassable(); - // If we hit a 1-block obstacle and we're on the ground, jump + // If we hit a 1-block obstacle, and we're on the ground, jump if (obstacleAhead && follower.isOnGround()) { follower.jump(); } From 3585aab3568a79a8daa229f924e06bf3f880fea1 Mon Sep 17 00:00:00 2001 From: 3add <3add.development@gmail.com> Date: Tue, 12 May 2026 17:23:29 +0200 Subject: [PATCH 3/5] Update README.md to improve clarity in example code comments --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b4c3cd..8c9c045 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ class Example { // Making a random entity using packet events raw, i strongly recommend using the EntityLib#createEntity method instead int entityID = 1; - WrapperPlayServerSpawnEntity packet = new WrapperPlayServerSpawnEntity(constructor args); + WrapperPlayServerSpawnEntity packet = new WrapperPlayServerSpawnEntity(/* constructor args */); EntityMeta meta = EntityMeta.createMeta(entityId, EntityType); // You can cast the meta to the correct type depending on the entity type PigMeta pigMeta = (PigMeta) meta; @@ -121,7 +121,7 @@ class Example { entity.spawn(Location); // Spawns the entity at the given location entity.remove(); // Removes the entity from the world - entity.rotateHead(float yaw, float pitch); // Rotates the head of the entity + entity.rotateHead(/*float*/ yaw, /*float*/ pitch); // Rotates the head of the entity entity.teleport(Location); // Teleports the entity to the given location. // If the entityId provider for WrapperEntities is not working for you or needs changing, you can get it from EntityLib#getEntityIdProvider() From 7ac9f288951ea5c8a7b927fb631c4a0429af3779 Mon Sep 17 00:00:00 2001 From: 3add <3add.development@gmail.com> Date: Tue, 12 May 2026 17:24:46 +0200 Subject: [PATCH 4/5] Revert "Update README.md to improve clarity in example code comments" This reverts commit 3585aab3568a79a8daa229f924e06bf3f880fea1. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c9c045..5b4c3cd 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ class Example { // Making a random entity using packet events raw, i strongly recommend using the EntityLib#createEntity method instead int entityID = 1; - WrapperPlayServerSpawnEntity packet = new WrapperPlayServerSpawnEntity(/* constructor args */); + WrapperPlayServerSpawnEntity packet = new WrapperPlayServerSpawnEntity(constructor args); EntityMeta meta = EntityMeta.createMeta(entityId, EntityType); // You can cast the meta to the correct type depending on the entity type PigMeta pigMeta = (PigMeta) meta; @@ -121,7 +121,7 @@ class Example { entity.spawn(Location); // Spawns the entity at the given location entity.remove(); // Removes the entity from the world - entity.rotateHead(/*float*/ yaw, /*float*/ pitch); // Rotates the head of the entity + entity.rotateHead(float yaw, float pitch); // Rotates the head of the entity entity.teleport(Location); // Teleports the entity to the given location. // If the entityId provider for WrapperEntities is not working for you or needs changing, you can get it from EntityLib#getEntityIdProvider() From f7219e5c662d36ff01dc52d8075e23020cfb641e Mon Sep 17 00:00:00 2001 From: 3add <3add.development@gmail.com> Date: Tue, 12 May 2026 17:24:46 +0200 Subject: [PATCH 5/5] Revert "Fix typos and improve clarity in comments and documentation" This reverts commit f4978c10a021aaf24d80b323cd9741f611cdac61. --- README.md | 4 ++-- api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java | 2 +- api/src/main/java/me/tofaa/entitylib/Platform.java | 2 +- .../java/me/tofaa/entitylib/container/EntityContainer.java | 2 +- api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java | 2 +- .../tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java | 2 +- .../tofaa/entitylib/velocity/VelocityEntityLibPlatform.java | 2 +- .../src/main/java/me/tofaa/entitylib/npc/NPCMovement.java | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5b4c3cd..b88d4b5 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ EntityLib uses the new Maven Central publishing system via the Central Portal (r Snapshots are automatically published on pushes to the `master` branch. Stable releases are published when a GitHub release is created. ### TODO: -Once this list is complete, I will release a stable version of the library. +Once this list is complete, i will release a stable version of the library. - [ ] Implement checks for each EntityMeta to make sure the version specific data is correct. - [ ] Verify all the EntityMeta packets are working correctly. - [x] WrapperEntities must seamlessly send packet updates to viewers, currently they are not. @@ -163,5 +163,5 @@ Once this list is complete, I will release a stable version of the library. ### Credits - PacketEvents for providing the API and retrooper being a cool guy in general -- Minestom certain mappings were taken from Minestom cause I have not slept in 4 days and it was faster +- Minestom certain mappings were taken from Minestom cause i have not slept in 4 days and it was faster diff --git a/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java b/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java index 77dd750..1426684 100644 --- a/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java +++ b/api/src/main/java/me/tofaa/entitylib/EntityIdProvider.java @@ -7,7 +7,7 @@ import java.util.concurrent.atomic.AtomicInteger; /** - * Represents an int provider that gives an id for each entity created. When using EntityLib with platform specific entities (Such as bukkit entities), make sure the id's do not + * Represents a int provider that gives an id for each entity created. When using EntityLib with platform specific entities (Such as bukkit entities), make sure the id's do not * conflict with the platform's entity id's. * {@link DefaultEntityIdProvider} is a default implementation of this interface. */ diff --git a/api/src/main/java/me/tofaa/entitylib/Platform.java b/api/src/main/java/me/tofaa/entitylib/Platform.java index 2a6f376..e47af1a 100644 --- a/api/src/main/java/me/tofaa/entitylib/Platform.java +++ b/api/src/main/java/me/tofaa/entitylib/Platform.java @@ -7,7 +7,7 @@ /** * A generic representation of a platform that EntityLib is running on. - * @paramThe platform handle, for Spigot this would be a JavaPlugin. etc. + * @param
The platform handle, for Spigot this would be a JavaPlugin. etc etc. */ public interface Platform
{ diff --git a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java index 318740d..22b1ceb 100644 --- a/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java +++ b/api/src/main/java/me/tofaa/entitylib/container/EntityContainer.java @@ -7,7 +7,7 @@ /** - * Containers are basic iterable classes that hold entities. These containers can be extended to provide more functionality, and this allows for separation of logic between certain entities. + * Containers are basic iterable classes that hold entities. These containers can be extended to provide more functionality, and this allows for seperation of logic between certain entities. *
* To access a specific {@link WrapperEntity}'s container you can use {@link WrapperEntity#getParentContainer()}. *
diff --git a/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java b/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java index c19472d..0d9b880 100644 --- a/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java +++ b/api/src/main/java/me/tofaa/entitylib/tick/TickContainer.java @@ -44,7 +44,7 @@ public boolean removeTickable(T tickable) { } /** - * Ticks all {@link Tickable}s in this container, this method can be overridden to provide a custom implementation. + * Ticks all {@link Tickable}s in this container, this method can be overriden to provide a custom implementation. * @param time The current time in milliseconds, incase the {@link Tickable} needs to know the current time. */ public void tick(long time) { diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java index 0e2d74c..6744044 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperExperienceOrbEntity.java @@ -38,7 +38,7 @@ public WrapperExperienceOrbEntity(EntityType entityType) { ** For this to work, this method needs to be called every tick until the entity reaches the location. * We don't have ticking or updating in this library, so you'll have to do it yourself. - * This is an attempt to mimic the vanilla behavior. + * This is an attempt to mimmick the vanilla behavior. *
*/ @Override diff --git a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java index a2c57ef..52a3338 100644 --- a/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java +++ b/platforms/velocity/src/main/java/me/tofaa/entitylib/velocity/VelocityEntityLibPlatform.java @@ -33,7 +33,7 @@ public void setupApi(@NotNull APIConfig settings) { // plugin, // handle, // logger, -// pe.getSettings()). +// pe.getSettings(). // } } diff --git a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java index 3157638..8a77c6e 100644 --- a/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java +++ b/spaceNPC/src/main/java/me/tofaa/entitylib/npc/NPCMovement.java @@ -238,7 +238,7 @@ private static void processPathFollowing() { boolean obstacleAhead = !blockAtFeet.isPassable() && blockAboveFeet.isPassable(); - // If we hit a 1-block obstacle, and we're on the ground, jump + // If we hit a 1-block obstacle and we're on the ground, jump if (obstacleAhead && follower.isOnGround()) { follower.jump(); }