alecgorge/jsonapi — Issue #119: Chest Exception refers to sign
Author: Psithief
Created: 2012-01-29 03:28:25+00:00
State: open

```java
public Inventory getChestContents(String world, int x, int y, int z) throws Exception {
BlockState d = Server.getWorld(world).getBlockAt(x, y, z).getState();

if(d instanceof Chest) {
return ((Chest) d).getInventory();
}

throw new Exception("That isn't a sign!");
}
```

Speaks for itself?