Uses of Class
net.minecraft.world.gen.structure.Structure
Package
Description
-
Uses of Structure in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic RegistryEntry<Structure>
RegistryKeyArgumentType.getStructureEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of Structure in net.minecraft.loot.function
Modifier and TypeFieldDescriptionExplorationMapLootFunction.DEFAULT_DESTINATION
ExplorationMapLootFunction.Builder.destination
ExplorationMapLootFunction.destination
Modifier and TypeMethodDescriptionExplorationMapLootFunction.Serializer.getDestination
(JsonObject json) Modifier and TypeMethodDescriptionExplorationMapLootFunction.Builder.withDestination
(TagKey<Structure> destination) ModifierConstructorDescription(package private)
ExplorationMapLootFunction
(LootCondition[] conditions, TagKey<Structure> destination, MapIcon.Type decoration, byte zoom, int searchRadius, boolean skipExistingChunks) -
Uses of Structure in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate @Nullable RegistryKey<Structure>
LocationPredicate.Builder.feature
private final @Nullable RegistryKey<Structure>
LocationPredicate.feature
Modifier and TypeMethodDescriptionLocationPredicate.Builder.feature
(@Nullable RegistryKey<Structure> feature) static LocationPredicate
LocationPredicate.feature
(RegistryKey<Structure> feature) -
Uses of Structure in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static Optional<? extends RegistryEntryList.ListBacked<Structure>>
LocateCommand.getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) Modifier and TypeMethodDescriptionprivate static int
LocateCommand.executeLocateStructure
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate) static int
PlaceCommand.executePlaceStructure
(ServerCommandSource source, RegistryEntry<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
-
Uses of Structure in net.minecraft.structure
Modifier and TypeFieldDescriptionprivate final RegistryEntry<Structure>
StructureSet.WeightedEntry.structure
The field for thestructure
record component.Modifier and TypeMethodDescriptionStructureSet.WeightedEntry.structure()
Returns the value of thestructure
record component.Modifier and TypeMethodDescriptionstatic StructureSet.WeightedEntry
StructureSet.createEntry
(RegistryEntry<Structure> structure) static StructureSet.WeightedEntry
StructureSet.createEntry
(RegistryEntry<Structure> structure, int weight) static RegistryEntry<StructureSet>
StructureSets.register
(RegistryKey<StructureSet> key, RegistryEntry<Structure> structure, StructurePlacement placement) ModifierConstructorDescriptionStructureStart
(Structure structure, ChunkPos pos, int references, StructurePiecesList children) ModifierConstructorDescriptionStructureSet
(RegistryEntry<Structure> structure, StructurePlacement placement) WeightedEntry
(RegistryEntry<Structure> registryEntry, int int2) -
Uses of Structure in net.minecraft.tag
Modifier 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_OCEAN_EXPLORER_MAPS
StructureTags.ON_TREASURE_MAPS
StructureTags.ON_WOODLAND_EXPLORER_MAPS
StructureTags.RUINED_PORTAL
StructureTags.SHIPWRECK
StructureTags.VILLAGE
-
Uses of Structure in net.minecraft.util.registry
Modifier and TypeFieldDescriptionBuiltinRegistries.STRUCTURE
static final RegistryKey<Registry<Structure>>
Registry.STRUCTURE_KEY
-
Uses of Structure in net.minecraft.village
ModifierConstructorDescriptionSellMapFactory
(int price, TagKey<Structure> structure, String nameKey, MapIcon.Type iconType, int maxUses, int experience) -
Uses of Structure in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Long2ObjectMap<Object2IntMap<Structure>>
StructureLocator.cachedStructuresByChunkPos
private final Map<Structure,
Long2BooleanMap> StructureLocator.generationPossibilityByStructure
StructureLocator.structureRegistry
Modifier and TypeMethodDescriptionprivate @Nullable Object2IntMap<Structure>
StructureLocator.collectStructuresAndReferences
(NbtCompound nbt) private static Object2IntMap<Structure>
StructureLocator.createMapIfEmpty
(Object2IntMap<Structure> map) StructureHolder.getStructureReferences()
ChunkSerializer.readStructureReferences
(DynamicRegistryManager dynamicRegistryManager, ChunkPos chunkPos, NbtCompound nbtCompound) private static Map<Structure,
StructureStart> ChunkSerializer.readStructureStarts
(StructureContext context, NbtCompound nbt, long worldSeed) Modifier and TypeMethodDescriptionvoid
StructureHolder.addStructureReference
(Structure structure, long reference) private StructurePresence
StructureLocator.getStructurePresence
(Object2IntMap<Structure> referencesByStructure, Structure structure, boolean skipReferencedStructures) StructureLocator.getStructurePresence
(ChunkPos pos, Structure type, boolean skipReferencedStructures) private @Nullable StructurePresence
StructureLocator.getStructurePresence
(ChunkPos pos, Structure structure, boolean skipReferencedStructures, long posLong) 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) Modifier 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) private static NbtCompound
ChunkSerializer.writeStructures
(StructureContext context, ChunkPos pos, Map<Structure, StructureStart> starts, Map<Structure, LongSet> references) -
Uses of Structure in net.minecraft.world.chunk
Modifier and TypeFieldDescriptionChunk.structureReferences
private final Map<Structure,
StructureStart> Chunk.structureStarts
Modifier and TypeMethodDescriptionChunk.getStructureReferences()
ReadOnlyChunk.getStructureReferences()
Chunk.getStructureStarts()
ReadOnlyChunk.getStructureStarts()
Modifier and TypeMethodDescriptionvoid
Chunk.addStructureReference
(Structure structure, long reference) void
ReadOnlyChunk.addStructureReference
(Structure structure, long reference) Chunk.getStructureReferences
(Structure structure) ReadOnlyChunk.getStructureReferences
(Structure structure) Chunk.getStructureStart
(Structure structure) ReadOnlyChunk.getStructureStart
(Structure structure) void
Chunk.setStructureStart
(Structure structure, StructureStart start) void
ProtoChunk.setStructureStart
(Structure structure, StructureStart start) void
ReadOnlyChunk.setStructureStart
(Structure structure, StructureStart start) Modifier and TypeMethodDescriptionvoid
Chunk.setStructureReferences
(Map<Structure, LongSet> structureReferences) void
ReadOnlyChunk.setStructureReferences
(Map<Structure, LongSet> structureReferences) void
Chunk.setStructureStarts
(Map<Structure, StructureStart> structureStarts) void
ReadOnlyChunk.setStructureStarts
(Map<Structure, StructureStart> structureStarts) -
Uses of Structure in net.minecraft.world.gen
Modifier and TypeMethodDescriptionvoid
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, boolean skipExistingChunk) 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.method_41032
(Structure structure, LongSet longSet, Consumer<StructureStart> consumer) void
StructureAccessor.setStructureStart
(ChunkSectionPos pos, Structure structure, StructureStart structureStart, StructureHolder holder) Modifier and TypeMethodDescriptionStructureAccessor.getStructureContaining
(BlockPos pos, TagKey<Structure> structureTag) StructureAccessor.getStructureContaining
(BlockPos pos, RegistryKey<Structure> structure) StructureAccessor.method_41035
(ChunkPos chunkPos, Predicate<Structure> predicate) -
Uses of Structure in net.minecraft.world.gen.chunk
Modifier and TypeFieldDescriptionprivate final Map<Structure,
List<StructurePlacement>> ChunkGenerator.structurePlacements
Modifier 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.Modifier and TypeMethodDescriptionprivate static int
ChunkGenerator.getStructureReferences
(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, Structure structure) Modifier and TypeMethodDescriptionprivate List<StructurePlacement>
ChunkGenerator.getStructurePlacement
(RegistryEntry<Structure> structureEntry, NoiseConfig noiseConfig) private @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.structure
Modifier and TypeClassDescriptionclass
class
class
class
class
final class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionstatic final RegistryKey<Structure>
StructureKeys.ANCIENT_CITY
static final RegistryEntry<Structure>
Structures.ANCIENT_CITY
static final RegistryKey<Structure>
StructureKeys.BASTION_REMNANT
static final RegistryEntry<Structure>
Structures.BASTION_REMNANT
static final RegistryKey<Structure>
StructureKeys.BURIED_TREASURE
static final RegistryEntry<Structure>
Structures.BURIED_TREASURE
static final RegistryKey<Structure>
StructureKeys.DESERT_PYRAMID
static final RegistryEntry<Structure>
Structures.DESERT_PYRAMID
static final RegistryKey<Structure>
StructureKeys.END_CITY
static final RegistryEntry<Structure>
Structures.END_CITY
static final com.mojang.serialization.Codec<RegistryEntry<Structure>>
Structure.ENTRY_CODEC
static final RegistryKey<Structure>
StructureKeys.FORTRESS
static final RegistryEntry<Structure>
Structures.FORTRESS
static final RegistryKey<Structure>
StructureKeys.IGLOO
static final RegistryEntry<Structure>
Structures.IGLOO
static final RegistryKey<Structure>
StructureKeys.JUNGLE_PYRAMID
static final RegistryEntry<Structure>
Structures.JUNGLE_PYRAMID
static final RegistryKey<Structure>
StructureKeys.MANSION
static final RegistryEntry<Structure>
Structures.MANSION
static final RegistryKey<Structure>
StructureKeys.MINESHAFT
static final RegistryEntry<Structure>
Structures.MINESHAFT
static final RegistryKey<Structure>
StructureKeys.MINESHAFT_MESA
static final RegistryEntry<Structure>
Structures.MINESHAFT_MESA
static final RegistryKey<Structure>
StructureKeys.MONUMENT
static final RegistryEntry<Structure>
Structures.MONUMENT
static final RegistryKey<Structure>
StructureKeys.NETHER_FOSSIL
static final RegistryEntry<Structure>
Structures.NETHER_FOSSIL
static final RegistryKey<Structure>
StructureKeys.OCEAN_RUIN_COLD
static final RegistryEntry<Structure>
Structures.OCEAN_RUIN_COLD
static final RegistryKey<Structure>
StructureKeys.OCEAN_RUIN_WARM
static final RegistryEntry<Structure>
Structures.OCEAN_RUIN_WARM
static final RegistryKey<Structure>
StructureKeys.PILLAGER_OUTPOST
static final RegistryEntry<Structure>
Structures.PILLAGER_OUTPOST
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_DESERT
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_DESERT
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_JUNGLE
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_JUNGLE
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_MOUNTAIN
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_MOUNTAIN
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_NETHER
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_NETHER
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_OCEAN
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_OCEAN
static final RegistryKey<Structure>
StructureKeys.RUINED_PORTAL_SWAMP
static final RegistryEntry<Structure>
Structures.RUINED_PORTAL_SWAMP
static final RegistryKey<Structure>
StructureKeys.SHIPWRECK
static final RegistryEntry<Structure>
Structures.SHIPWRECK
static final RegistryKey<Structure>
StructureKeys.SHIPWRECK_BEACHED
static final RegistryEntry<Structure>
Structures.SHIPWRECK_BEACHED
static final RegistryKey<Structure>
StructureKeys.STRONGHOLD
static final RegistryEntry<Structure>
Structures.STRONGHOLD
static final com.mojang.serialization.Codec<Structure>
Structure.STRUCTURE_CODEC
static final RegistryKey<Structure>
StructureKeys.SWAMP_HUT
static final RegistryEntry<Structure>
Structures.SWAMP_HUT
static final RegistryKey<Structure>
StructureKeys.VILLAGE_DESERT
static final RegistryEntry<Structure>
Structures.VILLAGE_DESERT
static final RegistryKey<Structure>
StructureKeys.VILLAGE_PLAINS
static final RegistryEntry<Structure>
Structures.VILLAGE_PLAINS
static final RegistryKey<Structure>
StructureKeys.VILLAGE_SAVANNA
static final RegistryEntry<Structure>
Structures.VILLAGE_SAVANNA
static final RegistryKey<Structure>
StructureKeys.VILLAGE_SNOWY
static final RegistryEntry<Structure>
Structures.VILLAGE_SNOWY
static final RegistryKey<Structure>
StructureKeys.VILLAGE_TAIGA
static final RegistryEntry<Structure>
Structures.VILLAGE_TAIGA
Modifier 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.Codec<S>Structure.createCodec
(Function<Structure.Config, S> featureCreator) private static <S extends Structure>
StructureType<S>Modifier and TypeMethodDescriptionstatic RegistryEntry<? extends Structure>
Structures.getDefault
(Registry<Structure> registry) private static RegistryKey<Structure>
private static RegistryEntry<Structure>
Structures.register
(RegistryKey<Structure> key, Structure structure) Modifier and TypeMethodDescriptionprivate static RegistryEntry<Structure>
Structures.register
(RegistryKey<Structure> key, Structure structure) Modifier and TypeMethodDescriptionstatic RegistryEntry<? extends Structure>
Structures.getDefault
(Registry<Structure> registry) private static RegistryEntry<Structure>
Structures.register
(RegistryKey<Structure> key, Structure structure)