Skip to content

附录 B 公开类型索引(按包) ​

下表列出 MC 1.12.2 下各模块 api 包中的全部公开类型,便于按名字反查所属包。

core ​

包公开类型
net.ornithemc.osl.core.api.eventsEvent
net.ornithemc.osl.core.api.ioDataStream
net.ornithemc.osl.core.api.jsonJsonFile
net.ornithemc.osl.core.api.registryDefaultedIdRegistry、IdBiMap、Registries、Registry、RegistryKey、SimpleIdRegistry
net.ornithemc.osl.core.api.utilNamespacedIdentifier、NamespacedIdentifiers、Unit
net.ornithemc.osl.core.api.util.functionIOConsumer、IOSupplier、TriConsumer、TriFunction
net.ornithemc.osl.core.api.util.mathBlockPos、Direction
net.ornithemc.osl.core.api.util.sortTopoSort

biomes ​

包公开类型
net.ornithemc.osl.biomes.apiBiomeEvents、BiomeRegistry
net.ornithemc.osl.biomes.api.biomeBiomeExtension、BiomeSettings

blocks ​

包公开类型
net.ornithemc.osl.blocks.apiBlockEvents、BlockRegistry

blockstates ​

包公开类型
net.ornithemc.osl.blockstates.api.blockBlockExtension
net.ornithemc.osl.blockstates.api.block.entityBlockEntityExtension
net.ornithemc.osl.blockstates.api.block.stateBlockBehaviors、BlockProperties、BlockStateExtension
net.ornithemc.osl.blockstates.api.stateState、StateDefinition
net.ornithemc.osl.blockstates.api.state.propertyAbstractProperty、BooleanProperty、DirectionProperty、EnumProperty、IntegerProperty、Property、StringSerializable

blockentities ​

包公开类型
net.ornithemc.osl.blockentities.apiBlockEntityEvents、BlockEntityTypeRegistry
net.ornithemc.osl.blockentities.api.blockentityBlockEntityType、BlockEntityTypes

blockentities-rendering ​

包公开类型
net.ornithemc.osl.blockentities.api.clientBlockEntityRendererRegistry、BlockEntityRenderingEvents

branding ​

包公开类型
net.ornithemc.osl.branding.apiBrandingContext、BrandingModifierRegistry、BrandingPatch、BrandingPatchEvents、Operation

commands ​

包公开类型
net.ornithemc.osl.commands.apiCommands
net.ornithemc.osl.commands.api.clientClientCommandEvents、ClientCommands
net.ornithemc.osl.commands.api.client.commandClientCommandSource、HelpCommand
net.ornithemc.osl.commands.api.client.network.handlerClientPlayNetworkHandlerExtension
net.ornithemc.osl.commands.api.commandCommandFailureConsumer、SharedSuggestionProvider、SuggestionProviders
net.ornithemc.osl.commands.api.command.argumentAnchorArgument、AxesArgument、BlockInput、BlockPosArgument、BlockPredicateArgument、BlockStateArgument、BlockStateParser、ColorArgument、ColumnPosArgument、Coordinate、Coordinates、EnchantmentArgument、EntityArgument、EntitySelector、EntitySelectorOptions、EntitySelectorParser、GameProfileArgument、GlobalCoordinates、IdentifierArgument、IdentifierParser、ItemArgument、ItemInput、ItemParser、ItemPredicateArgument、LegacyBlockPredicateArgument、LegacyBlockStateArgument、LocalCoordinates、MessageArgument、NbtCompoundArgument、NbtUtils、NumberRange、ObjectiveArgument、OperationArgument、RangeArgument、RotationArgument、ScoreHolderArgument、ScoreboardCriterionArgument、ScoreboardDisplaySlotArgument、SlotArgument、SnbtParser、StatusEffectArgument、TeamArgument、TextArgument、Vec2f、Vec2fArgument、Vec3dArgument、WrappedNumberRange
net.ornithemc.osl.commands.api.command.argument.serdesArgumentSerializer、ArgumentTypes、BrigadierArgumentSerializers、DoubleArgumentSerializer、EmptyArgumentSerializer、FloatArgumentSerializer、IntegerArgumentSerializer、StringArgumentSerializer
net.ornithemc.osl.commands.api.entityEntityExtension
net.ornithemc.osl.commands.api.serverMinecraftServerExtension、PlayerManagerExtension、ServerCommandEvents、ServerCommands
net.ornithemc.osl.commands.api.server.commandCommandSourceBuilder、CommandSourceStack

config ​

包公开类型
net.ornithemc.osl.config.apiConfigManager、ConfigRegistries、ConfigScope、LoadingPhase
net.ornithemc.osl.config.api.configBaseConfig、Config
net.ornithemc.osl.config.api.config.optionBaseOption、BlockPosOption、BooleanOption、ByteOption、CharacterOption、DoubleOption、FloatOption、IdentifierOption、IntegerOption、ListOption、LongOption、MapOption、ModifiableOption、Option、PathOption、ShortOption、StringOption、UuidOption
net.ornithemc.osl.config.api.config.option.groupOptionGroup
net.ornithemc.osl.config.api.config.option.validatorIntegerValidators、OptionValidators、StringValidators
net.ornithemc.osl.config.api.serdesFileSerializerType、JsonSerializer、JsonSerializers、MemorySerializerType、MinecraftSerializerTypes、NbtSerializer、NbtSerializers、NbtType、NetworkSerializer、NetworkSerializers、SerializationSettings、Serializer、SerializerType、SerializerTypes、Serializers
net.ornithemc.osl.config.api.serdes.configConfigSerializer、ConfigSerializers、JsonConfigSerializer、MinecraftConfigSerializers、NbtConfigSerializer、NetworkConfigSerializer
net.ornithemc.osl.config.api.serdes.config.optionJsonOptionSerializer、JsonOptionSerializers、MinecraftJsonOptionSerializers、NbtOptionSerializer、NbtOptionSerializers、NetworkOptionSerializer、NetworkOptionSerializers、OptionSerializer、OptionSerializers

