added a few more structure features
This commit is contained in:
@@ -63,7 +63,7 @@ public class SeedCracker implements ModInitializer {
|
||||
for(long i = 0; i < (1L << 16); i++) {
|
||||
long worldSeed = (i << 48) | seed1;
|
||||
BiomeLayerSampler[] biomeLayerSamplers = BiomeLayers.build(worldSeed, LevelGeneratorType.DEFAULT, BiomeSourceType.VANILLA_LAYERED.getConfig().getGeneratorSettings());
|
||||
System.out.println(worldSeed + ", " + biomeLayerSamplers[0].sample(0, 0));
|
||||
//System.out.println(worldSeed + ", " + biomeLayerSamplers[0].sample(0, 0));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -75,7 +75,6 @@ public class SeedCracker implements ModInitializer {
|
||||
|
||||
for(long i = 0; i < (1L << 32); i++) {
|
||||
long structureSeed = this.timeMachine(i, pillarSeed);
|
||||
//if(structureSeed != 229625539606330L)continue;
|
||||
boolean goodSeed = true;
|
||||
|
||||
for(StructureData structureData: structureDataList) {
|
||||
|
||||
@@ -13,7 +13,7 @@ public class StructureData {
|
||||
|
||||
public StructureData(ChunkPos chunkPos, Feature feature) {
|
||||
this.feature = feature;
|
||||
this.feature.buildCalls(this, chunkPos);
|
||||
this.feature.build(this, chunkPos);
|
||||
}
|
||||
|
||||
public int getRegionX() {
|
||||
@@ -49,7 +49,7 @@ public class StructureData {
|
||||
this.templeDistance = templeDistance;
|
||||
}
|
||||
|
||||
public void buildCalls(StructureData data, ChunkPos chunkPos) {
|
||||
public void build(StructureData data, ChunkPos chunkPos) {
|
||||
int chunkX = chunkPos.x;
|
||||
int chunkZ = chunkPos.z;
|
||||
|
||||
@@ -74,13 +74,6 @@ public class StructureData {
|
||||
}
|
||||
|
||||
|
||||
public static final Feature SWAMP_HUT = new Feature(14357620, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature DESERT_PYRAMID = new Feature(14357617, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
@@ -88,6 +81,13 @@ public class StructureData {
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature IGLOO = new Feature(14357618, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature JUNGLE_TEMPLE = new Feature(14357619, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
@@ -95,6 +95,34 @@ public class StructureData {
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature SWAMP_HUT = new Feature(14357620, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature OCEAN_RUIN = new Feature(14357621, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature SHIPWRECK = new Feature(165745295, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature PILLAGER_OUTPOST = new Feature(165745296, 32) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
return rand.nextInt(24) == x && rand.nextInt(24) == z;
|
||||
}
|
||||
};
|
||||
|
||||
public static final Feature END_CITY = new Feature(10387313, 20) {
|
||||
@Override
|
||||
public boolean test(ChunkRandom rand, int x, int z) {
|
||||
|
||||
Reference in New Issue
Block a user