Package net.minecraft.world.level
Class StructureFeatureManager
java.lang.Object
net.minecraft.world.level.StructureFeatureManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LevelAccessor
private final StructureCheck
private final WorldGenSettings
-
Constructor Summary
ConstructorDescriptionStructureFeatureManager
(LevelAccessor p_196667_, WorldGenSettings p_196668_, StructureCheck p_196669_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReference
(StructureStart p_196675_) void
addReferenceForFeature
(SectionPos p_207798_, ConfiguredStructureFeature<?, ?> p_207799_, long p_207800_, FeatureAccess p_207801_) checkStructurePresence
(ChunkPos p_207778_, ConfiguredStructureFeature<?, ?> p_207779_, boolean p_207780_) void
fillStartsForFeature
(ConfiguredStructureFeature<?, ?> p_207782_, it.unimi.dsi.fastutil.longs.LongSet p_207783_, Consumer<StructureStart> p_207784_) forWorldGenRegion
(WorldGenRegion p_47273_) Map<ConfiguredStructureFeature<?,
?>, it.unimi.dsi.fastutil.longs.LongSet> getAllStructuresAt
(BlockPos p_207816_) getStartForFeature
(SectionPos p_207803_, ConfiguredStructureFeature<?, ?> p_207804_, FeatureAccess p_207805_) getStructureAt
(BlockPos p_207786_, ConfiguredStructureFeature<?, ?> p_207787_) getStructureWithPieceAt
(BlockPos p_207792_, ResourceKey<ConfiguredStructureFeature<?, ?>> p_207793_) getStructureWithPieceAt
(BlockPos p_207818_, ConfiguredStructureFeature<?, ?> p_207819_) boolean
hasAnyStructureAt
(BlockPos p_186606_) void
setStartForFeature
(SectionPos p_207807_, ConfiguredStructureFeature<?, ?> p_207808_, StructureStart p_207809_, FeatureAccess p_207810_) boolean
startsForFeature
(SectionPos p_207812_, Predicate<ConfiguredStructureFeature<?, ?>> p_207813_) startsForFeature
(SectionPos p_207795_, ConfiguredStructureFeature<?, ?> p_207796_) boolean
structureHasPieceAt
(BlockPos p_207789_, StructureStart p_207790_)
-
Field Details
-
level
-
worldGenSettings
-
structureCheck
-
-
Constructor Details
-
StructureFeatureManager
public StructureFeatureManager(LevelAccessor p_196667_, WorldGenSettings p_196668_, StructureCheck p_196669_)
-
-
Method Details
-
forWorldGenRegion
-
startsForFeature
public List<StructureStart> startsForFeature(SectionPos p_207812_, Predicate<ConfiguredStructureFeature<?, ?>> p_207813_) -
startsForFeature
public List<StructureStart> startsForFeature(SectionPos p_207795_, ConfiguredStructureFeature<?, ?> p_207796_) -
fillStartsForFeature
public void fillStartsForFeature(ConfiguredStructureFeature<?, ?> p_207782_, it.unimi.dsi.fastutil.longs.LongSet p_207783_, Consumer<StructureStart> p_207784_) -
getStartForFeature
@Nullable public StructureStart getStartForFeature(SectionPos p_207803_, ConfiguredStructureFeature<?, ?> p_207804_, FeatureAccess p_207805_) -
setStartForFeature
public void setStartForFeature(SectionPos p_207807_, ConfiguredStructureFeature<?, ?> p_207808_, StructureStart p_207809_, FeatureAccess p_207810_) -
addReferenceForFeature
public void addReferenceForFeature(SectionPos p_207798_, ConfiguredStructureFeature<?, ?> p_207799_, long p_207800_, FeatureAccess p_207801_) -
shouldGenerateFeatures
public boolean shouldGenerateFeatures() -
getStructureAt
-
getStructureWithPieceAt
public StructureStart getStructureWithPieceAt(BlockPos p_207792_, ResourceKey<ConfiguredStructureFeature<?, ?>> p_207793_) -
getStructureWithPieceAt
public StructureStart getStructureWithPieceAt(BlockPos p_207818_, ConfiguredStructureFeature<?, ?> p_207819_) -
structureHasPieceAt
-
hasAnyStructureAt
-
getAllStructuresAt
public Map<ConfiguredStructureFeature<?,?>, getAllStructuresAtit.unimi.dsi.fastutil.longs.LongSet> (BlockPos p_207816_) -
checkStructurePresence
public StructureCheckResult checkStructurePresence(ChunkPos p_207778_, ConfiguredStructureFeature<?, ?> p_207779_, boolean p_207780_) -
addReference
-
registryAccess
-