package com.minelittlepony.unicopia.player; /** * Interface for things that can be owned. * * @param The type of object that owns us. */ public interface IOwned { /** * Updates the owner of this object. */ void setOwner(E owner); /** * Gets the owner that holds this object. */ E getOwner(); @SuppressWarnings("unchecked") static IOwned cast(Object o) { return (IOwned)o; } }