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

public abstract class StructurePlacement

eok
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
net.minecraft.class_6874
net.minecraft.world.gen.chunk.placement.StructurePlacement
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
private static final int
a
HIGHLY_ARBITRARY_RANDOM_SALT
field_37775
ARBITRARY_SALT
private final Vec3i
c
locateOffset
field_37776
locateOffset
private final StructurePlacement$FrequencyReductionMethod
d
frequencyReductionMethod
field_37777
frequencyReductionMethod
private final float
e
frequency
field_37778
frequency
private final int
f
salt
field_37779
salt
private final Optional<StructurePlacement$ExclusionZone>
g
exclusionZone
field_37780
exclusionZone

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)
protected Vec3i
f()
locateOffset()
method_41642()
getLocateOffset()
protected StructurePlacement$FrequencyReductionMethod
g()
frequencyReductionMethod()
method_41643()
getFrequencyReductionMethod()
protected float
h()
frequency()
method_41644()
getFrequency()
protected int
i()
salt()
method_41645()
getSalt()
protected Optional<StructurePlacement$ExclusionZone>
j()
exclusionZone()
method_41646()
getExclusionZone()
public boolean
b(dyv 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)
public boolean
a(int arg0, int arg1, long arg2)
applyAdditionalChunkRestrictions(int arg0, int arg1, long arg2)
method_56575(int arg0, int arg1, long arg2)
applyFrequencyReduction(int chunkX, int chunkZ, long seed)
public boolean
c(dyv arg0, int arg1, int arg2)
applyInteractionsWithOtherStructures(ChunkGeneratorStructureState arg0, int arg1, int arg2)
method_56576(class_7869 arg0, int arg1, int arg2)
applyExclusionZone(StructurePlacementCalculator calculator, int centerChunkX, int centerChunkZ)
protected abstract boolean
a(dyv 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)
public BlockPos
a(dfp arg0)
getLocatePos(ChunkPos arg0)
method_41636(class_1923 arg0)
getLocatePos(ChunkPos chunkPos)
public abstract StructurePlacementType<?>
e()
type()
method_40166()
getType()
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)
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)
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)
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)