Uses of Class
net.minecraft.world.level.levelgen.structure.Structure
Package
Description
-
Uses of Structure in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionLocationPredicate.Builder.structures
LocationPredicate.structures
The field for thestructures
record component.Modifier and TypeMethodDescriptionLocationPredicate.structures()
Returns the value of thestructures
record component.Modifier and TypeMethodDescriptionstatic LocationPredicate.Builder
LocationPredicate.Builder.inStructure
(Holder<Structure> p_330610_) LocationPredicate.Builder.setStructures
(HolderSet<Structure> p_332189_) -
Uses of Structure in net.minecraft.commands.arguments
Modifier and TypeMethodDescriptionstatic Holder.Reference
<Structure> ResourceArgument.getStructure
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_250288_, String p_250856_) static Holder.Reference
<Structure> ResourceKeyArgument.getStructure
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_248804_, String p_251331_) -
Uses of Structure in net.minecraft.core.registries
Modifier and TypeFieldDescriptionstatic final ResourceKey
<Registry<Structure>> Registries.STRUCTURE
-
Uses of Structure in net.minecraft.data.worldgen
Modifier and TypeMethodDescriptionstatic void
Structures.bootstrap
(BootstrapContext<Structure> p_321517_) -
Uses of Structure in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static Optional
<? extends HolderSet.ListBacked<Structure>> LocateCommand.getHolders
(ResourceOrTagKeyArgument.Result<Structure> p_251212_, Registry<Structure> p_249691_) Modifier and TypeMethodDescriptionprivate static Optional
<? extends HolderSet.ListBacked<Structure>> LocateCommand.getHolders
(ResourceOrTagKeyArgument.Result<Structure> p_251212_, Registry<Structure> p_249691_) private static Optional
<? extends HolderSet.ListBacked<Structure>> LocateCommand.getHolders
(ResourceOrTagKeyArgument.Result<Structure> p_251212_, Registry<Structure> p_249691_) private static int
LocateCommand.locateStructure
(CommandSourceStack p_214472_, ResourceOrTagKeyArgument.Result<Structure> p_249893_) static int
PlaceCommand.placeStructure
(CommandSourceStack p_214588_, Holder.Reference<Structure> p_251799_, BlockPos p_214590_) -
Uses of Structure in net.minecraft.server.level
Modifier and TypeMethodDescriptionServerLevel.findNearestMapStructure
(TagKey<Structure> p_215012_, BlockPos p_215013_, int p_215014_, boolean p_215015_) -
Uses of Structure in net.minecraft.tags
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_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
-
Uses of Structure in net.minecraft.world.entity.npc
ModifierConstructorDescriptionTreasureMapForEmeralds
(int p_207767_, TagKey<Structure> p_207768_, String p_207769_, Holder<MapDecorationType> p_335969_, int p_207771_, int p_207772_) -
Uses of Structure in net.minecraft.world.level
Modifier and TypeMethodDescriptionvoid
StructureManager.addReferenceForStructure
(SectionPos p_220508_, Structure p_220509_, long p_220510_, StructureAccess p_220511_) StructureManager.checkStructurePresence
(ChunkPos p_220474_, Structure p_220475_, StructurePlacement p_321768_, boolean p_220476_) void
StructureManager.fillStartsForStructure
(Structure p_220481_, it.unimi.dsi.fastutil.longs.LongSet p_220482_, Consumer<StructureStart> p_220483_) StructureManager.getStartForStructure
(SectionPos p_220513_, Structure p_220514_, StructureAccess p_220515_) StructureManager.getStructureAt
(BlockPos p_220495_, Structure p_220496_) StructureManager.getStructureWithPieceAt
(BlockPos p_220525_, Structure p_220526_) void
StructureManager.setStartForStructure
(SectionPos p_220517_, Structure p_220518_, StructureStart p_220519_, StructureAccess p_220520_) StructureManager.startsForStructure
(SectionPos p_220505_, Structure p_220506_) Modifier and TypeMethodDescriptionStructureManager.getStructureWithPieceAt
(BlockPos p_220489_, Predicate<Holder<Structure>> p_332144_) StructureManager.getStructureWithPieceAt
(BlockPos p_331369_, HolderSet<Structure> p_330290_) StructureManager.getStructureWithPieceAt
(BlockPos p_220492_, TagKey<Structure> p_220493_) StructureManager.startsForStructure
(ChunkPos p_220478_, Predicate<Structure> p_220479_) -
Uses of Structure in net.minecraft.world.level.chunk
Modifier and TypeFieldDescriptionprivate final Map
<Structure, List<StructurePlacement>> ChunkGeneratorStructureState.placementsForStructure
ChunkAccess.structuresRefences
private final Map
<Structure, StructureStart> ChunkAccess.structureStarts
Modifier and TypeMethodDescriptionChunkGenerator.findNearestMapStructure
(ServerLevel p_223038_, HolderSet<Structure> p_223039_, BlockPos p_223040_, int p_223041_, boolean p_223042_) ChunkAccess.getAllReferences()
ImposterProtoChunk.getAllReferences()
StructureAccess.getAllReferences()
ChunkAccess.getAllStarts()
ImposterProtoChunk.getAllStarts()
ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223189_, LevelReader p_223190_, StructureManager p_223191_, int p_223192_, int p_223193_, int p_223194_, boolean p_223195_, long p_223196_, RandomSpreadStructurePlacement p_223197_) ChunkGenerator.getStructureGeneratingAt
(Set<Holder<Structure>> p_223199_, LevelReader p_223200_, StructureManager p_223201_, boolean p_223202_, StructurePlacement p_223203_, ChunkPos p_223204_) Modifier and TypeMethodDescriptionvoid
ChunkAccess.addReferenceForStructure
(Structure p_223007_, long p_223008_) void
ImposterProtoChunk.addReferenceForStructure
(Structure p_223402_, long p_223403_) void
StructureAccess.addReferenceForStructure
(Structure p_223435_, long p_223436_) private static int
ChunkGenerator.fetchReferences
(StructureManager p_223055_, ChunkAccess p_223056_, SectionPos p_223057_, Structure p_223058_) it.unimi.dsi.fastutil.longs.LongSet
ChunkAccess.getReferencesForStructure
(Structure p_223017_) it.unimi.dsi.fastutil.longs.LongSet
ImposterProtoChunk.getReferencesForStructure
(Structure p_223408_) it.unimi.dsi.fastutil.longs.LongSet
StructureAccess.getReferencesForStructure
(Structure p_223439_) ChunkAccess.getStartForStructure
(Structure p_223005_) ImposterProtoChunk.getStartForStructure
(Structure p_223400_) StructureAccess.getStartForStructure
(Structure p_223434_) void
ChunkAccess.setStartForStructure
(Structure p_223010_, StructureStart p_223011_) void
ImposterProtoChunk.setStartForStructure
(Structure p_223405_, StructureStart p_223406_) void
ProtoChunk.setStartForStructure
(Structure p_223432_, StructureStart p_223433_) void
StructureAccess.setStartForStructure
(Structure p_223437_, StructureStart p_223438_) Modifier and TypeMethodDescriptionChunkGenerator.findNearestMapStructure
(ServerLevel p_223038_, HolderSet<Structure> p_223039_, BlockPos p_223040_, int p_223041_, boolean p_223042_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223182_, ServerLevel p_223183_, StructureManager p_223184_, BlockPos p_223185_, boolean p_223186_, ConcentricRingsStructurePlacement p_223187_) ChunkGenerator.getNearestGeneratedStructure
(Set<Holder<Structure>> p_223189_, LevelReader p_223190_, StructureManager p_223191_, int p_223192_, int p_223193_, int p_223194_, boolean p_223195_, long p_223196_, RandomSpreadStructurePlacement p_223197_) ChunkGeneratorStructureState.getPlacementsForStructure
(Holder<Structure> p_256494_) ChunkGenerator.getStructureGeneratingAt
(Set<Holder<Structure>> p_223199_, LevelReader p_223200_, StructureManager p_223201_, boolean p_223202_, StructurePlacement p_223203_, ChunkPos p_223204_) void
ChunkAccess.setAllReferences
(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_187663_) void
ImposterProtoChunk.setAllReferences
(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_62738_) void
StructureAccess.setAllReferences
(Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_223440_) void
ChunkAccess.setAllStarts
(Map<Structure, StructureStart> p_62090_) void
ImposterProtoChunk.setAllStarts
(Map<Structure, StructureStart> p_62726_) -
Uses of Structure in net.minecraft.world.level.chunk.storage
Modifier and TypeMethodDescriptionChunkSerializer.unpackStructureReferences
(RegistryAccess p_208155_, ChunkPos p_208156_, CompoundTag p_208157_) private static Map
<Structure, StructureStart> ChunkSerializer.unpackStructureStart
(StructurePieceSerializationContext p_188255_, CompoundTag p_188256_, long p_188257_) Modifier and TypeMethodDescriptionprivate static CompoundTag
ChunkSerializer.packStructureData
(StructurePieceSerializationContext p_188250_, ChunkPos p_188251_, Map<Structure, StructureStart> p_188252_, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_188253_) -
Uses of Structure in net.minecraft.world.level.levelgen.structure
Modifier and TypeFieldDescriptionstatic final ResourceKey
<Structure> BuiltinStructures.ANCIENT_CITY
static final ResourceKey
<Structure> BuiltinStructures.BASTION_REMNANT
static final ResourceKey
<Structure> BuiltinStructures.BURIED_TREASURE
Structure.CODEC
static final ResourceKey
<Structure> BuiltinStructures.DESERT_PYRAMID
static final com.mojang.serialization.Codec
<Structure> Structure.DIRECT_CODEC
static final ResourceKey
<Structure> BuiltinStructures.END_CITY
StructureCheck.featureChecks
static final ResourceKey
<Structure> BuiltinStructures.FORTRESS
static final ResourceKey
<Structure> BuiltinStructures.IGLOO
static final ResourceKey
<Structure> BuiltinStructures.JUNGLE_TEMPLE
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap
<it.unimi.dsi.fastutil.objects.Object2IntMap<Structure>> StructureCheck.loadedChunks
static final ResourceKey
<Structure> BuiltinStructures.MINESHAFT
static final ResourceKey
<Structure> BuiltinStructures.MINESHAFT_MESA
static final ResourceKey
<Structure> BuiltinStructures.NETHER_FOSSIL
static final ResourceKey
<Structure> BuiltinStructures.OCEAN_MONUMENT
static final ResourceKey
<Structure> BuiltinStructures.OCEAN_RUIN_COLD
static final ResourceKey
<Structure> BuiltinStructures.OCEAN_RUIN_WARM
static final ResourceKey
<Structure> BuiltinStructures.PILLAGER_OUTPOST
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_DESERT
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_JUNGLE
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_MOUNTAIN
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_NETHER
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_OCEAN
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_STANDARD
static final ResourceKey
<Structure> BuiltinStructures.RUINED_PORTAL_SWAMP
static final ResourceKey
<Structure> BuiltinStructures.SHIPWRECK
static final ResourceKey
<Structure> BuiltinStructures.SHIPWRECK_BEACHED
static final ResourceKey
<Structure> BuiltinStructures.STRONGHOLD
StructureSet.StructureSelectionEntry.structure
The field for thestructure
record component.static final ResourceKey
<Structure> BuiltinStructures.SWAMP_HUT
static final ResourceKey
<Structure> BuiltinStructures.TRAIL_RUINS
static final ResourceKey
<Structure> BuiltinStructures.TRIAL_CHAMBERS
static final ResourceKey
<Structure> BuiltinStructures.VILLAGE_DESERT
static final ResourceKey
<Structure> BuiltinStructures.VILLAGE_PLAINS
static final ResourceKey
<Structure> BuiltinStructures.VILLAGE_SAVANNA
static final ResourceKey
<Structure> BuiltinStructures.VILLAGE_SNOWY
static final ResourceKey
<Structure> BuiltinStructures.VILLAGE_TAIGA
static final ResourceKey
<Structure> BuiltinStructures.WOODLAND_MANSION
Modifier and TypeMethodDescriptionprivate static <S extends Structure>
StructureType<S> static <S extends Structure>
com.mojang.serialization.codecs.RecordCodecBuilder<S, Structure.StructureSettings> Structure.settingsCodec
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> p_226568_) static <S extends Structure>
com.mojang.serialization.MapCodec<S> Structure.simpleCodec
(Function<Structure.StructureSettings, S> p_226608_) Modifier and TypeMethodDescriptionprivate static ResourceKey
<Structure> private static it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.deduplicateEmptyMap
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_197299_) private it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.loadStructures
(CompoundTag p_197312_) StructureSet.StructureSelectionEntry.structure()
Returns the value of thestructure
record component.Modifier and TypeMethodDescriptionprivate boolean
StructureCheck.canCreateStructure
(ChunkPos p_226756_, Structure p_226757_) StructureCheck.checkStart
(ChunkPos p_226730_, Structure p_226731_, StructurePlacement p_321610_, boolean p_226732_) private StructureCheckResult
StructureCheck.checkStructureInfo
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_226752_, Structure p_226753_, boolean p_226754_) void
StructureCheck.incrementReference
(ChunkPos p_226723_, Structure p_226724_) private StructureCheckResult
StructureCheck.tryLoadFromStorage
(ChunkPos p_226734_, Structure p_226735_, boolean p_226736_, long p_226737_) Modifier and TypeMethodDescriptionprivate StructureCheckResult
StructureCheck.checkStructureInfo
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_226752_, Structure p_226753_, boolean p_226754_) private static it.unimi.dsi.fastutil.objects.Object2IntMap
<Structure> StructureCheck.deduplicateEmptyMap
(it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_197299_) void
StructureCheck.onStructureLoad
(ChunkPos p_197283_, Map<Structure, StructureStart> p_197284_) private void
StructureCheck.storeFullResults
(long p_197264_, it.unimi.dsi.fastutil.objects.Object2IntMap<Structure> p_197265_) ModifierConstructorDescriptionStructureStart
(Structure p_226846_, ChunkPos p_226847_, int p_226848_, PiecesContainer p_226849_) ModifierConstructorDescriptionStructureSelectionEntry
(Holder<Structure> structure, int weight) Creates an instance of aStructureSelectionEntry
record class.StructureSet
(Holder<Structure> p_210007_, StructurePlacement p_210008_) -
Uses of Structure in net.minecraft.world.level.levelgen.structure.structures
Modifier and TypeClassDescriptionclass
class
class
class
final class
class
class
class
class
class
class
class
class
class
class
class
-
Uses of Structure in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionExplorationMapFunction.DEFAULT_DESTINATION
ExplorationMapFunction.Builder.destination
ExplorationMapFunction.destination
Modifier and TypeMethodDescriptionExplorationMapFunction.Builder.setDestination
(TagKey<Structure> p_210659_) ModifierConstructorDescription(package private)
ExplorationMapFunction
(List<LootItemCondition> p_298451_, TagKey<Structure> p_210653_, Holder<MapDecorationType> p_336106_, byte p_210655_, int p_210656_, boolean p_210657_) -
Uses of Structure in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionTags.Structures.HIDDEN_FROM_DISPLAYERS
Structures that should not show up on minimaps or world map views from mods/sites.Tags.Structures.HIDDEN_FROM_LOCATOR_SELECTION
Structures that should not be locatable/selectable by modded structure-locating items or abilities. -
Uses of Structure in net.neoforged.neoforge.common.world
Modifier and TypeFieldDescriptionStructureModifiers.AddSpawnsStructureModifier.structures
The field for thestructures
record component.StructureModifiers.ClearSpawnsStructureModifier.structures
The field for thestructures
record component.StructureModifiers.RemoveSpawnsStructureModifier.structures
The field for thestructures
record component.Modifier and TypeMethodDescriptionStructureModifiers.AddSpawnsStructureModifier.structures()
Returns the value of thestructures
record component.StructureModifiers.ClearSpawnsStructureModifier.structures()
Returns the value of thestructures
record component.StructureModifiers.RemoveSpawnsStructureModifier.structures()
Returns the value of thestructures
record component.Modifier and TypeMethodDescriptionvoid
ModifiableStructureInfo.applyStructureModifiers
(Holder<Structure> structure, List<StructureModifier> structureModifiers) Internal forge method; the game will crash if mods invoke this.void
NoneStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) Modifies the information via the provided structure builder.void
StructureModifiers.AddSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifiers.ClearSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) void
StructureModifiers.RemoveSpawnsStructureModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) StructureModifiers.AddSpawnsStructureModifier.singleSpawn
(HolderSet<Structure> structures, MobSpawnSettings.SpawnerData spawner) Convenience method for using a singleMobSpawnSettings.SpawnerData
.ModifierConstructorDescriptionAddSpawnsStructureModifier
(HolderSet<Structure> structures, List<MobSpawnSettings.SpawnerData> spawners) Creates an instance of aAddSpawnsStructureModifier
record class.ClearSpawnsStructureModifier
(HolderSet<Structure> structures, Set<MobCategory> categories) Creates an instance of aClearSpawnsStructureModifier
record class.RemoveSpawnsStructureModifier
(HolderSet<Structure> structures, HolderSet<EntityType<?>> entityTypes) Creates an instance of aRemoveSpawnsStructureModifier
record class. -
Uses of Structure in net.neoforged.neoforge.oldtest.world
Modifier and TypeFieldDescriptionStructureModifierTest.STRUCTURE_LIST_CODEC
StructureModifierTest.TestModifier.structures
The field for thestructures
record component.Modifier and TypeMethodDescriptionStructureModifierTest.TestModifier.structures()
Returns the value of thestructures
record component.Modifier and TypeMethodDescriptionvoid
StructureModifierTest.TestModifier.modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) ModifierConstructorDescriptionTestModifier
(HolderSet<Structure> structures, MobCategory category, MobSpawnSettings.SpawnerData spawn) Creates an instance of aTestModifier
record class.