/** * Retrieve a read/write structure for maps of statistics. * <p> * Note that you must write back the changed map to persist it. * @return A modifier for maps of statistics. */ public StructureModifier<Map<WrappedStatistic, Integer>> getStatisticMaps() { return getMaps( BukkitConverters.getWrappedStatisticConverter(), Converters.passthrough(Integer.class)); }
builder.put(MinecraftReflection.getIChatBaseComponentClass(), (EquivalentConverter) getWrappedChatComponentConverter()); builder.put(MinecraftReflection.getServerPingClass(), (EquivalentConverter) getWrappedServerPingConverter()); builder.put(MinecraftReflection.getStatisticClass(), (EquivalentConverter) getWrappedStatisticConverter());