2020-06-26 11:44:47 +02:00
|
|
|
package com.minelittlepony.unicopia;
|
2018-09-16 00:45:44 +02:00
|
|
|
|
2019-03-12 21:10:48 +01:00
|
|
|
/**
|
|
|
|
* Interface for things that can be owned.
|
|
|
|
*
|
|
|
|
* @param <E> The type of object that owns us.
|
|
|
|
*/
|
2020-01-27 17:37:22 +01:00
|
|
|
public interface Owned<E> {
|
2018-09-16 00:45:44 +02:00
|
|
|
|
2019-03-12 21:10:48 +01:00
|
|
|
/**
|
|
|
|
* Updates the owner of this object.
|
|
|
|
*/
|
2020-10-08 19:22:20 +02:00
|
|
|
void setMaster(E owner);
|
2018-09-16 00:45:44 +02:00
|
|
|
|
2019-03-12 21:10:48 +01:00
|
|
|
/**
|
|
|
|
* Gets the owner that holds this object.
|
|
|
|
*/
|
2020-10-08 19:22:20 +02:00
|
|
|
E getMaster();
|
2018-09-16 00:45:44 +02:00
|
|
|
}
|