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

public abstract class StructurePlacement

dly
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)
method_41637(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<S> arg0)
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(cxk arg0, dbf arg1, long arg2, int arg3, int arg4)
isStructureChunk(ChunkGenerator arg0, RandomState arg1, long arg2, int arg3, int arg4)
method_41639(class_2794 arg0, class_7138 arg1, long arg2, int arg3, int arg4)
shouldGenerate(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ)
m_227054_(C_2118_ p_227056_, C_213138_ p_227057_, long p_227058_, int arg3, int arg4)
protected abstract boolean
a(cxk arg0, dbf arg1, long arg2, int arg3, int arg4)
isPlacementChunk(ChunkGenerator arg0, RandomState arg1, long arg2, int arg3, int arg4)
method_40168(class_2794 arg0, class_7138 arg1, long arg2, int arg3, int arg4)
isStartChunk(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ)
m_214090_(C_2118_ p_227044_, C_213138_ p_227045_, long p_227046_, int arg3, int arg4)
public BlockPos
a(cge 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)