crash-reports ​

包公开类型
net.ornithemc.osl.crashreports.apiCrashExceptions
net.ornithemc.osl.crashreports.api.crashCrashException、CrashListener、CrashReport、CrashReportDetail、CrashReportPopulator、CrashReportSection

entities ​

包公开类型
net.ornithemc.osl.entities.apiEntityEvents、EntityTypeRegistry
net.ornithemc.osl.entities.api.entityEntityType、EntityTypes

entities-rendering ​

包公开类型
net.ornithemc.osl.entities.api.clientEntityRendererRegistry、EntityRenderingEvents

entrypoints ​

包公开类型
net.ornithemc.osl.entrypoints.apiModInitializer
net.ornithemc.osl.entrypoints.api.clientClientModInitializer
net.ornithemc.osl.entrypoints.api.launchLaunchEvents、OptionsConsumer
net.ornithemc.osl.entrypoints.api.serverServerModInitializer

executors ​

包公开类型
net.ornithemc.osl.executors.apiBackgroundExecutor、MainThreadExecutor

items ​

包公开类型
net.ornithemc.osl.items.apiItemEvents、ItemRegistry

keybinds ​

包公开类型
net.ornithemc.osl.keybinds.apiKeyBindingEvents、KeyBindingRegistry、KeybindEvents、KeybindRegistry

lifecycle-events ​

包公开类型
net.ornithemc.osl.lifecycle.apiLifecycleEvents
net.ornithemc.osl.lifecycle.api.clientClientWorldEvents、MinecraftClientEvents、MinecraftInstance
net.ornithemc.osl.lifecycle.api.serverMinecraftServerEvents、MinecraftServerInstance、ServerWorldEvents

localization ​

包公开类型
net.ornithemc.osl.localization.apiL10n
net.ornithemc.osl.localization.api.languageLanguage、LanguageMetadata

networking ​

包公开类型
net.ornithemc.osl.networking.apiChannelIdentifiers、ChannelRegistry、IdentifierChannelIdentifierParser、LegacyChannelIdentifier、PacketBuffer、PacketBuffers、PacketPayload、StringChannelIdentifierParser
net.ornithemc.osl.networking.api.clientClientConnectionEvents、ClientPacketListener、ClientPlayNetworking
net.ornithemc.osl.networking.api.serverServerConnectionEvents、ServerPacketListener、ServerPlayNetworking

registries ​

包公开类型
net.ornithemc.osl.registries.apiRegistryEvents
net.ornithemc.osl.registries.api.registryDefaultedRegistry、IdMap、LegacyStringIds、Registries、Registry、RegistryKeys、ResourceKey、ResourceKeys、SyncedRegistries、WritableRegistry
net.ornithemc.osl.registries.api.registry.syncArrayMapper、BooleanArrayMapper、DynamicArray、DynamicBooleanArray、DynamicInt2ObjectMapMapper、DynamicIntArray、Id2ObjectBiMapMapper、IdFixer、IdMapper、Int2ObjectMapMapper、IntArrayMapper、IntegerMapMapper、ListMapper、RegistryMappings

resource-loader ​

包公开类型
net.ornithemc.osl.resource.loader.api.clientClientResourceLoaderEvents
net.ornithemc.osl.resource.loader.api.client.resource.reloadAssetsReloaders
net.ornithemc.osl.resource.loader.api.resourceResource、ResourceLocation、ResourceMetadata、ResourcePath、ResourceType
net.ornithemc.osl.resource.loader.api.resource.managerReloadableResourceManager、ResourceManager
net.ornithemc.osl.resource.loader.api.resource.packAbstractResourcePack、PackCompatibility、PackPosition、ResourceConsumer、ResourcePack、ResourcePackFileNotFoundException、ResourcePackMetadata
net.ornithemc.osl.resource.loader.api.resource.reloadReloadStep、ResourceReload、ResourceReloadContext、ResourceReloadListener、ResourceReloader、SimpleResourceReloader
net.ornithemc.osl.resource.loader.api.resource.repositoryClientPackSource、ResourcePackRepository、ResourcePackSummary、ServerPackSource
net.ornithemc.osl.resource.loader.api.serverServerResourceLoaderEvents

text-components ​

包公开类型
net.ornithemc.osl.text.apiClickEvent、Formatting、HoverEvent、MessageConsumer、Style、StyledTextVisitor、TextColor、TextComponent、TextComponents、TextVisitResults、TextVisitor

基于 Ornithe Standard Libraries 0.24.0(MC 1.12.2)源码整理