Uses of Class
net.minecraft.world.gen.structure.Structure
Packages that use Structure
Package
Description
-
Uses of Structure in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return types with arguments of type StructureModifier and TypeMethodDescriptionstatic RegistryEntry.Reference
<Structure> RegistryEntryReferenceArgumentType.getStructure
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static RegistryEntry.Reference
<Structure> RegistryKeyArgumentType.getStructureEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of Structure in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type StructureModifier and TypeFieldDescriptionExplorationMapLootFunction.DEFAULT_DESTINATION
ExplorationMapLootFunction.Builder.destination
ExplorationMapLootFunction.destination
Method parameters in net.minecraft.loot.function with type arguments of type StructureModifier and TypeMethodDescriptionExplorationMapLootFunction.Builder.withDestination
(TagKey<Structure> destination) Constructor parameters in net.minecraft.loot.function with type arguments of type StructureModifierConstructorDescription(package private)
ExplorationMapLootFunction
(List<LootCondition> conditions, TagKey<Structure> destination, RegistryEntry<MapDecorationType> decoration, byte zoom, int searchRadius, boolean skipExistingChunks) -
Uses of Structure in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type StructureModifier and TypeFieldDescriptionprivate Optional
<RegistryEntryList<Structure>> LocationPredicate.Builder.feature
private final Optional
<RegistryEntryList<Structure>> LocationPredicate.structures
The field for thestructures
record component.Methods in net.minecraft.predicate.entity that return types with arguments of type StructureModifier and TypeMethodDescriptionLocationPredicate.structures()
Returns the value of thestructures
record component.Method parameters in net.minecraft.predicate.entity with type arguments of type StructureModifier and TypeMethodDescriptionstatic LocationPredicate.Builder
LocationPredicate.Builder.createStructure
(RegistryEntry<Structure> structure) LocationPredicate.Builder.structure
(RegistryEntryList<Structure> structure) -
Uses of Structure in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type StructureModifier and TypeFieldDescriptionstatic final RegistryKey
<Registry<Structure>> RegistryKeys.STRUCTURE
-
Uses of Structure in net.minecraft.registry.tag
Fields in net.minecraft.registry.tag with type parameters of type StructureModifier and TypeFieldDescriptionStructureTags.CATS_SPAWN_AS_BLACK
StructureTags.CATS_SPAWN_IN
StructureTags.DOLPHIN_LOCATED
StructureTags.EYE_OF_ENDER_LOCATED
StructureTags.MINESHAFT
StructureTags.OCEAN_RUIN
StructureTags.ON_DESERT_VILLAGE_MAPS
StructureTags.ON_JUNGLE_EXPLORER_MAPS
StructureTags.ON_OCEAN_EXPLORER_MAPS
StructureTags.ON_PLAINS_VILLAGE_MAPS
StructureTags.ON_SAVANNA_VILLAGE_MAPS
StructureTags.ON_SNOWY_VILLAGE_MAPS
StructureTags.ON_SWAMP_EXPLORER_MAPS
StructureTags.ON_TAIGA_VILLAGE_MAPS
StructureTags.ON_TREASURE_MAPS
StructureTags.ON_TRIAL_CHAMBERS_MAPS
StructureTags.ON_WOODLAND_EXPLORER_MAPS
StructureTags.RUINED_PORTAL
StructureTags.SHIPWRECK
StructureTags.VILLAGE
Methods in net.minecraft.registry.tag that return types with arguments of type Structure -
Uses of Structure in net.minecraft.server.command
Methods in net.minecraft.server.command that return types with arguments of type StructureModifier and TypeMethodDescriptionprivate static Optional
<? extends RegistryEntryList.ListBacked<Structure>> LocateCommand.getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) Method parameters in net.minecraft.server.command with type arguments of type StructureModifier and TypeMethodDescriptionprivate static int
LocateCommand.executeLocateStructure
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate) static int
PlaceCommand.executePlaceStructure
(ServerCommandSource source, RegistryEntry.Reference<Structure> structure, BlockPos pos) private static Optional
<? extends RegistryEntryList.ListBacked<Structure>> LocateCommand.getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) private static Optional
<? extends RegistryEntryList.ListBacked<Structure>> LocateCommand.getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) -
Uses of Structure in net.minecraft.server.world
Method parameters in net.minecraft.server.world with type arguments of type Structure -
Uses of Structure in net.minecraft.structure
Fields in net.minecraft.structure declared as StructureFields in net.minecraft.structure with type parameters of type StructureModifier and TypeFieldDescriptionprivate final RegistryEntry
<Structure> StructureSet.WeightedEntry.structure
The field for thestructure
record component.Methods in net.minecraft.structure that return StructureMethods in net.minecraft.structure that return types with arguments of type StructureModifier and TypeMethodDescriptionStructureSet.WeightedEntry.structure()
Returns the value of thestructure
record component.Method parameters in net.minecraft.structure with type arguments of type StructureModifier and TypeMethodDescriptionstatic StructureSet.WeightedEntry
StructureSet.createEntry
(RegistryEntry<Structure> structure) static StructureSet.WeightedEntry
StructureSet.createEntry
(RegistryEntry<Structure> structure, int weight) Constructors in net.minecraft.structure with parameters of type StructureModifierConstructorDescriptionStructureStart
(Structure structure, ChunkPos pos, int references, StructurePiecesList children) Constructor parameters in net.minecraft.structure with type arguments of type StructureModifierConstructorDescriptionStructureSet
(RegistryEntry<Structure> structure, StructurePlacement placement) WeightedEntry
(RegistryEntry<Structure> registryEntry, int int2) -
Uses of Structure in net.minecraft.util.profiling.jfr
Method parameters in net.minecraft.util.profiling.jfr with type arguments of type StructureModifier and TypeMethodDescriptionFlightProfiler.NoopProfiler.startStructureGenerationProfiling
(ChunkPos chunkPos, RegistryKey<World> world, RegistryEntry<Structure> structure) FlightProfiler.startStructureGenerationProfiling
(ChunkPos chunkPos, RegistryKey<World> world, RegistryEntry<Structure> structure) JfrProfiler.startStructureGenerationProfiling
(ChunkPos chunkPos, RegistryKey<World> world, RegistryEntry<Structure> structure) -
Uses of Structure in net.minecraft.util.profiling.jfr.event
Constructor parameters in net.minecraft.util.profiling.jfr.event with type arguments of type StructureModifierConstructorDescriptionStructureGenerationEvent
(ChunkPos chunkPos, RegistryEntry<Structure> structure, RegistryKey<World> dimension) -
Uses of Structure in net.minecraft.village
Fields in net.minecraft.village with type parameters of type StructureConstructor parameters in net.minecraft.village with type arguments of type StructureModifierConstructorDescriptionSellMapFactory
(int price, TagKey<Structure> structure, String nameKey, RegistryEntry<MapDecorationType> decoration, int maxUses, int experience) -
Uses of Structure in net.minecraft.world
Fields in net.minecraft.world with type parameters of type StructureModifier and TypeFieldDescriptionprivate final Long2ObjectMap
<Object2IntMap<Structure>> StructureLocator.cachedStructuresByChunkPos
private final Map
<Structure, Long2BooleanMap> StructureLocator.generationPossibilityByStructure
Methods in net.minecraft.world that return types with arguments of type StructureModifier and TypeMethodDescriptionprivate @Nullable Object2IntMap
<Structure> StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) private static Object2IntMap
<Structure> StructureLocator.createMapIfEmpty
(Object2IntMap<Structure> map) StructureHolder.getStructureReferences()
Methods in net.minecraft.world with parameters of type StructureModifier and TypeMethodDescriptionvoid
StructureHolder.addStructureReference
(Structure structure, long reference) private StructurePresence
StructureLocator.getStructurePresence
(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) private @Nullable StructurePresence
StructureLocator.getStructurePresence
(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) StructureLocator.getStructurePresence
(ChunkPos pos, Structure type, StructurePlacement placement, boolean skipReferencedStructures) StructureHolder.getStructureReferences
(Structure structure) StructureHolder.getStructureStart
(Structure structure) void
StructureLocator.incrementReferences
(ChunkPos pos, Structure structure) private boolean
StructureLocator.isGenerationPossible
(ChunkPos pos, Structure structure) Returns whetherstructure
is able to generate inpos
.void
StructureHolder.setStructureStart
(Structure structure, StructureStart start) Method parameters in net.minecraft.world with type arguments of type StructureModifier and TypeMethodDescriptionprivate void
StructureLocator.cache
(long pos, Object2IntMap<Structure> referencesByStructure) void
StructureLocator.cache
(ChunkPos pos, Map<Structure, StructureStart> structureStarts) private static Object2IntMap
<Structure> StructureLocator.createMapIfEmpty
(Object2IntMap<Structure> map) private StructurePresence
StructureLocator.getStructurePresence
(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) void
StructureHolder.setStructureReferences
(Map<Structure, LongSet> structureReferences) -
Uses of Structure in net.minecraft.world.chunk
Fields in net.minecraft.world.chunk with type parameters of type StructureModifier and TypeFieldDescriptionChunk.structureReferences
private final Map
<Structure, StructureStart> Chunk.structureStarts
Methods in net.minecraft.world.chunk that return types with arguments of type StructureModifier and TypeMethodDescriptionChunk.getStructureReferences()
WrapperProtoChunk.getStructureReferences()
Chunk.getStructureStarts()
WrapperProtoChunk.getStructureStarts()
SerializedChunk.readStructureReferences
(DynamicRegistryManager registryManager, ChunkPos pos, NbtCompound nbt) private static Map
<Structure, StructureStart> SerializedChunk.readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) Methods in net.minecraft.world.chunk with parameters of type StructureModifier and TypeMethodDescriptionvoid
Chunk.addStructureReference
(Structure structure, long reference) void
WrapperProtoChunk.addStructureReference
(Structure structure, long reference) Chunk.getStructureReferences
(Structure structure) WrapperProtoChunk.getStructureReferences
(Structure structure) Chunk.getStructureStart
(Structure structure) WrapperProtoChunk.getStructureStart
(Structure structure) void
Chunk.setStructureStart
(Structure structure, StructureStart start) void
ProtoChunk.setStructureStart
(Structure structure, StructureStart start) void
WrapperProtoChunk.setStructureStart
(Structure structure, StructureStart start) Method parameters in net.minecraft.world.chunk with type arguments of type StructureModifier and TypeMethodDescriptionvoid
Chunk.setStructureReferences
(Map<Structure, LongSet> structureReferences) void
WrapperProtoChunk.setStructureReferences
(Map<Structure, LongSet> structureReferences) void
Chunk.setStructureStarts
(Map<Structure, StructureStart> structureStarts) void
WrapperProtoChunk.setStructureStarts
(Map<Structure, StructureStart> structureStarts) private static NbtCompound
SerializedChunk.writeStructures
(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references) -
Uses of Structure in net.minecraft.world.gen
Methods in net.minecraft.world.gen that return types with arguments of type StructureMethods in net.minecraft.world.gen with parameters of type StructureModifier and TypeMethodDescriptionvoid
StructureAccessor.acceptStructureStarts
(Structure structure, LongSet structureStartPositions, Consumer<StructureStart> consumer) void
StructureAccessor.addStructureReference
(ChunkSectionPos pos, Structure structure, long reference, StructureHolder holder) StructureAccessor.getStructureAt
(BlockPos pos, Structure structure) StructureAccessor.getStructureContaining
(BlockPos pos, Structure structure) Returns a structure that contains the givenpos
.StructureAccessor.getStructurePresence
(ChunkPos chunkPos, Structure structure, StructurePlacement placement, boolean skipReferencedStructures) StructureAccessor.getStructureStart
(ChunkSectionPos pos, Structure structure, StructureHolder holder) StructureAccessor.getStructureStarts
(ChunkSectionPos sectionPos, Structure structure) Returns a list of structure starts for this chunk.void
StructureAccessor.setStructureStart
(ChunkSectionPos pos, Structure structure, StructureStart structureStart, StructureHolder holder) Method parameters in net.minecraft.world.gen with type arguments of type StructureModifier and TypeMethodDescriptionStructureAccessor.getStructureContaining
(BlockPos pos, Predicate<RegistryEntry<Structure>> predicate) StructureAccessor.getStructureContaining
(BlockPos pos, RegistryEntryList<Structure> structures) StructureAccessor.getStructureContaining
(BlockPos pos, TagKey<Structure> tag) StructureAccessor.getStructureStarts
(ChunkPos pos, Predicate<Structure> predicate) -
Uses of Structure in net.minecraft.world.gen.chunk
Methods in net.minecraft.world.gen.chunk that return types with arguments of type StructureModifier and TypeMethodDescriptionprivate @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateRandomSpreadStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos) @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.Methods in net.minecraft.world.gen.chunk with parameters of type StructureModifier and TypeMethodDescriptionprivate static int
ChunkGenerator.getStructureReferences
(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, Structure structure) Method parameters in net.minecraft.world.gen.chunk with type arguments of type StructureModifier and TypeMethodDescriptionprivate @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateRandomSpreadStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos) @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> ChunkGenerator.locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block. -
Uses of Structure in net.minecraft.world.gen.chunk.placement
Fields in net.minecraft.world.gen.chunk.placement with type parameters of type StructureModifier and TypeFieldDescriptionprivate final Map
<Structure, List<StructurePlacement>> StructurePlacementCalculator.structuresToPlacements
Method parameters in net.minecraft.world.gen.chunk.placement with type arguments of type StructureModifier and TypeMethodDescriptionStructurePlacementCalculator.getPlacements
(RegistryEntry<Structure> structureEntry) -
Uses of Structure in net.minecraft.world.gen.structure
Classes in net.minecraft.world.gen.structure with type parameters of type StructureSubclasses of Structure in net.minecraft.world.gen.structureModifier and TypeClassDescriptionclass
class
class
class
class
final class
class
class
class
class
class
class
class
class
class
class
class
Fields in net.minecraft.world.gen.structure with type parameters of type StructureModifier and TypeFieldDescriptionstatic final RegistryKey
<Structure> StructureKeys.ANCIENT_CITY
static final RegistryKey
<Structure> StructureKeys.BASTION_REMNANT
static final RegistryKey
<Structure> StructureKeys.BURIED_TREASURE
static final RegistryKey
<Structure> StructureKeys.DESERT_PYRAMID
static final RegistryKey
<Structure> StructureKeys.END_CITY
static final com.mojang.serialization.Codec
<RegistryEntry<Structure>> Structure.ENTRY_CODEC
static final RegistryKey
<Structure> StructureKeys.FORTRESS
static final RegistryKey
<Structure> StructureKeys.IGLOO
static final RegistryKey
<Structure> StructureKeys.JUNGLE_PYRAMID
static final RegistryKey
<Structure> StructureKeys.MANSION
static final RegistryKey
<Structure> StructureKeys.MINESHAFT
static final RegistryKey
<Structure> StructureKeys.MINESHAFT_MESA
static final RegistryKey
<Structure> StructureKeys.MONUMENT
static final RegistryKey
<Structure> StructureKeys.NETHER_FOSSIL
static final RegistryKey
<Structure> StructureKeys.OCEAN_RUIN_COLD
static final RegistryKey
<Structure> StructureKeys.OCEAN_RUIN_WARM
static final RegistryKey
<Structure> StructureKeys.PILLAGER_OUTPOST
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_DESERT
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_JUNGLE
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_MOUNTAIN
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_NETHER
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_OCEAN
static final RegistryKey
<Structure> StructureKeys.RUINED_PORTAL_SWAMP
static final RegistryKey
<Structure> StructureKeys.SHIPWRECK
static final RegistryKey
<Structure> StructureKeys.SHIPWRECK_BEACHED
static final RegistryKey
<Structure> StructureKeys.STRONGHOLD
static final com.mojang.serialization.Codec
<Structure> Structure.STRUCTURE_CODEC
static final RegistryKey
<Structure> StructureKeys.SWAMP_HUT
static final RegistryKey
<Structure> StructureKeys.TRAIL_RUINS
static final RegistryKey
<Structure> StructureKeys.TRIAL_CHAMBERS
static final RegistryKey
<Structure> StructureKeys.VILLAGE_DESERT
static final RegistryKey
<Structure> StructureKeys.VILLAGE_PLAINS
static final RegistryKey
<Structure> StructureKeys.VILLAGE_SAVANNA
static final RegistryKey
<Structure> StructureKeys.VILLAGE_SNOWY
static final RegistryKey
<Structure> StructureKeys.VILLAGE_TAIGA
Methods in net.minecraft.world.gen.structure with type parameters of type StructureModifier and TypeMethodDescriptionstatic <S extends Structure>
com.mojang.serialization.codecs.RecordCodecBuilder<S, Structure.Config> Structure.configCodecBuilder
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) static <S extends Structure>
com.mojang.serialization.MapCodec<S> Structure.createCodec
(Function<Structure.Config, S> featureCreator) private static <S extends Structure>
StructureType<S> Methods in net.minecraft.world.gen.structure that return types with arguments of type StructureMethod parameters in net.minecraft.world.gen.structure with type arguments of type StructureModifier and TypeMethodDescriptionstatic void
Structures.bootstrap
(Registerable<Structure> structureRegisterable) Structure.createStructureStart
(RegistryEntry<Structure> structure, RegistryKey<World> dimension, DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, int references, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiomes)