Class Structure<C extends IFeatureConfig>
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Structure<?>>
net.minecraft.world.gen.feature.structure.Structure<C>
- All Implemented Interfaces:
IForgeStructure
,IForgeRegistryEntry<Structure<?>>
- Direct Known Subclasses:
BuriedTreasureStructure
,DesertPyramidStructure
,EndCityStructure
,FortressStructure
,IglooStructure
,JigsawStructure
,JunglePyramidStructure
,MineshaftStructure
,NetherFossilStructure
,OceanMonumentStructure
,OceanRuinStructure
,RuinedPortalStructure
,ShipwreckStructure
,StrongholdStructure
,SwampHutStructure
,WoodlandMansionStructure
public abstract class Structure<C extends IFeatureConfig>
extends ForgeRegistryEntry<Structure<?>>
implements IForgeStructure
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Structure.IStartFactory<C extends IFeatureConfig>
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Structure<VillageConfig>
static final Structure<ProbabilityConfig>
private final com.mojang.serialization.Codec<StructureFeature<C,
Structure<C>>> static final Structure<NoFeatureConfig>
static final Structure<NoFeatureConfig>
static final Structure<NoFeatureConfig>
private static final ResourceLocation
static final Structure<NoFeatureConfig>
private static final org.apache.logging.log4j.Logger
static final Structure<MineshaftConfig>
static final Structure<NoFeatureConfig>
static final Structure<NoFeatureConfig>
static final Structure<NoFeatureConfig>
static final Structure<OceanRuinConfig>
static final Structure<VillageConfig>
private static final Map<ResourceLocation,
ResourceLocation> static final Structure<RuinedPortalFeature>
static final Structure<ShipwreckConfig>
private static final Map<Structure<?>,
GenerationStage.Decoration> static final Structure<NoFeatureConfig>
static final SwampHutStructure
static final Structure<VillageConfig>
static final Structure<NoFeatureConfig>
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
StructureFeature<C,
? extends Structure<C>> configured
(C p_236391_1_) com.mojang.serialization.Codec<StructureFeature<C,
Structure<C>>> private StructureStart<C>
createStart
(int p_236387_1_, int p_236387_2_, MutableBoundingBox p_236387_3_, int p_236387_4_, long p_236387_5_) generate
(DynamicRegistries p_242785_1_, ChunkGenerator p_242785_2_, BiomeProvider p_242785_3_, TemplateManager p_242785_4_, long p_242785_5_, ChunkPos p_242785_7_, Biome p_242785_8_, int p_242785_9_, SharedSeedRandom p_242785_10_, StructureSeparationSettings p_242785_11_, C p_242785_12_) getNearestGeneratedFeature
(IWorldReader p_236388_1_, StructureManager p_236388_2_, BlockPos p_236388_3_, int p_236388_4_, boolean p_236388_5_, long p_236388_6_, StructureSeparationSettings p_236388_8_) final ChunkPos
getPotentialFeatureChunk
(StructureSeparationSettings p_236392_1_, long p_236392_2_, SharedSeedRandom p_236392_4_, int p_236392_5_, int p_236392_6_) final List<MobSpawnInfo.Spawners>
getSpawnList
(EntityClassification classification) Helper method to get the list of entity spawns for this structure for the given classification.abstract Structure.IStartFactory<C>
protected boolean
isFeatureChunk
(ChunkGenerator p_230363_1_, BiomeProvider p_230363_2_, long p_230363_3_, SharedSeedRandom p_230363_5_, int p_230363_6_, int p_230363_7_, Biome p_230363_8_, ChunkPos p_230363_9_, C p_230363_10_) protected boolean
static StructureStart<?>
loadStaticStart
(TemplateManager p_236393_0_, CompoundNBT p_236393_1_, long p_236393_2_) private static <F extends Structure<?>>
Fregister
(String p_236394_0_, F p_236394_1_, GenerationStage.Decoration p_236394_2_) step()
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeStructure
getDefaultCreatureSpawnList, getDefaultRestrictsSpawnsToInside, getDefaultSpawnList, getStructure
-
Field Details
-
STRUCTURES_REGISTRY
-
STEP
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
PILLAGER_OUTPOST
-
MINESHAFT
-
WOODLAND_MANSION
-
JUNGLE_TEMPLE
-
DESERT_PYRAMID
-
IGLOO
-
RUINED_PORTAL
-
SHIPWRECK
-
SWAMP_HUT
-
STRONGHOLD
-
OCEAN_MONUMENT
-
OCEAN_RUIN
-
NETHER_BRIDGE
-
END_CITY
-
BURIED_TREASURE
-
VILLAGE
-
NETHER_FOSSIL
-
BASTION_REMNANT
-
NOISE_AFFECTING_FEATURES
-
JIGSAW_RENAME
-
RENAMES
-
configuredStructureCodec
private final com.mojang.serialization.Codec<StructureFeature<C extends IFeatureConfig,Structure<C extends IFeatureConfig>>> configuredStructureCodec
-
-
Constructor Details
-
Structure
-
-
Method Details
-
register
private static <F extends Structure<?>> F register(String p_236394_0_, F p_236394_1_, GenerationStage.Decoration p_236394_2_) -
step
-
bootstrap
public static void bootstrap() -
loadStaticStart
@Nullable public static StructureStart<?> loadStaticStart(TemplateManager p_236393_0_, CompoundNBT p_236393_1_, long p_236393_2_) -
configuredStructureCodec
-
configured
-
getNearestGeneratedFeature
@Nullable public BlockPos getNearestGeneratedFeature(IWorldReader p_236388_1_, StructureManager p_236388_2_, BlockPos p_236388_3_, int p_236388_4_, boolean p_236388_5_, long p_236388_6_, StructureSeparationSettings p_236388_8_) -
linearSeparation
protected boolean linearSeparation() -
createStart
private StructureStart<C> createStart(int p_236387_1_, int p_236387_2_, MutableBoundingBox p_236387_3_, int p_236387_4_, long p_236387_5_) -
getStartFactory
-
getFeatureName
-
getSpecialEnemies
-
getSpecialAnimals
-
getSpawnList
Description copied from interface:IForgeStructure
Helper method to get the list of entity spawns for this structure for the given classification.- Specified by:
getSpawnList
in interfaceIForgeStructure
- Parameters:
classification
- The classification of entities.
-