public List<Entities> getContents() throws NotAContainerException {
		Location containerLoc = Location.locationInFrontOf(player.getLocation(), player.getDirection());
		if (board.containsLocation(containerLoc)) {
			InanimateEntity on = board.tileAt(containerLoc).getOn();
			if (on != null && on instanceof Inventory) {
				if (on instanceof Lockable && ((Lockable)on).isLocked()) {
					if (this.unlock((Lockable)on, containerLoc)) {
							return ((Inventory)on).getContentsAsEnums();
					}
				} else {
					return ((Inventory)on).getContentsAsEnums();
				}
			}
		}
		throw new NotAContainerException();
	}