Remove unused code

This commit is contained in:
Sollace 2022-09-14 16:48:34 +02:00
parent 3225c7924f
commit e97b461f91
3 changed files with 7 additions and 12 deletions

View file

@ -1,10 +0,0 @@
package com.minelittlepony.unicopia;
import net.minecraft.entity.Entity;
public interface EntitySupplier {
/**
* Gets the owner that holds this object.
*/
Entity getEntity();
}

View file

@ -46,7 +46,9 @@ public interface Owned<E extends Entity> {
} }
default boolean isOwnedBy(@Nullable Object owner) { default boolean isOwnedBy(@Nullable Object owner) {
return owner instanceof Entity e && getMasterId().isPresent() && e.getUuid().equals(getMasterId().get()); return owner instanceof Entity e
&& getMasterId().isPresent()
&& e.getUuid().equals(getMasterId().get());
} }
default boolean hasCommonOwner(Owned<?> sibling) { default boolean hasCommonOwner(Owned<?> sibling) {

View file

@ -51,12 +51,15 @@ public class EntityReference<T extends Entity> implements NbtSerialisable {
} }
} }
/**
* Gets the assigned entity's UUID
*/
public Optional<UUID> getId() { public Optional<UUID> getId() {
return uuid; return uuid;
} }
/** /**
* Gets the position the last known position of the assigned entity. * Gets the last known position of the assigned entity.
*/ */
public Optional<Vec3d> getPosition() { public Optional<Vec3d> getPosition() {
return pos; return pos;