类的使用
net.minecraft.resource.DataPackSettings
-
使用DataPackSettings的程序包 程序包 说明 net.minecraft.client net.minecraft.client.gui.screen.world net.minecraft.resource Provides resources to Minecraft, including resource access and provision.net.minecraft.server net.minecraft.world net.minecraft.world.level net.minecraft.world.level.storage -
-
net.minecraft.client中DataPackSettings的使用
返回DataPackSettings的net.minecraft.client中的方法 修饰符和类型 方法 说明 static DataPackSettingsMinecraftClient. loadDataPackSettings(LevelStorage.Session storageSession)参数类型为DataPackSettings的net.minecraft.client中的方法 修饰符和类型 方法 说明 static SavePropertiesMinecraftClient. createSaveProperties(LevelStorage.Session session, DynamicRegistryManager.Impl registryTracker, ResourceManager resourceManager, DataPackSettings dataPackSettings) -
net.minecraft.client.gui.screen.world中DataPackSettings的使用
声明为DataPackSettings的net.minecraft.client.gui.screen.world中的字段 修饰符和类型 字段 说明 protected DataPackSettingsCreateWorldScreen. dataPackSettings参数类型为DataPackSettings的net.minecraft.client.gui.screen.world中的构造器 构造器 说明 CreateWorldScreen(@Nullable Screen parent, DataPackSettings dataPackSettings, MoreOptionsDialog moreOptionsDialog)CreateWorldScreen(@Nullable Screen parent, LevelInfo levelInfo, GeneratorOptions generatorOptions, @Nullable Path dataPackTempDir, DataPackSettings dataPackSettings, DynamicRegistryManager.Impl registryManager) -
net.minecraft.resource中DataPackSettings的使用
声明为DataPackSettings的net.minecraft.resource中的字段 修饰符和类型 字段 说明 static DataPackSettingsDataPackSettings. SAFE_MODE类型参数类型为DataPackSettings的net.minecraft.resource中的字段 修饰符和类型 字段 说明 static com.mojang.serialization.Codec<DataPackSettings>DataPackSettings. CODEC -
net.minecraft.server中DataPackSettings的使用
返回DataPackSettings的net.minecraft.server中的方法 修饰符和类型 方法 说明 private static DataPackSettingsMinecraftServer. createDataPackSettings(ResourcePackManager dataPackManager)static DataPackSettingsMinecraftServer. loadDataPacks(ResourcePackManager resourcePackManager, DataPackSettings dataPackSettings, boolean safeMode)参数类型为DataPackSettings的net.minecraft.server中的方法 修饰符和类型 方法 说明 static DataPackSettingsMinecraftServer. loadDataPacks(ResourcePackManager resourcePackManager, DataPackSettings dataPackSettings, boolean safeMode) -
net.minecraft.world中DataPackSettings的使用
返回DataPackSettings的net.minecraft.world中的方法 修饰符和类型 方法 说明 DataPackSettingsSaveProperties. getDataPackSettings()参数类型为DataPackSettings的net.minecraft.world中的方法 修饰符和类型 方法 说明 voidSaveProperties. updateLevelInfo(DataPackSettings dataPackSettings) -
net.minecraft.world.level中DataPackSettings的使用
声明为DataPackSettings的net.minecraft.world.level中的字段 修饰符和类型 字段 说明 private DataPackSettingsLevelInfo. dataPackSettings返回DataPackSettings的net.minecraft.world.level中的方法 修饰符和类型 方法 说明 DataPackSettingsLevelInfo. getDataPackSettings()DataPackSettingsLevelProperties. getDataPackSettings()参数类型为DataPackSettings的net.minecraft.world.level中的方法 修饰符和类型 方法 说明 static LevelInfoLevelInfo. fromDynamic(com.mojang.serialization.Dynamic<?> dynamic, DataPackSettings dataPackSettings)voidLevelProperties. updateLevelInfo(DataPackSettings dataPackSettings)LevelInfoLevelInfo. withDataPackSettings(DataPackSettings dataPackSettings)参数类型为DataPackSettings的net.minecraft.world.level中的构造器 构造器 说明 LevelInfo(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataPackSettings dataPackSettings) -
net.minecraft.world.level.storage中DataPackSettings的使用
返回DataPackSettings的net.minecraft.world.level.storage中的方法 修饰符和类型 方法 说明 @Nullable DataPackSettingsLevelStorage.Session. getDataPackSettings()private static DataPackSettingsLevelStorage. parseDataPackSettings(com.mojang.serialization.Dynamic<?> dynamic)private static @Nullable DataPackSettingsLevelStorage. readDataPackSettings(File file, com.mojang.datafixers.DataFixer dataFixer)参数类型为DataPackSettings的net.minecraft.world.level.storage中的方法 修饰符和类型 方法 说明 private static BiFunction<File,com.mojang.datafixers.DataFixer,LevelProperties>LevelStorage. createLevelDataParser(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings)@Nullable SavePropertiesLevelStorage.Session. readLevelProperties(com.mojang.serialization.DynamicOps<Tag> dynamicOps, DataPackSettings dataPackSettings)
-