Add tree/spike unit tests and harness hooks for sculk and gateways
Unit tests pin Java HashSet bucket iteration, Fisher-Yates draw order and the seed-derived End spike layout. The oracle ignores sounds, level events and entity queries; the Rust fixture accepts end-gateway configuration; FEATURE_FILTER limits a rerun to matching features. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,8 @@ public final class VanillaTreeFeatureOracle {
|
||||
case "ensureCanWrite":return true;
|
||||
case "getRandom":return shapeRandom;
|
||||
case "scheduleTick":return null; // Edge shape updates also schedule ticks; not compared.
|
||||
case "setCurrentlyGenerating":return null;
|
||||
case "setCurrentlyGenerating":case "playSound":case "levelEvent":case "gameEvent":case "blockEvent":return null;
|
||||
case "getEntities":return java.util.List.of();
|
||||
case "getBlockEntity":{
|
||||
if(args.length!=1)break;var p=((BlockPos)args[0]).immutable();var state=get(p);
|
||||
if(state.is(Blocks.CHEST))return chests.computeIfAbsent(p,key->new ChestBlockEntity(key,state){@Override public void setLootTable(net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable> table,long seed){out.println("loot "+xyz(key)+" "+table.identifier()+" "+seed);super.setLootTable(table,seed);}});
|
||||
|
||||
Reference in New Issue
Block a user