Class Feature<FC extends FeatureConfiguration>
java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<FC>
- Direct Known Subclasses:
AbstractHugeMushroomFeature
,BambooFeature
,BasaltColumnsFeature
,BasaltPillarFeature
,BlockBlobFeature
,BlockColumnFeature
,BlockPileFeature
,BlueIceFeature
,BonusChestFeature
,ChorusPlantFeature
,CoralFeature
,DeltaFeature
,DesertWellFeature
,DiskFeature
,DripstoneClusterFeature
,EndGatewayFeature
,EndIslandFeature
,EndPodiumFeature
,FillLayerFeature
,FossilFeature
,GeodeFeature
,GlowstoneFeature
,HugeFungusFeature
,IcebergFeature
,IceSpikeFeature
,KelpFeature
,LakeFeature
,LargeDripstoneFeature
,MonsterRoomFeature
,MultifaceGrowthFeature
,NetherForestVegetationFeature
,NoOpFeature
,OreFeature
,PointedDripstoneFeature
,RandomBooleanSelectorFeature
,RandomPatchFeature
,RandomSelectorFeature
,ReplaceBlobsFeature
,ReplaceBlockFeature
,RootSystemFeature
,ScatteredOreFeature
,SculkPatchFeature
,SeagrassFeature
,SeaPickleFeature
,SimpleBlockFeature
,SimpleRandomSelectorFeature
,SnowAndFreezeFeature
,SpikeFeature
,SpringFeature
,TreeFeature
,TwistingVinesFeature
,UnderwaterMagmaFeature
,VegetationPatchFeature
,VinesFeature
,VoidStartPlatformFeature
,WeepingVinesFeature
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Feature
<ProbabilityFeatureConfiguration> static final Feature
<ColumnFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<BlockColumnConfiguration> static final Feature
<BlockPileConfiguration> static final Feature
<NoneFeatureConfiguration> static final BonusChestFeature
static final Feature
<NoneFeatureConfiguration> private final com.mojang.serialization.MapCodec
<ConfiguredFeature<FC, Feature<FC>>> static final Feature
<NoneFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<DeltaFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<DiskConfiguration> static final Feature
<DripstoneClusterConfiguration> static final Feature
<EndGatewayConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<SpikeConfiguration> static final Feature
<LayerConfiguration> static final Feature
<RandomPatchConfiguration> static final Feature
<BlockStateConfiguration> static final Feature
<FossilFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<GeodeConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<HugeMushroomFeatureConfiguration> static final Feature
<HugeFungusConfiguration> static final Feature
<HugeMushroomFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<BlockStateConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<LakeFeature.Configuration> static final Feature
<LargeDripstoneConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<MultifaceGrowthConfiguration> static final Feature
<NetherForestVegetationConfig> static final Feature
<RandomPatchConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<OreConfiguration> static final Feature
<PointedDripstoneConfiguration> static final Feature
<RandomBooleanFeatureConfiguration> static final Feature
<RandomPatchConfiguration> static final Feature
<RandomFeatureConfiguration> static final Feature
<ReplaceSphereConfiguration> static final Feature
<ReplaceBlockConfiguration> static final Feature
<RootSystemConfiguration> static final Feature
<OreConfiguration> static final Feature
<SculkPatchConfiguration> static final Feature
<CountConfiguration> static final SeagrassFeature
static final Feature
<SimpleBlockConfiguration> static final Feature
<SimpleRandomFeatureConfiguration> static final Feature
<SpringConfiguration> static final Feature
<TreeConfiguration> static final Feature
<TwistingVinesConfig> static final Feature
<UnderwaterMagmaConfiguration> static final Feature
<VegetationPatchConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<NoneFeatureConfiguration> static final Feature
<VegetationPatchConfiguration> static final Feature
<NoneFeatureConfiguration> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkNeighbors
(Function<BlockPos, BlockState> p_159754_, BlockPos p_159755_, Predicate<BlockState> p_159756_) com.mojang.serialization.MapCodec
<ConfiguredFeature<FC, Feature<FC>>> static boolean
isAdjacentToAir
(Function<BlockPos, BlockState> p_159751_, BlockPos p_159752_) static boolean
isDirt
(BlockState p_159760_) static boolean
isGrassOrDirt
(LevelSimulatedReader p_65789_, BlockPos p_65790_) static Predicate
<BlockState> isReplaceable
(TagKey<Block> p_204736_) protected static boolean
isStone
(BlockState p_159748_) protected void
markAboveForPostProcessing
(WorldGenLevel p_159740_, BlockPos p_159741_) boolean
place
(FC p_225029_, WorldGenLevel p_225030_, ChunkGenerator p_225031_, RandomSource p_225032_, BlockPos p_225033_) abstract boolean
place
(FeaturePlaceContext<FC> p_159749_) private static <C extends FeatureConfiguration,
F extends Feature<C>>
Fprotected void
safeSetBlock
(WorldGenLevel p_159743_, BlockPos p_159744_, BlockState p_159745_, Predicate<BlockState> p_159746_) protected void
setBlock
(LevelWriter p_65791_, BlockPos p_65792_, BlockState p_65793_)
-
Field Details
-
NO_OP
-
TREE
-
FLOWER
-
NO_BONEMEAL_FLOWER
-
RANDOM_PATCH
-
BLOCK_PILE
-
SPRING
-
CHORUS_PLANT
-
REPLACE_SINGLE_BLOCK
-
VOID_START_PLATFORM
-
DESERT_WELL
-
FOSSIL
-
HUGE_RED_MUSHROOM
-
HUGE_BROWN_MUSHROOM
-
ICE_SPIKE
-
GLOWSTONE_BLOB
-
FREEZE_TOP_LAYER
-
VINES
-
BLOCK_COLUMN
-
VEGETATION_PATCH
-
WATERLOGGED_VEGETATION_PATCH
-
ROOT_SYSTEM
-
MULTIFACE_GROWTH
-
UNDERWATER_MAGMA
-
MONSTER_ROOM
-
BLUE_ICE
-
ICEBERG
-
FOREST_ROCK
-
DISK
-
LAKE
-
ORE
-
END_SPIKE
-
END_ISLAND
-
END_GATEWAY
-
SEAGRASS
-
KELP
-
CORAL_TREE
-
CORAL_MUSHROOM
-
CORAL_CLAW
-
SEA_PICKLE
-
SIMPLE_BLOCK
-
BAMBOO
-
HUGE_FUNGUS
-
NETHER_FOREST_VEGETATION
-
WEEPING_VINES
-
TWISTING_VINES
-
BASALT_COLUMNS
-
DELTA_FEATURE
-
REPLACE_BLOBS
-
FILL_LAYER
-
BONUS_CHEST
-
BASALT_PILLAR
-
SCATTERED_ORE
-
RANDOM_SELECTOR
-
SIMPLE_RANDOM_SELECTOR
-
RANDOM_BOOLEAN_SELECTOR
-
GEODE
-
DRIPSTONE_CLUSTER
-
LARGE_DRIPSTONE
-
POINTED_DRIPSTONE
-
SCULK_PATCH
-
configuredCodec
private final com.mojang.serialization.MapCodec<ConfiguredFeature<FC extends FeatureConfiguration,Feature<FC extends FeatureConfiguration>>> configuredCodec
-
-
Constructor Details
-
Feature
-
-
Method Details
-
register
private static <C extends FeatureConfiguration,F extends Feature<C>> F register(String p_65808_, F p_65809_) -
configuredCodec
-
setBlock
-
isReplaceable
-
safeSetBlock
protected void safeSetBlock(WorldGenLevel p_159743_, BlockPos p_159744_, BlockState p_159745_, Predicate<BlockState> p_159746_) -
place
-
place
public boolean place(FC p_225029_, WorldGenLevel p_225030_, ChunkGenerator p_225031_, RandomSource p_225032_, BlockPos p_225033_) -
isStone
-
isDirt
-
isGrassOrDirt
-
checkNeighbors
public static boolean checkNeighbors(Function<BlockPos, BlockState> p_159754_, BlockPos p_159755_, Predicate<BlockState> p_159756_) -
isAdjacentToAir
-
markAboveForPostProcessing
-