This commit is contained in:
Brian Neumann-Fopiano
2026-08-15 12:07:38 -04:00
parent 59f33bd921
commit 4535bf3eed
2 changed files with 28 additions and 1 deletions
@@ -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