Random reformatings
This commit is contained in:
parent
5dd658c2c5
commit
5fdf5299c5
3 changed files with 8 additions and 8 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.resources.ResourceKey;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.util.KeyDispatchDataCodec;
|
import net.minecraft.util.KeyDispatchDataCodec;
|
||||||
import net.minecraft.world.level.biome.Biome;
|
import net.minecraft.world.level.biome.Biome;
|
||||||
|
import net.minecraft.world.level.biome.Biomes;
|
||||||
import net.minecraft.world.level.biome.Climate;
|
import net.minecraft.world.level.biome.Climate;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
|
@ -60,7 +60,7 @@ public abstract class BCLStructure<S extends Structure> {
|
||||||
ResourceKey.create(Registries.STRUCTURE_SET, id),
|
ResourceKey.create(Registries.STRUCTURE_SET, id),
|
||||||
step,
|
step,
|
||||||
placement,
|
placement,
|
||||||
codec,
|
//codec,
|
||||||
biomeTag,
|
biomeTag,
|
||||||
BCLStructure.registerStructureType(id, codec)
|
BCLStructure.registerStructureType(id, codec)
|
||||||
);
|
);
|
||||||
|
@ -94,7 +94,7 @@ public abstract class BCLStructure<S extends Structure> {
|
||||||
this.structureSetKey,
|
this.structureSetKey,
|
||||||
this.featureStep,
|
this.featureStep,
|
||||||
this.spreadConfig,
|
this.spreadConfig,
|
||||||
this.STRUCTURE_CODEC,
|
//this.STRUCTURE_CODEC,
|
||||||
this.biomeTag,
|
this.biomeTag,
|
||||||
this.structureType,
|
this.structureType,
|
||||||
baseStructure,
|
baseStructure,
|
||||||
|
@ -114,13 +114,13 @@ public abstract class BCLStructure<S extends Structure> {
|
||||||
@NotNull ResourceKey<StructureSet> structureSetKey,
|
@NotNull ResourceKey<StructureSet> structureSetKey,
|
||||||
@NotNull GenerationStep.Decoration featureStep,
|
@NotNull GenerationStep.Decoration featureStep,
|
||||||
@NotNull StructurePlacement placement,
|
@NotNull StructurePlacement placement,
|
||||||
@NotNull Codec<S> codec,
|
//@NotNull Codec<S> codec,
|
||||||
@NotNull TagKey<Biome> biomeTag,
|
@NotNull TagKey<Biome> biomeTag,
|
||||||
@NotNull StructureType<S> structureType,
|
@NotNull StructureType<S> structureType,
|
||||||
@NotNull S baseStructure,
|
@NotNull S baseStructure,
|
||||||
@NotNull Holder<Structure> structure
|
@NotNull Holder<Structure> structure
|
||||||
) {
|
) {
|
||||||
super(id, structureKey, structureSetKey, featureStep, placement, codec, biomeTag, structureType);
|
super(id, structureKey, structureSetKey, featureStep, placement, /**codec,**/biomeTag, structureType);
|
||||||
|
|
||||||
this.baseStructure = baseStructure;
|
this.baseStructure = baseStructure;
|
||||||
this.structure = structure;
|
this.structure = structure;
|
||||||
|
@ -147,7 +147,7 @@ public abstract class BCLStructure<S extends Structure> {
|
||||||
|
|
||||||
public final StructureType<S> structureType;
|
public final StructureType<S> structureType;
|
||||||
|
|
||||||
public final Codec<S> STRUCTURE_CODEC;
|
//public final Codec<S> STRUCTURE_CODEC;
|
||||||
|
|
||||||
private static HolderSet<Biome> biomes(BootstapContext<Structure> bootstrapContext, TagKey<Biome> tagKey) {
|
private static HolderSet<Biome> biomes(BootstapContext<Structure> bootstrapContext, TagKey<Biome> tagKey) {
|
||||||
return bootstrapContext.lookup(Registries.BIOME).getOrThrow(tagKey);
|
return bootstrapContext.lookup(Registries.BIOME).getOrThrow(tagKey);
|
||||||
|
@ -190,13 +190,13 @@ public abstract class BCLStructure<S extends Structure> {
|
||||||
@NotNull ResourceKey<StructureSet> structureSetKey,
|
@NotNull ResourceKey<StructureSet> structureSetKey,
|
||||||
@NotNull GenerationStep.Decoration step,
|
@NotNull GenerationStep.Decoration step,
|
||||||
@NotNull StructurePlacement placement,
|
@NotNull StructurePlacement placement,
|
||||||
@NotNull Codec<S> codec,
|
//@NotNull Codec<S> codec,
|
||||||
@NotNull TagKey<Biome> biomeTag,
|
@NotNull TagKey<Biome> biomeTag,
|
||||||
@NotNull StructureType<S> structureType
|
@NotNull StructureType<S> structureType
|
||||||
) {
|
) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.featureStep = step;
|
this.featureStep = step;
|
||||||
this.STRUCTURE_CODEC = codec;
|
//this.STRUCTURE_CODEC = codec;
|
||||||
this.spreadConfig = placement;
|
this.spreadConfig = placement;
|
||||||
this.structureKey = structureKey;
|
this.structureKey = structureKey;
|
||||||
this.structureSetKey = structureSetKey;
|
this.structureSetKey = structureSetKey;
|
||||||
|
|
|
@ -17,5 +17,4 @@ public class WorldStem_Mixin {
|
||||||
LayeredRegistryAccess<RegistryLayer> rNew = WorldBootstrap.enforceInLayeredRegistry(registries);
|
LayeredRegistryAccess<RegistryLayer> rNew = WorldBootstrap.enforceInLayeredRegistry(registries);
|
||||||
return rNew;
|
return rNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue