/** * Retrieves a read/write structure for the world type enum. * <p> * This modifier will automatically marshal between the Bukkit world type and the * internal Minecraft world type. * @return A modifier for world type fields. */ public StructureModifier<WorldType> getWorldTypeModifier() { // Convert to and from the Bukkit wrapper return structureModifier.withType( MinecraftReflection.getWorldTypeClass(), BukkitConverters.getWorldTypeConverter()); }
builder.put(MinecraftReflection.getWorldTypeClass(), (EquivalentConverter) getWorldTypeConverter()); if (hasAttributeSnapshot) builder.put(MinecraftReflection.getAttributeSnapshotClass(), (EquivalentConverter) getWrappedAttributeConverter());