mirror of
https://github.com/FabricMC/fabric.git
synced 2025-02-16 19:59:56 -05:00
1.18-pre6
Just some mappings in the tests, but nice to keep on top of it.
This commit is contained in:
parent
6bc49c5fa7
commit
295197a789
2 changed files with 11 additions and 11 deletions
|
@ -24,9 +24,9 @@ import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.class_6834;
|
|
||||||
import net.minecraft.nbt.NbtCompound;
|
import net.minecraft.nbt.NbtCompound;
|
||||||
import net.minecraft.structure.ShiftableStructurePiece;
|
import net.minecraft.structure.ShiftableStructurePiece;
|
||||||
|
import net.minecraft.structure.StructureGeneratorFactory;
|
||||||
import net.minecraft.structure.StructurePieceType;
|
import net.minecraft.structure.StructurePieceType;
|
||||||
import net.minecraft.structure.StructurePiecesGenerator;
|
import net.minecraft.structure.StructurePiecesGenerator;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
@ -68,13 +68,13 @@ public class StructureTest {
|
||||||
super(codec, TestStructureFeature::createGenerator);
|
super(codec, TestStructureFeature::createGenerator);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Optional<StructurePiecesGenerator<DefaultFeatureConfig>> createGenerator(class_6834.class_6835 arg) {
|
private static Optional<StructurePiecesGenerator<DefaultFeatureConfig>> createGenerator(StructureGeneratorFactory.Context<DefaultFeatureConfig> context) {
|
||||||
return Optional.of((structurePiecesCollector, context) -> {
|
return Optional.of((structurePiecesCollector, ctx) -> {
|
||||||
int blockX = context.chunkPos().getStartX();
|
int blockX = ctx.chunkPos().getStartX();
|
||||||
int blockZ = context.chunkPos().getStartZ();
|
int blockZ = ctx.chunkPos().getStartZ();
|
||||||
int blockY = context.chunkGenerator().getHeight(blockX, blockZ, Heightmap.Type.WORLD_SURFACE_WG, context.world());
|
int blockY = ctx.chunkGenerator().getHeight(blockX, blockZ, Heightmap.Type.WORLD_SURFACE_WG, ctx.world());
|
||||||
|
|
||||||
TestStructureGenerator generator = new TestStructureGenerator(context.random(), blockX, blockY, blockZ);
|
TestStructureGenerator generator = new TestStructureGenerator(ctx.random(), blockX, blockY, blockZ);
|
||||||
structurePiecesCollector.addPiece(generator);
|
structurePiecesCollector.addPiece(generator);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
org.gradle.jvmargs=-Xmx2560M
|
org.gradle.jvmargs=-Xmx2560M
|
||||||
|
|
||||||
version=0.42.8
|
version=0.42.9
|
||||||
minecraft_version=1.18-pre5
|
minecraft_version=1.18-pre6
|
||||||
yarn_version=+build.2
|
yarn_version=+build.1
|
||||||
loader_version=0.12.5
|
loader_version=0.12.5
|
||||||
|
|
||||||
prerelease=true
|
prerelease=true
|
||||||
|
@ -48,7 +48,7 @@ fabric-rendering-v1-version=1.10.3
|
||||||
fabric-resource-loader-v0-version=0.4.11
|
fabric-resource-loader-v0-version=0.4.11
|
||||||
fabric-screen-api-v1-version=1.0.7
|
fabric-screen-api-v1-version=1.0.7
|
||||||
fabric-screen-handler-api-v1-version=1.1.11
|
fabric-screen-handler-api-v1-version=1.1.11
|
||||||
fabric-structure-api-v1-version=2.0.7
|
fabric-structure-api-v1-version=2.0.8
|
||||||
fabric-tag-extensions-v0-version=1.2.5
|
fabric-tag-extensions-v0-version=1.2.5
|
||||||
fabric-textures-v0-version=1.0.9
|
fabric-textures-v0-version=1.0.9
|
||||||
fabric-tool-attribute-api-v1-version=1.3.3
|
fabric-tool-attribute-api-v1-version=1.3.3
|
||||||
|
|
Loading…
Reference in a new issue