@Nonnull @Override public Map<Object, Object> getMeta(@Nonnull EntityPlayer object) { Map<Object, Object> result = new HashMap<Object, Object>(); FoodStats stats = object.getFoodStats(); Map<String, Object> foodMap = Maps.newHashMap(); result.put("food", foodMap); foodMap.put("hunger", stats.getFoodLevel()); foodMap.put("saturation", stats.getSaturationLevel()); foodMap.put("hungry", stats.needFood()); PlayerCapabilities capabilities = object.capabilities; result.put("isFlying", capabilities.isFlying); result.put("allowFlying", capabilities.allowFlying); result.put("walkSpeed", capabilities.getWalkSpeed()); result.put("flySpeed", capabilities.getFlySpeed()); return result; }