Package net.minecraft.world.gen.feature
Class Feature<FC extends FeatureConfig>
java.lang.Object
net.minecraft.world.gen.feature.Feature<FC>
- Direct Known Subclasses:
AbstractPileFeature
,BambooFeature
,BasaltColumnsFeature
,BasaltPillarFeature
,BlueIceFeature
,BonusChestFeature
,ChorusPlantFeature
,CoralFeature
,DecoratedFeature
,DeltaFeature
,DesertWellFeature
,DiskFeature
,DungeonFeature
,EmeraldOreFeature
,EndGatewayFeature
,EndIslandFeature
,EndPortalFeature
,EndSpikeFeature
,FillLayerFeature
,FlowerFeature
,ForestRockFeature
,FossilFeature
,FreezeTopLayerFeature
,GlowstoneBlobFeature
,HugeFungusFeature
,HugeMushroomFeature
,IcebergFeature
,IceSpikeFeature
,KelpFeature
,LakeFeature
,NetherForestVegetationFeature
,NetherrackReplaceBlobsFeature
,NoOpFeature
,NoSurfaceOreFeature
,OreFeature
,RandomBooleanFeature
,RandomFeature
,RandomPatchFeature
,SeagrassFeature
,SeaPickleFeature
,SimpleBlockFeature
,SimpleRandomFeature
,SpringFeature
,TreeFeature
,TwistingVinesFeature
,VinesFeature
,VoidStartPlatformFeature
,WeepingVinesFeature
public abstract class Feature<FC extends FeatureConfig> extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description ConfiguredFeature<FC,?>
configure(FC config)
abstract boolean
generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos, FC config)
com.mojang.serialization.Codec<ConfiguredFeature<FC,Feature<FC>>>
getCodec()
static boolean
isAir(TestableWorld world, BlockPos pos)
static boolean
isSoil(Block block)
static boolean
isSoil(TestableWorld world, BlockPos pos)
protected static boolean
isStone(Block block)
private static <C extends FeatureConfig, F extends Feature<C>>
Fregister(String name, F feature)
protected void
setBlockState(ModifiableWorld world, BlockPos pos, BlockState state)
-
Field Details
-
NO_OP
-
TREE
-
FLOWER
-
NO_BONEMEAL_FLOWER
-
RANDOM_PATCH
-
BLOCK_PILE
-
SPRING_FEATURE
-
CHORUS_PLANT
-
EMERALD_ORE
-
VOID_START_PLATFORM
-
DESERT_WELL
-
FOSSIL
-
HUGE_RED_MUSHROOM
-
HUGE_BROWN_MUSHROOM
-
ICE_SPIKE
-
GLOWSTONE_BLOB
-
FREEZE_TOP_LAYER
-
VINES
-
MONSTER_ROOM
-
BLUE_ICE
-
ICEBERG
-
FOREST_ROCK
-
DISK
-
ICE_PATCH
-
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
-
NETHERRACK_REPLACE_BLOBS
-
FILL_LAYER
-
BONUS_CHEST
-
BASALT_PILLAR
-
NO_SURFACE_ORE
-
RANDOM_SELECTOR
-
SIMPLE_RANDOM_SELECTOR
-
RANDOM_BOOLEAN_SELECTOR
-
DECORATED
-
codec
private final com.mojang.serialization.Codec<ConfiguredFeature<FC extends FeatureConfig,Feature<FC extends FeatureConfig>>> codec
-
-
Constructor Details
-
Feature
-
-
Method Details
-
register
-
getCodec
-
configure
-
setBlockState
-
generate
public abstract boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos, FC config) -
isStone
-
isSoil
-
isSoil
-
isAir
-