mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Remove unused code
This commit is contained in:
parent
3225c7924f
commit
e97b461f91
3 changed files with 7 additions and 12 deletions
|
@ -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();
|
||||
}
|
|
@ -46,7 +46,9 @@ public interface Owned<E extends Entity> {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
|
@ -51,12 +51,15 @@ public class EntityReference<T extends Entity> implements NbtSerialisable {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the assigned entity's UUID
|
||||
*/
|
||||
public Optional<UUID> getId() {
|
||||
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() {
|
||||
return pos;
|
||||
|
|
Loading…
Reference in a new issue