Uses of Class
net.minecraft.world.gen.feature.StructureFeature
Package
Description
-
Uses of StructureFeature in net.minecraft.client.gui.screen
Modifier and TypeMethodDescriptionprivate static void
PresetsScreen.addPreset
(Text presetName, ItemConvertible icon, RegistryKey<Biome> presetBiome, List<StructureFeature<?>> structures, boolean generateStronghold, boolean generateFeatures, boolean generateLakes, FlatChunkGeneratorLayer[] layers) -
Uses of StructureFeature in net.minecraft.loot.function
Modifier and TypeFieldDescriptionstatic final StructureFeature<?>
ExplorationMapLootFunction.DEFAULT_DESTINATION
private StructureFeature<?>
ExplorationMapLootFunction.Builder.destination
(package private) final StructureFeature<?>
ExplorationMapLootFunction.destination
Modifier and TypeMethodDescriptionprivate static StructureFeature<?>
ExplorationMapLootFunction.Serializer.getDestination
(JsonObject json) Modifier and TypeMethodDescriptionExplorationMapLootFunction.Builder.withDestination
(StructureFeature<?> destination) ModifierConstructorDescription(package private)
ExplorationMapLootFunction
(LootCondition[] conditions, StructureFeature<?> destination, MapIcon.Type decoration, byte zoom, int searchRadius, boolean skipExistingChunks) -
Uses of StructureFeature in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate @Nullable StructureFeature<?>
LocationPredicate.Builder.feature
private final @Nullable StructureFeature<?>
LocationPredicate.feature
Modifier and TypeMethodDescriptionLocationPredicate.Builder.feature
(@Nullable StructureFeature<?> feature) static LocationPredicate
LocationPredicate.feature
(StructureFeature<?> feature) ModifierConstructorDescriptionLocationPredicate
(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, @Nullable RegistryKey<Biome> biome, @Nullable StructureFeature<?> feature, @Nullable RegistryKey<World> dimension, @Nullable Boolean smokey, LightPredicate light, BlockPredicate block, FluidPredicate fluid) -
Uses of StructureFeature in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
LocateCommand.execute
(ServerCommandSource source, StructureFeature<?> structure) -
Uses of StructureFeature in net.minecraft.server.world
Modifier and TypeMethodDescriptionList<? extends StructureStart<?>>
ServerWorld.getStructures
(ChunkSectionPos pos, StructureFeature<?> feature) ServerWorld.locateStructure
(StructureFeature<?> feature, BlockPos pos, int radius, boolean skipExistingChunks) -
Uses of StructureFeature in net.minecraft.structure
ModifierConstructorDescriptionStructureStart
(StructureFeature<C> feature, ChunkPos pos, int references, StructurePiecesList children) -
Uses of StructureFeature in net.minecraft.util.registry
Modifier and TypeFieldDescriptionstatic final Registry<StructureFeature<?>>
Registry.STRUCTURE_FEATURE
static final RegistryKey<Registry<StructureFeature<?>>>
Registry.STRUCTURE_FEATURE_KEY
-
Uses of StructureFeature in net.minecraft.village
Modifier and TypeFieldDescriptionprivate final StructureFeature<?>
TradeOffers.SellMapFactory.structure
ModifierConstructorDescriptionSellMapFactory
(int price, StructureFeature<?> feature, MapIcon.Type iconType, int maxUses, int experience) -
Uses of StructureFeature in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Long2ObjectMap<Object2IntMap<StructureFeature<?>>>
StructureLocator.cachedFeaturesByChunkPos
private final Map<StructureFeature<?>,
Long2BooleanMap> StructureLocator.generationPossibilityByFeature
Modifier and TypeMethodDescription<F extends StructureFeature<?>>
StructurePresenceStructureLocator.getStructurePresence
(ChunkPos pos, F feature, boolean skipExistingChunk) private <FC extends FeatureConfig,
F extends StructureFeature<FC>>
booleanStructureLocator.isGenerationPossible
(ChunkPos pos, ConfiguredStructureFeature<FC, F> feature, Collection<RegistryKey<Biome>> allowedBiomes) Returns whetherfeature
is able to generate inpos
.Modifier and TypeMethodDescriptionprivate @Nullable Object2IntMap<StructureFeature<?>>
StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) private static Object2IntMap<StructureFeature<?>>
StructureLocator.createMapIfEmpty
(Object2IntMap<StructureFeature<?>> map) StructureHolder.getStructureReferences()
private static Map<StructureFeature<?>,
LongSet> ChunkSerializer.readStructureReferences
(ChunkPos pos, NbtCompound nbt) private static Map<StructureFeature<?>,
StructureStart<?>> ChunkSerializer.readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) Modifier and TypeMethodDescriptionvoid
StructureHolder.addStructureReference
(StructureFeature<?> structure, long reference) private StructurePresence
StructureLocator.getStructurePresence
(Object2IntMap<StructureFeature<?>> referencesByStructure, StructureFeature<?> feature, boolean skipExistingChunk) private @Nullable StructurePresence
StructureLocator.getStructurePresence
(ChunkPos pos, StructureFeature<?> feature, boolean skipExistingChunk, long posLong) StructureHolder.getStructureReferences
(StructureFeature<?> structure) List<? extends StructureStart<?>>
ChunkRegion.getStructures
(ChunkSectionPos pos, StructureFeature<?> feature) List<? extends StructureStart<?>>
StructureWorldAccess.getStructures
(ChunkSectionPos pos, StructureFeature<?> feature) StructureHolder.getStructureStart
(StructureFeature<?> structure) void
StructureLocator.incrementReferences
(ChunkPos pos, StructureFeature<?> feature) void
StructureHolder.setStructureStart
(StructureFeature<?> structure, StructureStart<?> start) Modifier and TypeMethodDescriptionprivate void
StructureLocator.cache
(long pos, Object2IntMap<StructureFeature<?>> referencesByStructure) void
StructureLocator.cache
(ChunkPos pos, Map<StructureFeature<?>, StructureStart<?>> structureStarts) private static Object2IntMap<StructureFeature<?>>
StructureLocator.createMapIfEmpty
(Object2IntMap<StructureFeature<?>> map) private StructurePresence
StructureLocator.getStructurePresence
(Object2IntMap<StructureFeature<?>> referencesByStructure, StructureFeature<?> feature, boolean skipExistingChunk) void
StructureHolder.setStructureReferences
(Map<StructureFeature<?>, LongSet> structureReferences) private static NbtCompound
ChunkSerializer.writeStructures
(StructureContext context, ChunkPos pos, Map<StructureFeature<?>, StructureStart<?>> starts, Map<StructureFeature<?>, LongSet> references) -
Uses of StructureFeature in net.minecraft.world.chunk
Modifier and TypeFieldDescriptionprivate final Map<StructureFeature<?>,
LongSet> Chunk.structureReferences
private final Map<StructureFeature<?>,
StructureStart<?>> Chunk.structureStarts
Modifier and TypeMethodDescriptionChunk.getStructureReferences()
ReadOnlyChunk.getStructureReferences()
Map<StructureFeature<?>,
StructureStart<?>> Chunk.getStructureStarts()
Map<StructureFeature<?>,
StructureStart<?>> ReadOnlyChunk.getStructureStarts()
Modifier and TypeMethodDescriptionvoid
Chunk.addStructureReference
(StructureFeature<?> structure, long reference) void
ReadOnlyChunk.addStructureReference
(StructureFeature<?> structure, long reference) Chunk.getStructureReferences
(StructureFeature<?> structure) ReadOnlyChunk.getStructureReferences
(StructureFeature<?> structure) Chunk.getStructureStart
(StructureFeature<?> structure) ReadOnlyChunk.getStructureStart
(StructureFeature<?> structure) void
Chunk.setStructureStart
(StructureFeature<?> structure, StructureStart<?> start) void
ProtoChunk.setStructureStart
(StructureFeature<?> structure, StructureStart<?> start) void
ReadOnlyChunk.setStructureStart
(StructureFeature<?> structure, StructureStart<?> start) Modifier and TypeMethodDescriptionvoid
Chunk.setStructureReferences
(Map<StructureFeature<?>, LongSet> structureReferences) void
ReadOnlyChunk.setStructureReferences
(Map<StructureFeature<?>, LongSet> structureReferences) void
Chunk.setStructureStarts
(Map<StructureFeature<?>, StructureStart<?>> structureStarts) void
ReadOnlyChunk.setStructureStarts
(Map<StructureFeature<?>, StructureStart<?>> structureStarts) -
Uses of StructureFeature in net.minecraft.world.gen
Modifier and TypeMethodDescriptionvoid
StructureAccessor.addStructureReference
(ChunkSectionPos pos, StructureFeature<?> feature, long reference, StructureHolder holder) StructureAccessor.getStructureAt
(BlockPos pos, StructureFeature<?> structure) StructureAccessor.getStructureContaining
(BlockPos pos, StructureFeature<?> structure) Returns a structure that contains the givenpos
.StructureAccessor.getStructurePresence
(ChunkPos chunkPos, StructureFeature<?> structure, boolean skipExistingChunk) StructureAccessor.getStructureStart
(ChunkSectionPos pos, StructureFeature<?> feature, StructureHolder holder) List<? extends StructureStart<?>>
StructureAccessor.getStructureStarts
(ChunkSectionPos sectionPos, StructureFeature<?> feature) Returns a list of structure starts for this chunk.void
StructureAccessor.setStructureStart
(ChunkSectionPos pos, StructureFeature<?> feature, StructureStart<?> structureStart, StructureHolder holder) -
Uses of StructureFeature in net.minecraft.world.gen.chunk
Modifier and TypeFieldDescriptionprivate final ImmutableMap<StructureFeature<?>,
ImmutableMultimap<ConfiguredStructureFeature<?, ?>, RegistryKey<Biome>>> StructuresConfig.configuredStructures
static final ImmutableMap<StructureFeature<?>,
StructureConfig> StructuresConfig.DEFAULT_STRUCTURES
Default placement settings for each known structure type.private final Map<StructureFeature<?>,
StructureConfig> StructuresConfig.structures
Modifier and TypeMethodDescriptionStructuresConfig.getConfiguredStructureFeature
(StructureFeature<?> feature) StructuresConfig.getForType
(StructureFeature<?> structureType) Gets the placement configuration for a specific structure type, or a default placement if placement for the structure was not explicitly configured.private static int
ChunkGenerator.getStructureReferences
(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, StructureFeature<?> structureFeature) ChunkGenerator.locateStructure
(ServerWorld world, StructureFeature<?> structureFeature, BlockPos center, int radius, boolean skipExistingChunks) Tries to find the closest structure of a given type near a given block.ModifierConstructorDescriptionprivate
StructuresConfig
(Map<StructureFeature<?>, StructureConfig> structures, @Nullable StrongholdConfig stronghold) StructuresConfig
(Optional<StrongholdConfig> stronghold, Map<StructureFeature<?>, StructureConfig> structures) -
Uses of StructureFeature in net.minecraft.world.gen.feature
Modifier and TypeClassDescriptionclass
ConfiguredStructureFeature<FC extends FeatureConfig,
F extends StructureFeature<FC>> Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
MarginedStructureFeature<C extends FeatureConfig>
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionstatic final StructureFeature<StructurePoolFeatureConfig>
StructureFeature.BASTION_REMNANT
static final StructureFeature<ProbabilityConfig>
StructureFeature.BURIED_TREASURE
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.DESERT_PYRAMID
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.END_CITY
final F
ConfiguredStructureFeature.feature
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.FORTRESS
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.IGLOO
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.JUNGLE_PYRAMID
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.MANSION
static final StructureFeature<MineshaftFeatureConfig>
StructureFeature.MINESHAFT
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.MONUMENT
static final StructureFeature<RangeDecoratorConfig>
StructureFeature.NETHER_FOSSIL
static final StructureFeature<OceanRuinFeatureConfig>
StructureFeature.OCEAN_RUIN
static final StructureFeature<StructurePoolFeatureConfig>
StructureFeature.PILLAGER_OUTPOST
static final StructureFeature<RuinedPortalFeatureConfig>
StructureFeature.RUINED_PORTAL
static final StructureFeature<ShipwreckFeatureConfig>
StructureFeature.SHIPWRECK
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.STRONGHOLD
static final StructureFeature<DefaultFeatureConfig>
StructureFeature.SWAMP_HUT
static final StructureFeature<StructurePoolFeatureConfig>
StructureFeature.VILLAGE
Modifier and TypeFieldDescriptionprivate static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.BASTION_REMNANT
private static final ConfiguredStructureFeature<ProbabilityConfig,
? extends StructureFeature<ProbabilityConfig>> ConfiguredStructureFeatures.BURIED_TREASURE
private final com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> StructureFeature.codec
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.DESERT_PYRAMID
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.END_CITY
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.FORTRESS
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.IGLOO
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.JUNGLE_PYRAMID
static final List<StructureFeature<?>>
StructureFeature.LAND_MODIFYING_STRUCTURES
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.MANSION
private static final ConfiguredStructureFeature<MineshaftFeatureConfig,
? extends StructureFeature<MineshaftFeatureConfig>> ConfiguredStructureFeatures.MINESHAFT
private static final ConfiguredStructureFeature<MineshaftFeatureConfig,
? extends StructureFeature<MineshaftFeatureConfig>> ConfiguredStructureFeatures.MINESHAFT_MESA
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.MONUMENT
private static final ConfiguredStructureFeature<RangeDecoratorConfig,
? extends StructureFeature<RangeDecoratorConfig>> ConfiguredStructureFeatures.NETHER_FOSSIL
private static final ConfiguredStructureFeature<OceanRuinFeatureConfig,
? extends StructureFeature<OceanRuinFeatureConfig>> ConfiguredStructureFeatures.OCEAN_RUIN_COLD
private static final ConfiguredStructureFeature<OceanRuinFeatureConfig,
? extends StructureFeature<OceanRuinFeatureConfig>> ConfiguredStructureFeatures.OCEAN_RUIN_WARM
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.PILLAGER_OUTPOST
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_DESERT
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_JUNGLE
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_MOUNTAIN
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_NETHER
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_OCEAN
private static final ConfiguredStructureFeature<RuinedPortalFeatureConfig,
? extends StructureFeature<RuinedPortalFeatureConfig>> ConfiguredStructureFeatures.RUINED_PORTAL_SWAMP
private static final ConfiguredStructureFeature<ShipwreckFeatureConfig,
? extends StructureFeature<ShipwreckFeatureConfig>> ConfiguredStructureFeatures.SHIPWRECK
private static final ConfiguredStructureFeature<ShipwreckFeatureConfig,
? extends StructureFeature<ShipwreckFeatureConfig>> ConfiguredStructureFeatures.SHIPWRECK_BEACHED
static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.STRONGHOLD
private static final Map<StructureFeature<?>,
GenerationStep.Feature> StructureFeature.STRUCTURE_TO_GENERATION_STEP
static final BiMap<String,
StructureFeature<?>> StructureFeature.STRUCTURES
private static final ConfiguredStructureFeature<DefaultFeatureConfig,
? extends StructureFeature<DefaultFeatureConfig>> ConfiguredStructureFeatures.SWAMP_HUT
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.VILLAGE_DESERT
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.VILLAGE_PLAINS
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.VILLAGE_SAVANNA
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.VILLAGE_SNOWY
private static final ConfiguredStructureFeature<StructurePoolFeatureConfig,
? extends StructureFeature<StructurePoolFeatureConfig>> ConfiguredStructureFeatures.VILLAGE_TAIGA
Modifier and TypeMethodDescriptionprivate static <FC extends FeatureConfig,
F extends StructureFeature<FC>>
ConfiguredStructureFeature<FC,F> ConfiguredStructureFeatures.register
(String id, ConfiguredStructureFeature<FC, F> configuredStructureFeature) private static <F extends StructureFeature<?>>
FStructureFeature.register
(String name, F structureFeature, GenerationStep.Feature step) Modifier and TypeMethodDescriptionConfiguredStructureFeature<C,
? extends StructureFeature<C>> com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> StructureFeature.getCodec()