cat.nyaa.nyaacore.component.IComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpgitems Show documentation
Show all versions of rpgitems Show documentation
The legacy RPGItems continues. (fork)
package cat.nyaa.nyaacore.component;
public interface IComponent {
/**
* @param successor the new implementation about to replace this one
* @return if the successor can be the new implementation for the Component type.
*/
default boolean canReplaceMe(IComponent successor) {
return (this.getClass() == successor.getClass());
}
}