This commit is contained in:
Brian Neumann-Fopiano committed 2026-08-15 15:57:30 -04:00
1 parent 59f33bd921
commit 4535bf3eed
2 files changed
+28 -1

No files matched your search

@@ -529,6 +529,23 @@ public final class StubPlatform implements IrisPlatform {
}
}
private record StubEntityType(String key) implements PlatformEntityType {
@Override
public String namespace() {
return "minecraft";
}
@Override
public String spawnCategory() {
return "monster";
}
@Override
public Object nativeHandle() {
return this;
}
}
private static final class StubRegistries implements PlatformRegistries {
@Override
public PlatformBlockState block(String key) {
@@ -567,7 +584,7 @@ public final class StubPlatform implements IrisPlatform {
@Override
public PlatformEntityType entity(String key) {
return null;
return key != null && key.startsWith("minecraft:") ? new StubEntityType(key) : null;
}
@Override