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(ChunkGeneratorStructureState p_256635_, int p_255959_, int p_256065_)
    • applyAdditionalChunkRestrictions

      public boolean applyAdditionalChunkRestrictions(int p_321784_, int p_321723_, long p_321834_)
    • applyInteractionsWithOtherStructures

      public boolean applyInteractionsWithOtherStructures(ChunkGeneratorStructureState p_321651_, int p_321696_, int p_321521_)
    • isPlacementChunk

      protected abstract boolean isPlacementChunk(ChunkGeneratorStructureState p_256034_, 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_)