mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
21w05a
This commit is contained in:
parent
7053477453
commit
1eb2670e8a
9 changed files with 15 additions and 14 deletions
build.gradle
fabric-biome-api-v1
fabric-dimensions-v1
fabric-resource-loader-v0
build.gradle
src/main/java/net/fabricmc/fabric/mixin/resource/loader
fabric-structure-api-v1
|
@ -19,8 +19,8 @@ plugins {
|
|||
def ENV = System.getenv()
|
||||
|
||||
class Globals {
|
||||
static def baseVersion = "0.30.0"
|
||||
static def mcVersion = "21w03a"
|
||||
static def baseVersion = "0.30.1"
|
||||
static def mcVersion = "21w05a"
|
||||
static def yarnVersion = "+build.1"
|
||||
static def loaderVersion = "0.10.5+build.213"
|
||||
static def preRelease = true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-biome-api-v1"
|
||||
version = getSubprojectVersion(project, "3.1.3")
|
||||
version = getSubprojectVersion(project, "3.1.4")
|
||||
|
||||
minecraft {
|
||||
accessWidener = file("src/main/resources/fabric-biome-api-v1.accesswidener")
|
||||
|
|
|
@ -16,16 +16,15 @@
|
|||
|
||||
package net.fabricmc.fabric.impl.biome;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.util.math.noise.PerlinNoiseSampler;
|
||||
import net.minecraft.world.biome.layer.util.LayerRandomnessSource;
|
||||
import net.minecraft.world.gen.ChunkRandom;
|
||||
|
||||
public class SimpleLayerRandomnessSource implements LayerRandomnessSource {
|
||||
private final PerlinNoiseSampler sampler;
|
||||
|
||||
public SimpleLayerRandomnessSource(long seed) {
|
||||
Random random = new Random(seed);
|
||||
ChunkRandom random = new ChunkRandom(seed);
|
||||
this.sampler = new PerlinNoiseSampler(random);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-dimensions-v1"
|
||||
version = getSubprojectVersion(project, "2.0.3")
|
||||
version = getSubprojectVersion(project, "2.0.4")
|
||||
|
||||
dependencies {
|
||||
testmodCompile project(path: ':fabric-command-api-v1', configuration: 'dev')
|
||||
|
|
|
@ -21,6 +21,7 @@ import com.mojang.serialization.codecs.RecordCodecBuilder;
|
|||
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.world.ChunkRegion;
|
||||
import net.minecraft.world.HeightLimitView;
|
||||
import net.minecraft.world.Heightmap;
|
||||
import net.minecraft.world.WorldAccess;
|
||||
import net.minecraft.world.biome.source.BiomeSource;
|
||||
|
@ -68,12 +69,12 @@ public class VoidChunkGenerator extends ChunkGenerator {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getHeight(int x, int z, Heightmap.Type heightmapType) {
|
||||
public int getHeight(int x, int z, Heightmap.Type heightmapType, HeightLimitView heightLimitView) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VerticalBlockSample getColumnSample(int x, int z) {
|
||||
public VerticalBlockSample getColumnSample(int x, int z, HeightLimitView heightLimitView) {
|
||||
return new VerticalBlockSample(0, new BlockState[0]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-resource-loader-v0"
|
||||
version = getSubprojectVersion(project, "0.4.3")
|
||||
version = getSubprojectVersion(project, "0.4.4")
|
||||
|
||||
dependencies {
|
||||
testmodCompile project(path: ':fabric-lifecycle-events-v1', configuration: 'dev')
|
||||
|
|
|
@ -24,6 +24,6 @@ import net.minecraft.resource.ResourcePackSource;
|
|||
|
||||
@Mixin(FileResourcePackProvider.class)
|
||||
public interface FileResourcePackProviderAccessor {
|
||||
@Accessor("field_25345")
|
||||
@Accessor("source")
|
||||
ResourcePackSource getResourcePackSource();
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
archivesBaseName = "fabric-structure-api-v1"
|
||||
version = getSubprojectVersion(project, "1.1.4")
|
||||
version = getSubprojectVersion(project, "1.1.5")
|
||||
|
|
|
@ -35,6 +35,7 @@ import net.minecraft.util.math.ChunkPos;
|
|||
import net.minecraft.util.registry.DynamicRegistryManager;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.Heightmap;
|
||||
import net.minecraft.world.HeightLimitView;
|
||||
import net.minecraft.world.StructureWorldAccess;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
|
@ -80,10 +81,10 @@ public class StructureTest {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void init(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, StructureManager structureManager, int chunkX, int chunkZ, Biome biome, DefaultFeatureConfig featureConfig) {
|
||||
public void init(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, StructureManager manager, int chunkX, int chunkZ, Biome biome, DefaultFeatureConfig config, HeightLimitView heightLimitView) {
|
||||
int blockX = chunkX * 16;
|
||||
int blockZ = chunkZ * 16;
|
||||
int blockY = chunkGenerator.getHeight(blockX, blockZ, Heightmap.Type.WORLD_SURFACE_WG);
|
||||
int blockY = chunkGenerator.getHeight(blockX, blockZ, Heightmap.Type.WORLD_SURFACE_WG, heightLimitView);
|
||||
|
||||
TestStructureGenerator generator = new TestStructureGenerator(random, blockX, blockY, blockZ);
|
||||
this.children.add(generator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue