public NiftyGameState(final int slickGameStateId) {
this.id = slickGameStateId;
SlickCallable.enterSafeBlock();
this.nifty = new Nifty(
new SlickRenderDevice(container),
new SlickSoundDevice(),
new InputSystem() {
public void forwardEvents(final NiftyInputConsumer inputEventConsumer) {
for (MouseEvent event : mouseEvents) {
event.processMouseEvents(inputEventConsumer);