Class Feature<FC extends FeatureConfiguration>
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Feature<?>>
net.minecraft.world.level.levelgen.feature.Feature<FC>
- All Implemented Interfaces:
IForgeRegistryEntry<Feature<?>>
- Direct Known Subclasses:
AbstractHugeMushroomFeature
,BambooFeature
,BasaltColumnsFeature
,BasaltPillarFeature
,BaseDiskFeature
,BlockBlobFeature
,BlockColumnFeature
,BlockPileFeature
,BlueIceFeature
,BonusChestFeature
,ChorusPlantFeature
,CoralFeature
,DeltaFeature
,DesertWellFeature
,DripstoneClusterFeature
,EndGatewayFeature
,EndIslandFeature
,EndPodiumFeature
,FillLayerFeature
,FossilFeature
,GeodeFeature
,GlowLichenFeature
,GlowstoneFeature
,HugeFungusFeature
,IcebergFeature
,IceSpikeFeature
,KelpFeature
,LakeFeature
,LargeDripstoneFeature
,MonsterRoomFeature
,NetherForestVegetationFeature
,NoOpFeature
,OreFeature
,PointedDripstoneFeature
,RandomBooleanSelectorFeature
,RandomPatchFeature
,RandomSelectorFeature
,ReplaceBlobsFeature
,ReplaceBlockFeature
,RootSystemFeature
,ScatteredOreFeature
,SeagrassFeature
,SeaPickleFeature
,SimpleBlockFeature
,SimpleRandomSelectorFeature
,SnowAndFreezeFeature
,SpikeFeature
,SpringFeature
,TreeFeature
,TwistingVinesFeature
,UnderwaterMagmaFeature
,VegetationPatchFeature
,VinesFeature
,VoidStartPlatformFeature
,WeepingVinesFeature
public abstract class Feature<FC extends FeatureConfiguration>
extends ForgeRegistryEntry<Feature<?>>
-
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 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.Codec<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<GlowLichenConfiguration>
static final Feature<NoneFeatureConfiguration>
static final Feature<HugeMushroomFeatureConfiguration>
static final Feature<HugeFungusConfiguration>
static final Feature<HugeMushroomFeatureConfiguration>
static final Feature<DiskConfiguration>
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<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<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>
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkNeighbors
(Function<BlockPos, BlockState> p_159754_, BlockPos p_159755_, Predicate<BlockState> p_159756_) com.mojang.serialization.Codec<ConfiguredFeature<FC,
Feature<FC>>> static boolean
isAdjacentToAir
(Function<BlockPos, BlockState> p_159751_, BlockPos p_159752_) static boolean
isAir
(LevelSimulatedReader p_65811_, BlockPos p_65812_) 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_204741_, WorldGenLevel p_204742_, ChunkGenerator p_204743_, Random p_204744_, BlockPos p_204745_) 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_) Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
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
-
GLOW_LICHEN
-
UNDERWATER_MAGMA
-
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
-
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
-
configuredCodec
private final com.mojang.serialization.Codec<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_204741_, WorldGenLevel p_204742_, ChunkGenerator p_204743_, Random p_204744_, BlockPos p_204745_) -
isStone
-
isDirt
-
isGrassOrDirt
-
isAir
-
checkNeighbors
public static boolean checkNeighbors(Function<BlockPos, BlockState> p_159754_, BlockPos p_159755_, Predicate<BlockState> p_159756_) -
isAdjacentToAir
-
markAboveForPostProcessing
-