forked from neoforged/NeoForge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/1.20.x' into 1.20.x
- Loading branch information
Showing
14 changed files
with
169 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
patches/net/minecraft/core/registries/BuiltInRegistries.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/net/minecraft/core/registries/BuiltInRegistries.java | ||
+++ b/net/minecraft/core/registries/BuiltInRegistries.java | ||
@@ -346,6 +_,10 @@ | ||
}); | ||
} | ||
|
||
+ public static java.util.Set<ResourceLocation> getVanillaRegistrationOrder() { | ||
+ return java.util.Collections.unmodifiableSet(LOADERS.keySet()); | ||
+ } | ||
+ | ||
@FunctionalInterface | ||
interface RegistryBootstrap<T> { | ||
T run(Registry<T> p_260128_); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
patches/net/minecraft/world/entity/animal/horse/Horse.java.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"order": [ | ||
"minecraft:game_event", | ||
"minecraft:sound_event", | ||
"minecraft:fluid", | ||
"minecraft:mob_effect", | ||
"minecraft:block", | ||
"minecraft:enchantment", | ||
"minecraft:entity_type", | ||
"minecraft:item", | ||
"minecraft:potion", | ||
"minecraft:particle_type", | ||
"minecraft:block_entity_type", | ||
"minecraft:painting_variant", | ||
"minecraft:custom_stat", | ||
"minecraft:chunk_status", | ||
"minecraft:rule_test", | ||
"minecraft:rule_block_entity_modifier", | ||
"minecraft:pos_rule_test", | ||
"minecraft:menu", | ||
"minecraft:recipe_type", | ||
"minecraft:recipe_serializer", | ||
"minecraft:attribute", | ||
"minecraft:position_source_type", | ||
"minecraft:command_argument_type", | ||
"minecraft:stat_type", | ||
"minecraft:villager_type", | ||
"minecraft:villager_profession", | ||
"minecraft:point_of_interest_type", | ||
"minecraft:memory_module_type", | ||
"minecraft:sensor_type", | ||
"minecraft:schedule", | ||
"minecraft:activity", | ||
"minecraft:loot_pool_entry_type", | ||
"minecraft:loot_function_type", | ||
"minecraft:loot_condition_type", | ||
"minecraft:loot_number_provider_type", | ||
"minecraft:loot_nbt_provider_type", | ||
"minecraft:loot_score_provider_type", | ||
"minecraft:float_provider_type", | ||
"minecraft:int_provider_type", | ||
"minecraft:height_provider_type", | ||
"minecraft:block_predicate_type", | ||
"minecraft:worldgen/carver", | ||
"minecraft:worldgen/feature", | ||
"minecraft:worldgen/structure_placement", | ||
"minecraft:worldgen/structure_piece", | ||
"minecraft:worldgen/structure_type", | ||
"minecraft:worldgen/placement_modifier_type", | ||
"minecraft:worldgen/block_state_provider_type", | ||
"minecraft:worldgen/foliage_placer_type", | ||
"minecraft:worldgen/trunk_placer_type", | ||
"minecraft:worldgen/root_placer_type", | ||
"minecraft:worldgen/tree_decorator_type", | ||
"minecraft:worldgen/feature_size_type", | ||
"minecraft:worldgen/biome_source", | ||
"minecraft:worldgen/chunk_generator", | ||
"minecraft:worldgen/material_condition", | ||
"minecraft:worldgen/material_rule", | ||
"minecraft:worldgen/density_function_type", | ||
"minecraft:block_type", | ||
"minecraft:worldgen/structure_processor", | ||
"minecraft:worldgen/structure_pool_element", | ||
"minecraft:worldgen/pool_alias_binding", | ||
"minecraft:cat_variant", | ||
"minecraft:frog_variant", | ||
"minecraft:banner_pattern", | ||
"minecraft:instrument", | ||
"minecraft:decorated_pot_patterns", | ||
"minecraft:creative_mode_tab", | ||
"minecraft:trigger_type", | ||
"minecraft:number_format_type" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...java/net/neoforged/neoforge/common/data/internal/NeoForgeRegistryOrderReportProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) NeoForged and contributors | ||
* SPDX-License-Identifier: LGPL-2.1-only | ||
*/ | ||
|
||
package net.neoforged.neoforge.common.data.internal; | ||
|
||
import com.google.gson.JsonArray; | ||
import com.google.gson.JsonObject; | ||
import java.nio.file.Path; | ||
import java.util.concurrent.CompletableFuture; | ||
import net.minecraft.core.registries.BuiltInRegistries; | ||
import net.minecraft.data.CachedOutput; | ||
import net.minecraft.data.DataProvider; | ||
import net.minecraft.data.PackOutput; | ||
|
||
public final class NeoForgeRegistryOrderReportProvider implements DataProvider { | ||
private final PackOutput output; | ||
|
||
public NeoForgeRegistryOrderReportProvider(PackOutput output) { | ||
this.output = output; | ||
} | ||
|
||
@Override | ||
public CompletableFuture<?> run(CachedOutput output) { | ||
JsonObject json = new JsonObject(); | ||
|
||
JsonArray array = new JsonArray(); | ||
BuiltInRegistries.getVanillaRegistrationOrder().forEach(name -> array.add(name.toString())); | ||
json.add("order", array); | ||
|
||
Path path = this.output.getOutputFolder(PackOutput.Target.REPORTS).resolve("registry_order.json"); | ||
return DataProvider.saveStable(output, json, path); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "registry_order_report"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters