Unicopia/src/main/java/com/minelittlepony/unicopia/Owned.java

20 lines
336 B
Java
Raw Normal View History

2020-06-26 11:44:47 +02:00
package com.minelittlepony.unicopia;
2019-03-12 21:10:48 +01:00
/**
* Interface for things that can be owned.
*
* @param <E> The type of object that owns us.
*/
public interface Owned<E> {
2019-03-12 21:10:48 +01:00
/**
* Updates the owner of this object.
*/
void setOwner(E owner);
2019-03-12 21:10:48 +01:00
/**
* Gets the owner that holds this object.
*/
E getOwner();
}