Skip to content

Commit 3630664

Browse files
committed
feat(minecraft): update to 25w45a
- Added `spear_mobs` trigger. - Added `netherite_horse_armor` item type. - Added `spawns_coral_variant_zombie_nautilus` biome tag. - Removed `without_patrol_spawns` biome tag. See https://minecraft.wiki/w/Java_Edition_25w45a
1 parent 6600bdf commit 3630664

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

generator/src/main/java/org/spongepowered/vanilla/generator/RegistryEntriesGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public RegistryEntriesGenerator(final String relativePackageName,
109109

110110
@Override
111111
public String name() {
112-
return "elements of registry " + this.registry.location();
112+
return "elements of registry " + this.registry.identifier();
113113
}
114114

115115
@Override
@@ -122,7 +122,7 @@ public void generate(final Context ctx) throws IOException {
122122
clazz.addAnnotation(Types.suppressWarnings("unused"));
123123

124124
final RegistryScope scopeType;
125-
Registry<V> registry = (Registry<V>) BuiltInRegistries.REGISTRY.get(this.registry.location()).map(Holder.Reference::value).orElse(null);
125+
Registry<V> registry = (Registry<V>) BuiltInRegistries.REGISTRY.get(this.registry.identifier()).map(Holder.Reference::value).orElse(null);
126126
if (registry == null) {
127127
registry = ctx.registries().lookup(this.registry).orElse(null);
128128
if (registry == null) {

generator/src/main/java/org/spongepowered/vanilla/generator/RegistryEntriesValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public RegistryEntriesValidator(
8585

8686
@Override
8787
public String name() {
88-
return "elements of registry " + this.registry.location();
88+
return "elements of registry " + this.registry.identifier();
8989
}
9090

9191
@Override
@@ -98,7 +98,7 @@ public void generate(final Context ctx) {
9898

9999
Registry<V> registry = ctx.registries().lookup(this.registry).orElse(null);
100100
if (registry == null) {
101-
registry = (Registry<V>) BuiltInRegistries.REGISTRY.get(this.registry.location())
101+
registry = (Registry<V>) BuiltInRegistries.REGISTRY.get(this.registry.identifier())
102102
.orElseThrow(() -> new IllegalArgumentException("Unknown registry " + this.registry));
103103
}
104104

0 commit comments

Comments
 (0)