net.minecraft.world.level.levelgen.structure.placement

public abstract class StructurePlacement

dsm
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
net.minecraft.class_6874
net.minecraft.world.gen.chunk.placement.StructurePlacement
net.minecraft.src.C_203222_
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<StructurePlacement>
b
CODEC
field_36428
TYPE_CODEC
f_205036_
private static final int
a
HIGHLY_ARBITRARY_RANDOM_SALT
field_37775
ARBITRARY_SALT
f_227021_
private final Vec3i
c
locateOffset
field_37776
locateOffset
f_227022_
private final StructurePlacement$FrequencyReductionMethod
d
frequencyReductionMethod
field_37777
frequencyReductionMethod
f_227023_
private final float
e
frequency
field_37778
frequency
f_227024_
private final int
f
salt
field_37779
salt
f_227025_
private final Optional<StructurePlacement$ExclusionZone>
g
exclusionZone
field_37780
exclusionZone
f_227026_

Constructor summary

ModifierConstructor
protected (Vec3i locateOffset, StructurePlacement$FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement$ExclusionZone> exclusionZone)

Method summary

Modifier and TypeMethod
protected static <S extends StructurePlacement> com.mojang.datafixers.Products$P5<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<S>, Vec3i, StructurePlacement$FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement$ExclusionZone>>
a(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
placementCodec(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
method_41637(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
buildCodec(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> instance)
m_227041_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> p_227042_)
protected Vec3i
f()
locateOffset()
method_41642()
getLocateOffset()
m_227072_()
protected StructurePlacement$FrequencyReductionMethod
g()
frequencyReductionMethod()
method_41643()
getFrequencyReductionMethod()
m_227073_()
protected float
h()
frequency()
method_41644()
getFrequency()
m_227074_()
protected int
i()
salt()
method_41645()
getSalt()
m_227075_()
protected Optional<StructurePlacement$ExclusionZone>
j()
exclusionZone()
method_41646()
getExclusionZone()
m_227076_()
public boolean
b(ddp arg0, int arg1, int arg2)
isStructureChunk(ChunkGeneratorStructureState arg0, int arg1, int arg2)
method_41639(class_7869 arg0, int arg1, int arg2)
shouldGenerate(StructurePlacementCalculator calculator, int chunkX, int chunkZ)
m_255071_(C_254614_ p_255959_, int p_256065_, int arg2)
protected abstract boolean
a(ddp arg0, int arg1, int arg2)
isPlacementChunk(ChunkGeneratorStructureState arg0, int arg1, int arg2)
method_40168(class_7869 arg0, int arg1, int arg2)
isStartChunk(StructurePlacementCalculator calculator, int chunkX, int chunkZ)
m_214090_(C_254614_ p_227046_, int p_227047_, int arg2)
public BlockPos
a(clp arg0)
getLocatePos(ChunkPos arg0)
method_41636(class_1923 arg0)
getLocatePos(ChunkPos chunkPos)
m_227039_(C_1560_ arg0)
public abstract StructurePlacementType<?>
e()
type()
method_40166()
getType()
m_203443_()
private static boolean
a(long arg0, int arg1, int arg2, int arg3, float arg4)
probabilityReducer(long arg0, int arg1, int arg2, int arg3, float arg4)
method_41635(long arg0, int arg1, int arg2, int arg3, float arg4)
defaultShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency)
m_227033_(long p_227034_, int p_227036_, int p_227037_, int p_227038_, float arg4)
private static boolean
b(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyProbabilityReducerWithDouble(long arg0, int arg1, int arg2, int arg3, float arg4)
method_41638(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyType3ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency)
m_227048_(long p_227049_, int p_227051_, int p_227052_, int p_227053_, float arg4)
private static boolean
c(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyArbitrarySaltProbabilityReducer(long arg0, int arg1, int arg2, int arg3, float arg4)
method_41640(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyType2ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency)
m_227060_(long p_227061_, int p_227063_, int p_227064_, int p_227065_, float arg4)
private static boolean
d(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyPillagerOutpostReducer(long arg0, int arg1, int arg2, int arg3, float arg4)
method_41641(long arg0, int arg1, int arg2, int arg3, float arg4)
legacyType1ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency)
m_227066_(long p_227067_, int p_227069_, int p_227070_, int p_227071_, float arg4)