Unicopia/src/main/java/com/minelittlepony/unicopia/entity/Owned.java
2020-04-26 19:33:10 +02:00

19 lines
343 B
Java

package com.minelittlepony.unicopia.entity;
/**
* Interface for things that can be owned.
*
* @param <E> The type of object that owns us.
*/
public interface Owned<E> {
/**
* Updates the owner of this object.
*/
void setOwner(E owner);
/**
* Gets the owner that holds this object.
*/
E getOwner();
}