Skip to content

Commit

Permalink
Expose GameBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 11, 2024
1 parent 49d4fa7 commit 5816b51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/xyz/nucleoid/plasmid/api/game/GameSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,6 @@ public interface GameSpace extends GameAttachmentHolder {
* @return true if this GameSpace is closed, false otherwise
*/
boolean isClosed();

GameBehavior getBehavior();
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public <T> void setAttachment(GameAttachment<? super T> attachment, @Nullable T
}
}

@Override
public GameBehavior getBehavior() {
return this.state;
}
Expand Down

0 comments on commit 5816b51

Please sign in to comment.