Package net.minecraft.world.gen.feature
Class Feature<FC extends IFeatureConfig>
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Feature<?>>
-
- net.minecraft.world.gen.feature.Feature<FC>
-
- All Implemented Interfaces:
IForgeRegistryEntry<Feature<?>>
- Direct Known Subclasses:
AbstractBigMushroomFeature
,AbstractSphereReplaceConfig
,BambooFeature
,BasaltColumnFeature
,BasaltDeltasStructure
,BasaltPillarFeature
,BlockBlobFeature
,BlockPileFeature
,BlockWithContextFeature
,BlueIceFeature
,BonusChestFeature
,ChorusPlantFeature
,CoralFeature
,DecoratedFeature
,DesertWellsFeature
,DungeonsFeature
,EndGatewayFeature
,EndIslandFeature
,EndPodiumFeature
,EndSpikeFeature
,FillLayerFeature
,FlowersFeature
,FossilsFeature
,GlowstoneBlobFeature
,HugeFungusFeature
,IceAndSnowFeature
,IcebergFeature
,IceSpikeFeature
,KelpFeature
,LakesFeature
,MultipleWithChanceRandomFeature
,NetherackBlobReplacementStructure
,NetherVegetationFeature
,NoExposedOreFeature
,NoOpFeature
,OreFeature
,RandomPatchFeature
,ReplaceBlockFeature
,SeaGrassFeature
,SeaPickleFeature
,SingleRandomFeatureConfig
,SpringFeature
,TreeFeature
,TwistingVineFeature
,TwoFeatureChoiceFeature
,VinesFeature
,VoidStartPlatformFeature
,WeepingVineFeature
public abstract class Feature<FC extends IFeatureConfig> extends ForgeRegistryEntry<Feature<?>>
-
-
Nested Class Summary
-
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 ConfiguredFeature<FC,?>
configured(FC p_225566_1_)
com.mojang.serialization.Codec<ConfiguredFeature<FC,Feature<FC>>>
configuredCodec()
static boolean
isAir(IWorldGenerationBaseReader p_236297_0_, BlockPos p_236297_1_)
static boolean
isDirt(Block p_227250_0_)
static boolean
isGrassOrDirt(IWorldGenerationBaseReader p_236293_0_, BlockPos p_236293_1_)
protected static boolean
isStone(Block p_227249_0_)
abstract boolean
place(ISeedReader p_241855_1_, ChunkGenerator p_241855_2_, java.util.Random p_241855_3_, BlockPos p_241855_4_, FC p_241855_5_)
private static <C extends IFeatureConfig,F extends Feature<C>>
Fregister(java.lang.String p_214468_0_, F p_214468_1_)
protected void
setBlock(IWorldWriter p_230367_1_, BlockPos p_230367_2_, BlockState p_230367_3_)
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
NO_OP
public static final Feature<NoFeatureConfig> NO_OP
-
TREE
public static final Feature<BaseTreeFeatureConfig> TREE
-
FLOWER
public static final FlowersFeature<BlockClusterFeatureConfig> FLOWER
-
NO_BONEMEAL_FLOWER
public static final FlowersFeature<BlockClusterFeatureConfig> NO_BONEMEAL_FLOWER
-
RANDOM_PATCH
public static final Feature<BlockClusterFeatureConfig> RANDOM_PATCH
-
BLOCK_PILE
public static final Feature<BlockStateProvidingFeatureConfig> BLOCK_PILE
-
SPRING
public static final Feature<LiquidsConfig> SPRING
-
CHORUS_PLANT
public static final Feature<NoFeatureConfig> CHORUS_PLANT
-
EMERALD_ORE
public static final Feature<ReplaceBlockConfig> EMERALD_ORE
-
VOID_START_PLATFORM
public static final Feature<NoFeatureConfig> VOID_START_PLATFORM
-
DESERT_WELL
public static final Feature<NoFeatureConfig> DESERT_WELL
-
FOSSIL
public static final Feature<NoFeatureConfig> FOSSIL
-
HUGE_RED_MUSHROOM
public static final Feature<BigMushroomFeatureConfig> HUGE_RED_MUSHROOM
-
HUGE_BROWN_MUSHROOM
public static final Feature<BigMushroomFeatureConfig> HUGE_BROWN_MUSHROOM
-
ICE_SPIKE
public static final Feature<NoFeatureConfig> ICE_SPIKE
-
GLOWSTONE_BLOB
public static final Feature<NoFeatureConfig> GLOWSTONE_BLOB
-
FREEZE_TOP_LAYER
public static final Feature<NoFeatureConfig> FREEZE_TOP_LAYER
-
VINES
public static final Feature<NoFeatureConfig> VINES
-
MONSTER_ROOM
public static final Feature<NoFeatureConfig> MONSTER_ROOM
-
BLUE_ICE
public static final Feature<NoFeatureConfig> BLUE_ICE
-
ICEBERG
public static final Feature<BlockStateFeatureConfig> ICEBERG
-
FOREST_ROCK
public static final Feature<BlockStateFeatureConfig> FOREST_ROCK
-
DISK
public static final Feature<SphereReplaceConfig> DISK
-
ICE_PATCH
public static final Feature<SphereReplaceConfig> ICE_PATCH
-
LAKE
public static final Feature<BlockStateFeatureConfig> LAKE
-
ORE
public static final Feature<OreFeatureConfig> ORE
-
END_SPIKE
public static final Feature<EndSpikeFeatureConfig> END_SPIKE
-
END_ISLAND
public static final Feature<NoFeatureConfig> END_ISLAND
-
END_GATEWAY
public static final Feature<EndGatewayConfig> END_GATEWAY
-
SEAGRASS
public static final SeaGrassFeature SEAGRASS
-
KELP
public static final Feature<NoFeatureConfig> KELP
-
CORAL_TREE
public static final Feature<NoFeatureConfig> CORAL_TREE
-
CORAL_MUSHROOM
public static final Feature<NoFeatureConfig> CORAL_MUSHROOM
-
CORAL_CLAW
public static final Feature<NoFeatureConfig> CORAL_CLAW
-
SEA_PICKLE
public static final Feature<FeatureSpreadConfig> SEA_PICKLE
-
SIMPLE_BLOCK
public static final Feature<BlockWithContextConfig> SIMPLE_BLOCK
-
BAMBOO
public static final Feature<ProbabilityConfig> BAMBOO
-
HUGE_FUNGUS
public static final Feature<HugeFungusConfig> HUGE_FUNGUS
-
NETHER_FOREST_VEGETATION
public static final Feature<BlockStateProvidingFeatureConfig> NETHER_FOREST_VEGETATION
-
WEEPING_VINES
public static final Feature<NoFeatureConfig> WEEPING_VINES
-
TWISTING_VINES
public static final Feature<NoFeatureConfig> TWISTING_VINES
-
BASALT_COLUMNS
public static final Feature<ColumnConfig> BASALT_COLUMNS
-
DELTA_FEATURE
public static final Feature<BasaltDeltasFeature> DELTA_FEATURE
-
REPLACE_BLOBS
public static final Feature<BlobReplacementConfig> REPLACE_BLOBS
-
FILL_LAYER
public static final Feature<FillLayerConfig> FILL_LAYER
-
BONUS_CHEST
public static final BonusChestFeature BONUS_CHEST
-
BASALT_PILLAR
public static final Feature<NoFeatureConfig> BASALT_PILLAR
-
NO_SURFACE_ORE
public static final Feature<OreFeatureConfig> NO_SURFACE_ORE
-
RANDOM_SELECTOR
public static final Feature<MultipleRandomFeatureConfig> RANDOM_SELECTOR
-
SIMPLE_RANDOM_SELECTOR
public static final Feature<SingleRandomFeature> SIMPLE_RANDOM_SELECTOR
-
RANDOM_BOOLEAN_SELECTOR
public static final Feature<TwoFeatureChoiceConfig> RANDOM_BOOLEAN_SELECTOR
-
DECORATED
public static final Feature<DecoratedFeatureConfig> DECORATED
-
configuredCodec
private final com.mojang.serialization.Codec<ConfiguredFeature<FC extends IFeatureConfig,Feature<FC extends IFeatureConfig>>> configuredCodec
-
-
Constructor Detail
-
Feature
public Feature(com.mojang.serialization.Codec<FC> p_i231953_1_)
-
-
Method Detail
-
register
private static <C extends IFeatureConfig,F extends Feature<C>> F register(java.lang.String p_214468_0_, F p_214468_1_)
-
configuredCodec
public com.mojang.serialization.Codec<ConfiguredFeature<FC,Feature<FC>>> configuredCodec()
-
configured
public ConfiguredFeature<FC,?> configured(FC p_225566_1_)
-
setBlock
protected void setBlock(IWorldWriter p_230367_1_, BlockPos p_230367_2_, BlockState p_230367_3_)
-
place
public abstract boolean place(ISeedReader p_241855_1_, ChunkGenerator p_241855_2_, java.util.Random p_241855_3_, BlockPos p_241855_4_, FC p_241855_5_)
-
isStone
protected static boolean isStone(Block p_227249_0_)
-
isDirt
public static boolean isDirt(Block p_227250_0_)
-
isGrassOrDirt
public static boolean isGrassOrDirt(IWorldGenerationBaseReader p_236293_0_, BlockPos p_236293_1_)
-
isAir
public static boolean isAir(IWorldGenerationBaseReader p_236297_0_, BlockPos p_236297_1_)
-
-