Class RandomSpreadStructurePlacement
java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacement
net.minecraft.world.gen.chunk.placement.RandomSpreadStructurePlacement
- Mappings:
Namespace Name official dlw
intermediary net/minecraft/class_6872
named net/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.gen.chunk.placement.StructurePlacement
StructurePlacement.ExclusionZone, StructurePlacement.FrequencyReductionMethod, StructurePlacement.GenerationPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomSpreadStructurePlacement>
private final int
private final int
private final SpreadType
Fields inherited from class net.minecraft.world.gen.chunk.placement.StructurePlacement
TYPE_CODEC
-
Constructor Summary
ConstructorDescriptionRandomSpreadStructurePlacement
(int spacing, int separation, SpreadType spreadType, int salt) RandomSpreadStructurePlacement
(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, SpreadType spreadType) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getStartChunk
(long seed, int chunkX, int chunkZ) getType()
protected boolean
isStartChunk
(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ) Methods inherited from class net.minecraft.world.gen.chunk.placement.StructurePlacement
getExclusionZone, getFrequency, getFrequencyReductionMethod, getLocateOffset, getLocatePos, getSalt, method_41637, shouldGenerate
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldlw;a:Lcom/mojang/serialization/Codec;
intermediary field_36420
Lnet/minecraft/class_6872;field_36420:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;CODEC:Lcom/mojang/serialization/Codec;
-
spacing
private final int spacing- Mappings:
Namespace Name Mixin selector official c
Ldlw;c:I
intermediary field_37772
Lnet/minecraft/class_6872;field_37772:I
named spacing
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;spacing:I
-
separation
private final int separation- Mappings:
Namespace Name Mixin selector official d
Ldlw;d:I
intermediary field_37773
Lnet/minecraft/class_6872;field_37773:I
named separation
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;separation:I
-
spreadType
- Mappings:
Namespace Name Mixin selector official e
Ldlw;e:Ldlx;
intermediary field_37774
Lnet/minecraft/class_6872;field_37774:Lnet/minecraft/class_6873;
named spreadType
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;spreadType:Lnet/minecraft/world/gen/chunk/placement/SpreadType;
-
-
Constructor Details
-
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, SpreadType spreadType) - Mappings:
Namespace Name Mixin selector official <init>
Ldlw;<init>(Lhs;Ldly$c;FILjava/util/Optional;IILdlx;)V
intermediary <init>
Lnet/minecraft/class_6872;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_6874$class_7154;FILjava/util/Optional;IILnet/minecraft/class_6873;)V
named <init>
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;<init>(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;FILjava/util/Optional;IILnet/minecraft/world/gen/chunk/placement/SpreadType;)V
-
RandomSpreadStructurePlacement
- Mappings:
Namespace Name Mixin selector official <init>
Ldlw;<init>(IILdlx;I)V
intermediary <init>
Lnet/minecraft/class_6872;<init>(IILnet/minecraft/class_6873;I)V
named <init>
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;<init>(IILnet/minecraft/world/gen/chunk/placement/SpreadType;I)V
-
-
Method Details
-
getSpacing
public int getSpacing()- Mappings:
Namespace Name Mixin selector official a
Ldlw;a()I
intermediary method_41632
Lnet/minecraft/class_6872;method_41632()I
named getSpacing
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;getSpacing()I
-
getSeparation
public int getSeparation()- Mappings:
Namespace Name Mixin selector official b
Ldlw;b()I
intermediary method_41633
Lnet/minecraft/class_6872;method_41633()I
named getSeparation
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;getSeparation()I
-
getSpreadType
- Mappings:
Namespace Name Mixin selector official c
Ldlw;c()Ldlx;
intermediary method_41634
Lnet/minecraft/class_6872;method_41634()Lnet/minecraft/class_6873;
named getSpreadType
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;getSpreadType()Lnet/minecraft/world/gen/chunk/placement/SpreadType;
-
getStartChunk
- Mappings:
Namespace Name Mixin selector official a
Ldlw;a(JII)Lcge;
intermediary method_40169
Lnet/minecraft/class_6872;method_40169(JII)Lnet/minecraft/class_1923;
named getStartChunk
Lnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;getStartChunk(JII)Lnet/minecraft/util/math/ChunkPos;
-
isStartChunk
protected boolean isStartChunk(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ) - Specified by:
isStartChunk
in classStructurePlacement
- Mappings:
Namespace Name Mixin selector official a
Ldly;a(Lcxk;Ldbf;JII)Z
intermediary method_40168
Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;JII)Z
named isStartChunk
Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;JII)Z
-
getType
- Specified by:
getType
in classStructurePlacement
- Mappings:
Namespace Name Mixin selector official e
Ldly;e()Ldlz;
intermediary method_40166
Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;
named getType
Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getType()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementType;
-