Class StructureFeature<C extends FeatureConfiguration>
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<StructureFeature<?>>
net.minecraft.world.level.levelgen.feature.StructureFeature<C>
- All Implemented Interfaces:
IForgeRegistryEntry<StructureFeature<?>>
- Direct Known Subclasses:
BuriedTreasureFeature
,DesertPyramidFeature
,EndCityFeature
,IglooFeature
,JigsawFeature
,JunglePyramidFeature
,MineshaftFeature
,NetherFortressFeature
,NetherFossilFeature
,OceanMonumentFeature
,OceanRuinFeature
,RuinedPortalFeature
,ShipwreckFeature
,StrongholdFeature
,SwamplandHutFeature
,WoodlandMansionFeature
public abstract class StructureFeature<C extends FeatureConfiguration>
extends ForgeRegistryEntry<StructureFeature<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StructureFeature<JigsawConfiguration>
static final StructureFeature<ProbabilityFeatureConfiguration>
private final com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
private static final org.slf4j.Logger
static final int
static final StructureFeature<MineshaftConfiguration>
static final StructureFeature<RangeConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<OceanRuinConfiguration>
private final PieceGeneratorSupplier<C>
static final StructureFeature<JigsawConfiguration>
private final PostPlacementProcessor
static final StructureFeature<RuinedPortalConfiguration>
static final StructureFeature<ShipwreckConfiguration>
private static final Map<StructureFeature<?>,
GenerationStep.Decoration> static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
static final StructureFeature<JigsawConfiguration>
static final StructureFeature<NoneFeatureConfiguration>
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorDescriptionStructureFeature
(com.mojang.serialization.Codec<C> p_197165_, PieceGeneratorSupplier<C> p_197166_) StructureFeature
(com.mojang.serialization.Codec<C> p_197168_, PieceGeneratorSupplier<C> p_197169_, PostPlacementProcessor p_197170_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
boolean
canGenerate
(RegistryAccess p_197172_, ChunkGenerator p_197173_, BiomeSource p_197174_, StructureManager p_197175_, long p_197176_, ChunkPos p_197177_, C p_197178_, LevelHeightAccessor p_197179_, Predicate<Holder<Biome>> p_197180_) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configured
(C p_209763_, TagKey<Biome> p_209764_) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configured
(C p_209770_, TagKey<Biome> p_209771_, boolean p_209772_) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configured
(C p_209774_, TagKey<Biome> p_209775_, boolean p_209776_, Map<MobCategory, StructureSpawnOverride> p_209777_) ConfiguredStructureFeature<C,
? extends StructureFeature<C>> configured
(C p_209766_, TagKey<Biome> p_209767_, Map<MobCategory, StructureSpawnOverride> p_209768_) com.mojang.serialization.Codec<ConfiguredStructureFeature<C,
StructureFeature<C>>> static BlockPos
getLocatePos
(RandomSpreadStructurePlacement p_204767_, ChunkPos p_204768_) static StructureStart
loadStaticStart
(StructurePieceSerializationContext p_191129_, CompoundTag p_191130_, long p_191131_) private static <F extends StructureFeature<?>>
Fregister
(String p_67090_, F p_67091_, GenerationStep.Decoration p_67092_) step()
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
STEP
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PILLAGER_OUTPOST
-
MINESHAFT
-
WOODLAND_MANSION
-
JUNGLE_TEMPLE
-
DESERT_PYRAMID
-
IGLOO
-
RUINED_PORTAL
-
SHIPWRECK
-
SWAMP_HUT
-
STRONGHOLD
-
OCEAN_MONUMENT
-
OCEAN_RUIN
-
FORTRESS
-
END_CITY
-
BURIED_TREASURE
-
VILLAGE
-
NETHER_FOSSIL
-
BASTION_REMNANT
-
MAX_STRUCTURE_RANGE
public static final int MAX_STRUCTURE_RANGE- See Also:
-
configuredStructureCodec
private final com.mojang.serialization.Codec<ConfiguredStructureFeature<C extends FeatureConfiguration,StructureFeature<C extends FeatureConfiguration>>> configuredStructureCodec -
pieceGenerator
-
postPlacementProcessor
-
-
Constructor Details
-
StructureFeature
public StructureFeature(com.mojang.serialization.Codec<C> p_197165_, PieceGeneratorSupplier<C> p_197166_) -
StructureFeature
public StructureFeature(com.mojang.serialization.Codec<C> p_197168_, PieceGeneratorSupplier<C> p_197169_, PostPlacementProcessor p_197170_)
-
-
Method Details
-
register
private static <F extends StructureFeature<?>> F register(String p_67090_, F p_67091_, GenerationStep.Decoration p_67092_) -
step
-
bootstrap
public static void bootstrap() -
loadStaticStart
@Nullable public static StructureStart loadStaticStart(StructurePieceSerializationContext p_191129_, CompoundTag p_191130_, long p_191131_) -
configuredStructureCodec
public com.mojang.serialization.Codec<ConfiguredStructureFeature<C,StructureFeature<C>>> configuredStructureCodec() -
configured
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configured(C p_209763_, TagKey<Biome> p_209764_) -
configured
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configured(C p_209770_, TagKey<Biome> p_209771_, boolean p_209772_) -
configured
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configured(C p_209766_, TagKey<Biome> p_209767_, Map<MobCategory, StructureSpawnOverride> p_209768_) -
configured
public ConfiguredStructureFeature<C,? extends StructureFeature<C>> configured(C p_209774_, TagKey<Biome> p_209775_, boolean p_209776_, Map<MobCategory, StructureSpawnOverride> p_209777_) -
getLocatePos
-
canGenerate
public boolean canGenerate(RegistryAccess p_197172_, ChunkGenerator p_197173_, BiomeSource p_197174_, StructureManager p_197175_, long p_197176_, ChunkPos p_197177_, C p_197178_, LevelHeightAccessor p_197179_, Predicate<Holder<Biome>> p_197180_) -
pieceGeneratorSupplier
-
getPostPlacementProcessor
-