forked from External/mage
make plane and emblem implement Controllable to give access to the isControlledBy method
This commit is contained in:
parent
e614b8573e
commit
fe3f6fb6c8
8 changed files with 13 additions and 11 deletions
|
|
@ -12,6 +12,9 @@ public interface Controllable {
|
|||
UUID getId();
|
||||
|
||||
default boolean isControlledBy(UUID controllerID){
|
||||
if(getControllerId() == null){
|
||||
return false;
|
||||
}
|
||||
return getControllerId().equals(controllerID);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue