Uses of Class
net.minecraft.world.gen.structure.Structure
Package
Description
-
Uses of Structure in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic RegistryEntry.Reference<Structure>
RegistryEntryArgumentType.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
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.registry
Modifier and TypeFieldDescriptionstatic final RegistryKey<Registry<Structure>>
RegistryKeys.STRUCTURE
-
Uses of Structure in net.minecraft.registry.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.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.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
-
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) 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.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 registryManager, ChunkPos pos, NbtCompound nbt) 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()
WrapperProtoChunk.getStructureReferences()
Chunk.getStructureStarts()
WrapperProtoChunk.getStructureStarts()
Modifier 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) Modifier 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) -
Uses of Structure in net.minecraft.world.gen
Modifier 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, 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.setStructureStart
(ChunkSectionPos pos, Structure structure, StructureStart structureStart, StructureHolder holder) Modifier and TypeMethodDescriptionStructureAccessor.getStructureContaining
(BlockPos pos, RegistryKey<Structure> structure) StructureAccessor.getStructureContaining
(BlockPos pos, TagKey<Structure> structureTag) StructureAccessor.getStructureStarts
(ChunkPos pos, Predicate<Structure> predicate) -
Uses of Structure in net.minecraft.world.gen.chunk
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 @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
Modifier and TypeFieldDescriptionprivate final Map<Structure,
List<StructurePlacement>> StructurePlacementCalculator.structuresToPlacements
Modifier and TypeMethodDescriptionStructurePlacementCalculator.getPlacements
(RegistryEntry<Structure> structureEntry) -
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 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.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
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 void
Structures.bootstrap
(Registerable<Structure> structureRegisterable)