mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
15 lines
383 B
Java
15 lines
383 B
Java
|
package com.minelittlepony.unicopia;
|
||
|
|
||
|
import net.minecraft.entity.Entity;
|
||
|
|
||
|
/**
|
||
|
* Interface for things that can be owned by an entity.
|
||
|
* <p>
|
||
|
* Ownership is retained so long as the owner is still active. If the owner leaves or dies, the link is broken.
|
||
|
*
|
||
|
* @param <E> The type of object that owns us.
|
||
|
*/
|
||
|
public interface EntityConvertable<E extends Entity> {
|
||
|
E asEntity();
|
||
|
}
|