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:
AbstractFlowerFeature
,AbstractHugeMushroomFeature
,BambooFeature
,BasaltColumnsFeature
,BasaltPillarFeature
,BaseDiskFeature
,BlockBlobFeature
,BlockPileFeature
,BlueIceFeature
,BonusChestFeature
,ChorusPlantFeature
,CoralFeature
,DecoratedFeature
,DeltaFeature
,DesertWellFeature
,DripstoneClusterFeature
,EndGatewayFeature
,EndIslandFeature
,EndPodiumFeature
,FillLayerFeature
,FossilFeature
,GeodeFeature
,GlowLichenFeature
,GlowstoneFeature
,GrowingPlantFeature
,HugeFungusFeature
,IcebergFeature
,IceSpikeFeature
,KelpFeature
,LakeFeature
,LargeDripstoneFeature
,MonsterRoomFeature
,NetherForestVegetationFeature
,NoOpFeature
,OreFeature
,RandomBooleanSelectorFeature
,RandomPatchFeature
,RandomSelectorFeature
,ReplaceBlobsFeature
,ReplaceBlockFeature
,RootSystemFeature
,ScatteredOreFeature
,SeagrassFeature
,SeaPickleFeature
,SimpleBlockFeature
,SimpleRandomSelectorFeature
,SmallDripstoneFeature
,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 Feature<ColumnFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<BlockPileConfiguration>
static Feature<NoneFeatureConfiguration>
static BonusChestFeature
static Feature<NoneFeatureConfiguration>
private com.mojang.serialization.Codec<ConfiguredFeature<FC,Feature<FC>>>
static Feature<NoneFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<DecoratedFeatureConfiguration>
static Feature<DeltaFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<DiskConfiguration>
static Feature<DripstoneClusterConfiguration>
static Feature<EndGatewayConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<SpikeConfiguration>
static Feature<LayerConfiguration>
static Feature<BlockStateConfiguration>
static Feature<FossilFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<GeodeConfiguration>
static Feature<GlowLichenConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<GrowingPlantConfiguration>
static Feature<HugeFungusConfiguration>
static Feature<DiskConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<BlockStateConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<BlockStateConfiguration>
static Feature<LargeDripstoneConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<BlockPileConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<OreConfiguration>
static Feature<RandomPatchConfiguration>
static Feature<RandomFeatureConfiguration>
static Feature<ReplaceSphereConfiguration>
static Feature<ReplaceBlockConfiguration>
static Feature<RootSystemConfiguration>
static Feature<OreConfiguration>
static Feature<CountConfiguration>
static SeagrassFeature
static Feature<SimpleBlockConfiguration>
static Feature<SmallDripstoneConfiguration>
static Feature<SpringConfiguration>
static Feature<TreeConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<UnderwaterMagmaConfiguration>
static Feature<VegetationPatchConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<NoneFeatureConfiguration>
static Feature<VegetationPatchConfiguration>
static 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_)
ConfiguredFeature<FC,?>
configured(FC p_65816_)
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(ResourceLocation p_159758_)
protected static boolean
isStone(BlockState p_159748_)
protected void
markAboveForPostProcessing(WorldGenLevel p_159740_, BlockPos p_159741_)
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
-
GROWING_PLANT
-
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
-
DECORATED
-
GEODE
-
DRIPSTONE_CLUSTER
-
LARGE_DRIPSTONE
-
SMALL_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
-
configured
-
setBlock
-
isReplaceable
-
safeSetBlock
protected void safeSetBlock(WorldGenLevel p_159743_, BlockPos p_159744_, BlockState p_159745_, Predicate<BlockState> p_159746_) -
place
-
isStone
-
isDirt
-
isGrassOrDirt
-
isAir
-
checkNeighbors
public static boolean checkNeighbors(Function<BlockPos,BlockState> p_159754_, BlockPos p_159755_, Predicate<BlockState> p_159756_) -
isAdjacentToAir
public static boolean isAdjacentToAir(Function<BlockPos,BlockState> p_159751_, BlockPos p_159752_) -
markAboveForPostProcessing
-