Class StructurePlacement

java.lang.Object
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
Direct Known Subclasses:
ConcentricRingsStructurePlacement, RandomSpreadStructurePlacement

public abstract class StructurePlacement extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • placementCodec

      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>> placementCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> p_227042_)
    • locateOffset

      protected Vec3i locateOffset()
    • frequencyReductionMethod

      protected StructurePlacement.FrequencyReductionMethod frequencyReductionMethod()
    • frequency

      protected float frequency()
    • salt

      protected int salt()
    • exclusionZone

      protected Optional<StructurePlacement.ExclusionZone> exclusionZone()
    • isStructureChunk

      public boolean isStructureChunk(ChunkGenerator p_227055_, RandomState p_227056_, long p_227057_, int p_227058_, int p_227059_)
    • isPlacementChunk

      protected abstract boolean isPlacementChunk(ChunkGenerator p_227043_, RandomState p_227044_, long p_227045_, int p_227046_, int p_227047_)
    • getLocatePos

      public BlockPos getLocatePos(ChunkPos p_227040_)
    • type

      public abstract StructurePlacementType<?> type()
    • probabilityReducer

      private static boolean probabilityReducer(long p_227034_, int p_227035_, int p_227036_, int p_227037_, float p_227038_)
    • legacyProbabilityReducerWithDouble

      private static boolean legacyProbabilityReducerWithDouble(long p_227049_, int p_227050_, int p_227051_, int p_227052_, float p_227053_)
    • legacyArbitrarySaltProbabilityReducer

      private static boolean legacyArbitrarySaltProbabilityReducer(long p_227061_, int p_227062_, int p_227063_, int p_227064_, float p_227065_)
    • legacyPillagerOutpostReducer

      private static boolean legacyPillagerOutpostReducer(long p_227067_, int p_227068_, int p_227069_, int p_227070_, float p_227071_)