/** * Retrieve a read/write structure for the ServerPing fields in the following packet: <br> * <ul> * <li>{@link PacketType.Status.Server#SERVER_INFO} * </ul> * @return A modifier for ServerPing fields. */ public StructureModifier<WrappedServerPing> getServerPings() { // Convert to and from the wrapper return structureModifier.withType( MinecraftReflection.getServerPingClass(), BukkitConverters.getWrappedServerPingConverter()); }
builder.put(MinecraftReflection.getGameProfileClass(), (EquivalentConverter) getWrappedGameProfileConverter()); builder.put(MinecraftReflection.getIChatBaseComponentClass(), (EquivalentConverter) getWrappedChatComponentConverter()); builder.put(MinecraftReflection.getServerPingClass(), (EquivalentConverter) getWrappedServerPingConverter()); builder.put(MinecraftReflection.getStatisticClass(), (EquivalentConverter) getWrappedStatisticConverter());