Package net.minecraft.world.level
Class StructureManager
java.lang.Object
net.minecraft.world.level.StructureManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LevelAccessor
private final StructureCheck
private final WorldOptions
-
Constructor Summary
ConstructorsConstructorDescriptionStructureManager
(LevelAccessor pLevel, WorldOptions pWorldOptions, StructureCheck pStructureCheck) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReference
(StructureStart pStructureStart) void
addReferenceForStructure
(SectionPos pSectionPos, Structure pStructure, long pReference, StructureAccess pStructureAccess) checkStructurePresence
(ChunkPos pChunkPos, Structure pStructure, StructurePlacement pPlacement, boolean pSkipKnownStructures) void
fillStartsForStructure
(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) boolean
hasAnyStructureAt
(BlockPos pPos) void
setStartForStructure
(SectionPos pSectionPos, Structure pStructure, StructureStart pStructureStart, StructureAccess pStructureAccess) boolean
startsForStructure
(SectionPos pSectionPos, Structure pStructure) startsForStructure
(ChunkPos pChunkPos, Predicate<Structure> pStructurePredicate) boolean
structureHasPieceAt
(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
-