接口的使用
net.minecraft.resource.ResourcePack
-
使用ResourcePack的程序包 程序包 说明 net.minecraft.client net.minecraft.client.resource net.minecraft.client.resource.language net.minecraft.resource Provides resources to Minecraft, including resource access and provision. -
-
net.minecraft.client中ResourcePack的使用
返回变量类型为ResourcePack的类型的net.minecraft.client中的方法 修饰符和类型 方法 说明 private static Supplier<ResourcePack>MinecraftClient. createV3ResourcePackFactory(Supplier<ResourcePack> packFactory)private static Supplier<ResourcePack>MinecraftClient. createV4ResourcePackFactory(Supplier<ResourcePack> packFactory)类型变量类型为ResourcePack的net.minecraft.client中的方法参数 修饰符和类型 方法 说明 private static ResourcePackProfileMinecraftClient. createResourcePackProfile(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> supplier, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition insertionPosition, ResourcePackSource source)private static Supplier<ResourcePack>MinecraftClient. createV3ResourcePackFactory(Supplier<ResourcePack> packFactory)private static Supplier<ResourcePack>MinecraftClient. createV4ResourcePackFactory(Supplier<ResourcePack> packFactory) -
net.minecraft.client.resource中ResourcePack的使用
实现ResourcePack的net.minecraft.client.resource中的类 修饰符和类型 类 说明 classDefaultClientResourcePackclassFormat3ResourcePackclassFormat4ResourcePack声明为ResourcePack的net.minecraft.client.resource中的字段 修饰符和类型 字段 说明 private ResourcePackFormat3ResourcePack. parentprivate ResourcePackFormat4ResourcePack. parent返回ResourcePack的net.minecraft.client.resource中的方法 修饰符和类型 方法 说明 private static ResourcePackClientBuiltinResourcePackProvider. getProgrammerArtResourcePackFromZipFile(File zipFile)类型变量类型为ResourcePack的net.minecraft.client.resource中的方法参数 修饰符和类型 方法 说明 private static @Nullable ResourcePackProfileClientBuiltinResourcePackProvider. getProgrammerArtResourcePackProfile(ResourcePackProfile.Factory factory, Supplier<ResourcePack> packSupplier)参数类型为ResourcePack的net.minecraft.client.resource中的构造器 构造器 说明 Format3ResourcePack(ResourcePack parent, Map<Identifier,Identifier> idMap)Format4ResourcePack(ResourcePack parent) -
net.minecraft.client.resource.language中ResourcePack的使用
类型变量类型为ResourcePack的net.minecraft.client.resource.language中的方法参数 修饰符和类型 方法 说明 private static Map<String,LanguageDefinition>LanguageManager. loadAvailableLanguages(Stream<ResourcePack> packs) -
net.minecraft.resource中ResourcePack的使用
实现ResourcePack的net.minecraft.resource中的类 修饰符和类型 类 说明 classAbstractFileResourcePackclassDefaultResourcePackclassDirectoryResourcePackclassZipResourcePack声明为ResourcePack的net.minecraft.resource中的字段 修饰符和类型 字段 说明 private ResourcePackReloadableResourceManagerImpl.PackAdditionFailedException. pack类型参数类型为ResourcePack的net.minecraft.resource中的字段 修饰符和类型 字段 说明 private Supplier<ResourcePack>ResourcePackProfile. packFactoryprotected List<ResourcePack>NamespaceResourceManager. packListprivate List<ResourcePack>ReloadableResourceManagerImpl. packs返回ResourcePack的net.minecraft.resource中的方法 修饰符和类型 方法 说明 ResourcePackResourcePackProfile. createResourcePack()ResourcePackReloadableResourceManagerImpl.PackAdditionFailedException. getPack()返回变量类型为ResourcePack的类型的net.minecraft.resource中的方法 修饰符和类型 方法 说明 private Supplier<ResourcePack>FileResourcePackProvider. createResourcePack(File file)List<ResourcePack>ResourcePackManager. createResourcePacks()Stream<ResourcePack>NamespaceResourceManager. streamResourcePacks()Gets a stream of loaded resource packs in increasing order of priority.Stream<ResourcePack>ReloadableResourceManagerImpl. streamResourcePacks()Gets a stream of loaded resource packs in increasing order of priority.Stream<ResourcePack>ResourceManager.Empty. streamResourcePacks()Gets a stream of loaded resource packs in increasing order of priority.Stream<ResourcePack>ResourceManager. streamResourcePacks()Gets a stream of loaded resource packs in increasing order of priority.参数类型为ResourcePack的net.minecraft.resource中的方法 修饰符和类型 方法 说明 voidNamespaceResourceManager. addPack(ResourcePack pack)voidReloadableResourceManagerImpl. addPack(ResourcePack pack)protected InputStreamNamespaceResourceManager. open(Identifier id, ResourcePack pack)类型变量类型为ResourcePack的net.minecraft.resource中的方法参数 修饰符和类型 方法 说明 @Nullable ResourcePackProfileResourcePackProfile.Factory. create(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition initialPosition, ResourcePackSource source)Creates a proper resource pack profile from the given parameters.static @Nullable ResourcePackProfileResourcePackProfile. of(String name, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, ResourcePackProfile.Factory profileFactory, ResourcePackProfile.InsertionPosition insertionPosition, ResourcePackSource packSource)Creates a resource pack profile from the given parameters.ResourceReloadReloadableResourceManager. reload(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs)Performs a reload.default CompletableFuture<Unit>ReloadableResourceManager. reload(Executor prepareExecutor, Executor applyExecutor, List<ResourcePack> packs, CompletableFuture<Unit> initialStage)Performs a reload.ResourceReloadReloadableResourceManagerImpl. reload(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs)Performs a reload.static CompletableFuture<ServerResourceManager>ServerResourceManager. reload(List<ResourcePack> packs, DynamicRegistryManager registryManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel, Executor prepareExecutor, Executor applyExecutor)参数类型为ResourcePack的net.minecraft.resource中的构造器 构造器 说明 PackAdditionFailedException(ResourcePack pack, Throwable cause)类型变量类型为ResourcePack的net.minecraft.resource中的构造器参数 构造器 说明 ResourcePackProfile(String name, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, Text displayName, Text description, ResourcePackCompatibility compatibility, ResourcePackProfile.InsertionPosition direction, boolean pinned, ResourcePackSource source)ResourcePackProfile(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourceType type, ResourcePackProfile.InsertionPosition direction, ResourcePackSource source)
-