public abstract class Feature<FC extends FeatureConfig> extends Object
Constructor and Description |
---|
Feature(com.mojang.serialization.Codec<FC> configCodec) |
Modifier and Type | Method and 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>> |
register(String name,
F feature) |
protected void |
setBlockState(ModifiableWorld world,
BlockPos pos,
BlockState state) |
public static final Feature<DefaultFeatureConfig> NO_OP
public static final Feature<TreeFeatureConfig> TREE
public static final FlowerFeature<RandomPatchFeatureConfig> FLOWER
public static final FlowerFeature<RandomPatchFeatureConfig> NO_BONEMEAL_FLOWER
public static final Feature<RandomPatchFeatureConfig> RANDOM_PATCH
public static final Feature<BlockPileFeatureConfig> BLOCK_PILE
public static final Feature<SpringFeatureConfig> SPRING_FEATURE
public static final Feature<DefaultFeatureConfig> CHORUS_PLANT
public static final Feature<EmeraldOreFeatureConfig> EMERALD_ORE
public static final Feature<DefaultFeatureConfig> VOID_START_PLATFORM
public static final Feature<DefaultFeatureConfig> DESERT_WELL
public static final Feature<DefaultFeatureConfig> FOSSIL
public static final Feature<HugeMushroomFeatureConfig> HUGE_RED_MUSHROOM
public static final Feature<HugeMushroomFeatureConfig> HUGE_BROWN_MUSHROOM
public static final Feature<DefaultFeatureConfig> ICE_SPIKE
public static final Feature<DefaultFeatureConfig> GLOWSTONE_BLOB
public static final Feature<DefaultFeatureConfig> FREEZE_TOP_LAYER
public static final Feature<DefaultFeatureConfig> VINES
public static final Feature<DefaultFeatureConfig> MONSTER_ROOM
public static final Feature<DefaultFeatureConfig> BLUE_ICE
public static final Feature<SingleStateFeatureConfig> ICEBERG
public static final Feature<SingleStateFeatureConfig> FOREST_ROCK
public static final Feature<DiskFeatureConfig> DISK
public static final Feature<DiskFeatureConfig> ICE_PATCH
public static final Feature<SingleStateFeatureConfig> LAKE
public static final Feature<OreFeatureConfig> ORE
public static final Feature<EndSpikeFeatureConfig> END_SPIKE
public static final Feature<DefaultFeatureConfig> END_ISLAND
public static final Feature<EndGatewayFeatureConfig> END_GATEWAY
public static final SeagrassFeature SEAGRASS
public static final Feature<DefaultFeatureConfig> KELP
public static final Feature<DefaultFeatureConfig> CORAL_TREE
public static final Feature<DefaultFeatureConfig> CORAL_MUSHROOM
public static final Feature<DefaultFeatureConfig> CORAL_CLAW
public static final Feature<CountConfig> SEA_PICKLE
public static final Feature<SimpleBlockFeatureConfig> SIMPLE_BLOCK
public static final Feature<ProbabilityConfig> BAMBOO
public static final Feature<HugeFungusFeatureConfig> HUGE_FUNGUS
public static final Feature<BlockPileFeatureConfig> NETHER_FOREST_VEGETATION
public static final Feature<DefaultFeatureConfig> WEEPING_VINES
public static final Feature<DefaultFeatureConfig> TWISTING_VINES
public static final Feature<BasaltColumnsFeatureConfig> BASALT_COLUMNS
public static final Feature<DeltaFeatureConfig> DELTA_FEATURE
public static final Feature<NetherrackReplaceBlobsFeatureConfig> NETHERRACK_REPLACE_BLOBS
public static final Feature<FillLayerFeatureConfig> FILL_LAYER
public static final BonusChestFeature BONUS_CHEST
public static final Feature<DefaultFeatureConfig> BASALT_PILLAR
public static final Feature<OreFeatureConfig> NO_SURFACE_ORE
public static final Feature<RandomFeatureConfig> RANDOM_SELECTOR
public static final Feature<SimpleRandomFeatureConfig> SIMPLE_RANDOM_SELECTOR
public static final Feature<RandomBooleanFeatureConfig> RANDOM_BOOLEAN_SELECTOR
public static final Feature<DecoratedFeatureConfig> DECORATED
private final com.mojang.serialization.Codec<ConfiguredFeature<FC extends FeatureConfig,Feature<FC extends FeatureConfig>>> codec
public Feature(com.mojang.serialization.Codec<FC> configCodec)
private static <C extends FeatureConfig,F extends Feature<C>> F register(String name, F feature)
public com.mojang.serialization.Codec<ConfiguredFeature<FC,Feature<FC>>> getCodec()
public ConfiguredFeature<FC,?> configure(FC config)
protected void setBlockState(ModifiableWorld world, BlockPos pos, BlockState state)
public abstract boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos, FC config)
protected static boolean isStone(Block block)
public static boolean isSoil(Block block)
public static boolean isSoil(TestableWorld world, BlockPos pos)
public static boolean isAir(TestableWorld world, BlockPos pos)