Package net.minecraft.world.level
Class StructureManager
java.lang.Object
net.minecraft.world.level.StructureManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LevelAccessorprivate final StructureCheckprivate final WorldOptions -
Constructor Summary
ConstructorsConstructorDescriptionStructureManager(LevelAccessor pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReference(StructureStart pStructureStart) voidaddReferenceForStructure(SectionPos pSectionPos, Structure pStructure, long pReference, StructureAccess pStructureAccess) checkStructurePresence(ChunkPos pChunkPos, Structure pStructure, StructurePlacement pPlacement, boolean pSkipKnownStructures) voidfillStartsForStructure(Structure pStructure, it.unimi.dsi.fastutil.longs.LongSet pStructureRefs, Consumer<StructureStart> pStartConsumer) forWorldGenRegion(WorldGenRegion pRegion) getAllStructuresAt(BlockPos pPos) getStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureAccess pStructureAccess) getStructureAt(BlockPos pPos, Structure pStructure) getStructureWithPieceAt(BlockPos pPos, Predicate<Holder<Structure>> pPredicate) getStructureWithPieceAt(BlockPos pPos, HolderSet<Structure> pStructures) getStructureWithPieceAt(BlockPos pPos, TagKey<Structure> pStructureTag) getStructureWithPieceAt(BlockPos pPos, Structure pStructure) booleanhasAnyStructureAt(BlockPos pPos) voidsetStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureStart pStructureStart, StructureAccess pStructureAccess) booleanstartsForStructure(SectionPos pSectionPos, Structure pStructure) startsForStructure(ChunkPos pChunkPos, Predicate<Structure> pStructurePredicate) booleanstructureHasPieceAt(BlockPos pPos, StructureStart pStructureStart)
-
Field Details
-
level
-
worldOptions
-
structureCheck
-
-
Constructor Details
-
StructureManager
public StructureManager(LevelAccessor pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck)
-
-
Method Details
-
forWorldGenRegion
-
startsForStructure
public List<StructureStart> startsForStructure(ChunkPos pChunkPos, Predicate<Structure> pStructurePredicate) -
startsForStructure
-
fillStartsForStructure
public void fillStartsForStructure(Structure pStructure, it.unimi.dsi.fastutil.longs.LongSet pStructureRefs, Consumer<StructureStart> pStartConsumer) -
getStartForStructure
@Nullable public StructureStart getStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureAccess pStructureAccess) -
setStartForStructure
public void setStartForStructure(SectionPos pSectionPos, Structure pStructure, StructureStart pStructureStart, StructureAccess pStructureAccess) -
addReferenceForStructure
public void addReferenceForStructure(SectionPos pSectionPos, Structure pStructure, long pReference, StructureAccess pStructureAccess) -
shouldGenerateStructures
public boolean shouldGenerateStructures() -
getStructureAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
-
getStructureWithPieceAt
public StructureStart getStructureWithPieceAt(BlockPos pPos, Predicate<Holder<Structure>> pPredicate) -
getStructureWithPieceAt
-
structureHasPieceAt
-
hasAnyStructureAt
-
getAllStructuresAt
-
checkStructurePresence
public StructureCheckResult checkStructurePresence(ChunkPos pChunkPos, Structure pStructure, StructurePlacement pPlacement, boolean pSkipKnownStructures) -
addReference
-
registryAccess
-