mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
1.18.2-pre1
This commit is contained in:
parent
55f15a338f
commit
0ef16df861
3 changed files with 14 additions and 13 deletions
|
@ -17,6 +17,7 @@
|
|||
package net.fabricmc.fabric.test.dimension;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
|
@ -24,6 +25,7 @@ import com.mojang.serialization.Codec;
|
|||
import com.mojang.serialization.codecs.RecordCodecBuilder;
|
||||
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.class_7059;
|
||||
import net.minecraft.util.dynamic.RegistryOps;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
@ -41,20 +43,19 @@ import net.minecraft.world.gen.StructureAccessor;
|
|||
import net.minecraft.world.gen.chunk.Blender;
|
||||
import net.minecraft.world.gen.chunk.ChunkGenerator;
|
||||
import net.minecraft.world.gen.chunk.VerticalBlockSample;
|
||||
import net.minecraft.world.gen.chunk.placement.StructuresConfig;
|
||||
import net.minecraft.world.gen.feature.ConfiguredStructureFeature;
|
||||
|
||||
public class VoidChunkGenerator extends ChunkGenerator {
|
||||
public static final Codec<VoidChunkGenerator> CODEC = RecordCodecBuilder.create(instance ->
|
||||
instance.group(
|
||||
RegistryOps.createRegistryCodec(Registry.CONFIGURED_STRUCTURE_FEATURE_KEY).forGetter(generator -> generator.field_36536),
|
||||
RegistryOps.createRegistryCodec(Registry.BIOME_KEY).forGetter(generator -> generator.biomeRegistry)
|
||||
).apply(instance, instance.stable(VoidChunkGenerator::new)));
|
||||
public static final Codec<VoidChunkGenerator> CODEC = RecordCodecBuilder.create((instance) ->
|
||||
method_41042(instance).and(
|
||||
RegistryOps.createRegistryCodec(Registry.BIOME_KEY).forGetter((generator) -> generator.biomeRegistry)
|
||||
)
|
||||
.apply(instance, instance.stable(VoidChunkGenerator::new))
|
||||
);
|
||||
|
||||
private final Registry<Biome> biomeRegistry;
|
||||
|
||||
public VoidChunkGenerator(Registry<ConfiguredStructureFeature<?, ?>> configuredStructureFeatureRegistry, Registry<Biome> biomeRegistry) {
|
||||
super(configuredStructureFeatureRegistry, new FixedBiomeSource(biomeRegistry.getOrCreateEntry(BiomeKeys.PLAINS)), new StructuresConfig(false));
|
||||
public VoidChunkGenerator(Registry<class_7059> registry, Registry<Biome> biomeRegistry) {
|
||||
super(registry, Optional.empty(), new FixedBiomeSource(biomeRegistry.getOrCreateEntry(BiomeKeys.PLAINS)));
|
||||
this.biomeRegistry = biomeRegistry;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
org.gradle.jvmargs=-Xmx2560M
|
||||
|
||||
version=0.47.2
|
||||
minecraft_version=22w07a
|
||||
version=0.47.3
|
||||
minecraft_version=1.18.2-pre1
|
||||
yarn_version=+build.2
|
||||
loader_version=0.13.2
|
||||
|
||||
|
@ -18,7 +18,7 @@ fabric-containers-v0-version=0.1.20
|
|||
fabric-content-registries-v0-version=2.0.1
|
||||
fabric-crash-report-info-v1-version=0.1.10
|
||||
fabric-data-generation-api-v1-version=2.0.2
|
||||
fabric-dimensions-v1-version=2.1.13
|
||||
fabric-dimensions-v1-version=2.1.14
|
||||
fabric-entity-events-v1-version=1.4.7
|
||||
fabric-events-interaction-v0-version=0.4.18
|
||||
fabric-events-lifecycle-v0-version=0.2.10
|
||||
|
|
|
@ -52,6 +52,6 @@ include 'fabric-resource-conditions-api-v1'
|
|||
include 'fabric-resource-loader-v0'
|
||||
include 'fabric-screen-api-v1'
|
||||
include 'fabric-screen-handler-api-v1'
|
||||
include 'fabric-structure-api-v1'
|
||||
//include 'fabric-structure-api-v1'
|
||||
include 'fabric-textures-v0'
|
||||
include 'fabric-transfer-api-v1'
|
||||
|
|
Loading…
Reference in a new issue