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
Nested Classes Modifier and Type Class Description static interface
Structure.IStartFactory<C extends IFeatureConfig>
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
bootstrap()
StructureFeature<C,? extends Structure<C>>
configured(C p_236391_1_)
com.mojang.serialization.Codec<StructureFeature<C,Structure<C>>>
configuredStructureCodec()
private StructureStart<C>
createStart(int p_236387_1_, int p_236387_2_, MutableBoundingBox p_236387_3_, int p_236387_4_, long p_236387_5_)
StructureStart<?>
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_)
java.lang.String
getFeatureName()
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_)
ChunkPos
getPotentialFeatureChunk(StructureSeparationSettings p_236392_1_, long p_236392_2_, SharedSeedRandom p_236392_4_, int p_236392_5_, int p_236392_6_)
java.util.List<MobSpawnInfo.Spawners>
getSpawnList(EntityClassification classification)
Helper method to get the list of entity spawns for this structure for the given classification.java.util.List<MobSpawnInfo.Spawners>
getSpecialAnimals()
java.util.List<MobSpawnInfo.Spawners>
getSpecialEnemies()
abstract Structure.IStartFactory<C>
getStartFactory()
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
linearSeparation()
static StructureStart<?>
loadStaticStart(TemplateManager p_236393_0_, CompoundNBT p_236393_1_, long p_236393_2_)
private static <F extends Structure<?>>
Fregister(java.lang.String p_236394_0_, F p_236394_1_, GenerationStage.Decoration p_236394_2_)
GenerationStage.Decoration
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 Detail
-
STRUCTURES_REGISTRY
public static final com.google.common.collect.BiMap<java.lang.String,Structure<?>> STRUCTURES_REGISTRY
-
STEP
private static final java.util.Map<Structure<?>,GenerationStage.Decoration> STEP
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
PILLAGER_OUTPOST
public static final Structure<VillageConfig> PILLAGER_OUTPOST
-
MINESHAFT
public static final Structure<MineshaftConfig> MINESHAFT
-
WOODLAND_MANSION
public static final Structure<NoFeatureConfig> WOODLAND_MANSION
-
JUNGLE_TEMPLE
public static final Structure<NoFeatureConfig> JUNGLE_TEMPLE
-
DESERT_PYRAMID
public static final Structure<NoFeatureConfig> DESERT_PYRAMID
-
IGLOO
public static final Structure<NoFeatureConfig> IGLOO
-
RUINED_PORTAL
public static final Structure<RuinedPortalFeature> RUINED_PORTAL
-
SHIPWRECK
public static final Structure<ShipwreckConfig> SHIPWRECK
-
SWAMP_HUT
public static final SwampHutStructure SWAMP_HUT
-
STRONGHOLD
public static final Structure<NoFeatureConfig> STRONGHOLD
-
OCEAN_MONUMENT
public static final Structure<NoFeatureConfig> OCEAN_MONUMENT
-
OCEAN_RUIN
public static final Structure<OceanRuinConfig> OCEAN_RUIN
-
NETHER_BRIDGE
public static final Structure<NoFeatureConfig> NETHER_BRIDGE
-
END_CITY
public static final Structure<NoFeatureConfig> END_CITY
-
BURIED_TREASURE
public static final Structure<ProbabilityConfig> BURIED_TREASURE
-
VILLAGE
public static final Structure<VillageConfig> VILLAGE
-
NETHER_FOSSIL
public static final Structure<NoFeatureConfig> NETHER_FOSSIL
-
BASTION_REMNANT
public static final Structure<VillageConfig> BASTION_REMNANT
-
NOISE_AFFECTING_FEATURES
public static final java.util.List<Structure<?>> NOISE_AFFECTING_FEATURES
-
JIGSAW_RENAME
private static final ResourceLocation JIGSAW_RENAME
-
RENAMES
private static final java.util.Map<ResourceLocation,ResourceLocation> RENAMES
-
configuredStructureCodec
private final com.mojang.serialization.Codec<StructureFeature<C extends IFeatureConfig,Structure<C extends IFeatureConfig>>> configuredStructureCodec
-
-
Constructor Detail
-
Structure
public Structure(com.mojang.serialization.Codec<C> p_i231997_1_)
-
-
Method Detail
-
register
private static <F extends Structure<?>> F register(java.lang.String p_236394_0_, F p_236394_1_, GenerationStage.Decoration p_236394_2_)
-
step
public GenerationStage.Decoration 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
public com.mojang.serialization.Codec<StructureFeature<C,Structure<C>>> configuredStructureCodec()
-
configured
public StructureFeature<C,? extends Structure<C>> configured(C p_236391_1_)
-
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()
-
getPotentialFeatureChunk
public final ChunkPos getPotentialFeatureChunk(StructureSeparationSettings p_236392_1_, long p_236392_2_, SharedSeedRandom p_236392_4_, int p_236392_5_, int p_236392_6_)
-
isFeatureChunk
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_)
-
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_)
-
generate
public StructureStart<?> 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_)
-
getStartFactory
public abstract Structure.IStartFactory<C> getStartFactory()
-
getFeatureName
public java.lang.String getFeatureName()
-
getSpecialEnemies
public java.util.List<MobSpawnInfo.Spawners> getSpecialEnemies()
-
getSpecialAnimals
public java.util.List<MobSpawnInfo.Spawners> getSpecialAnimals()
-
getSpawnList
public final java.util.List<MobSpawnInfo.Spawners> getSpawnList(EntityClassification classification)
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.
-
-