From fb3bb8abaac722ecebefa7dd072ea2d99fd926ff Mon Sep 17 00:00:00 2001 From: Tofaa <82680183+Tofaa2@users.noreply.github.com> Date: Mon, 22 Jan 2024 22:56:10 +0300 Subject: [PATCH] add todo for future update. --- README.md | 1 + src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a0956a..29519e9 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ Once this list is complete, i will release a stable version of the library. - [x] Make ObjectData actually useful. - [ ] Multi-version support, currently only 1.18+ is stable. - [ ] Make class names match the protocol specified names. +- [ ] Ideally, refactor the API to use a custom world that stores the entities, rather than one big map. This way we can access other data aswell from the world. This also requires me writing some other platform implementations by default. ### Credits - PacketEvents for providing the API and retrooper being a cool guy in general diff --git a/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java b/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java index f4d6c28..33ed672 100644 --- a/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java +++ b/src/main/java/me/tofaa/entitylib/entity/WrapperEntity.java @@ -23,11 +23,9 @@ public class WrapperEntity implements Tickable { private boolean onGround; private boolean spawned; protected Vector3d velocity = Vector3d.zero(); - private int riding = -1; private Set passengers = new HashSet<>(); - public WrapperEntity(int entityId, @NotNull UUID uuid, EntityType entityType, EntityMeta meta) { this.uuid = Optional.of(uuid); this.entityType = entityType;