Package net.minecraft.world.gen.feature
Class TreeFeature
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Feature<?>>
-
- net.minecraft.world.gen.feature.Feature<BaseTreeFeatureConfig>
-
- net.minecraft.world.gen.feature.TreeFeature
-
- All Implemented Interfaces:
IForgeRegistryEntry<Feature<?>>
public class TreeFeature extends Feature<BaseTreeFeatureConfig>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
-
Fields inherited from class net.minecraft.world.gen.feature.Feature
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DECORATED, DELTA_FEATURE, DESERT_WELL, DISK, EMERALD_ORE, END_GATEWAY, END_ISLAND, END_SPIKE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_FUNGUS, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_SPIKE, ICEBERG, KELP, LAKE, MONSTER_ROOM, NETHER_FOREST_VEGETATION, NO_BONEMEAL_FLOWER, NO_OP, NO_SURFACE_ORE, ORE, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_SELECTOR, REPLACE_BLOBS, SEA_PICKLE, SEAGRASS, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING, TREE, TWISTING_VINES, VINES, VOID_START_PLATFORM, WEEPING_VINES
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description TreeFeature(com.mojang.serialization.Codec<BaseTreeFeatureConfig> p_i231999_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
doPlace(IWorldGenerationReader p_225557_1_, java.util.Random p_225557_2_, BlockPos p_225557_3_, java.util.Set<BlockPos> p_225557_4_, java.util.Set<BlockPos> p_225557_5_, MutableBoundingBox p_225557_6_, BaseTreeFeatureConfig p_225557_7_)
private int
getMaxFreeTreeHeight(IWorldGenerationBaseReader p_241521_1_, int p_241521_2_, BlockPos p_241521_3_, BaseTreeFeatureConfig p_241521_4_)
static boolean
isAirOrLeaves(IWorldGenerationBaseReader p_236412_0_, BlockPos p_236412_1_)
private static boolean
isBlockWater(IWorldGenerationBaseReader p_236416_0_, BlockPos p_236416_1_)
static boolean
isFree(IWorldGenerationBaseReader p_236410_0_, BlockPos p_236410_1_)
private static boolean
isGrassOrDirtOrFarmland(IWorldGenerationBaseReader p_236418_0_, BlockPos p_236418_1_)
private static boolean
isReplaceablePlant(IWorldGenerationBaseReader p_236419_0_, BlockPos p_236419_1_)
private static boolean
isVine(IWorldGenerationBaseReader p_236414_0_, BlockPos p_236414_1_)
boolean
place(ISeedReader p_241855_1_, ChunkGenerator p_241855_2_, java.util.Random p_241855_3_, BlockPos p_241855_4_, BaseTreeFeatureConfig p_241855_5_)
protected void
setBlock(IWorldWriter p_230367_1_, BlockPos p_230367_2_, BlockState p_230367_3_)
static void
setBlockKnownShape(IWorldWriter p_236408_0_, BlockPos p_236408_1_, BlockState p_236408_2_)
private VoxelShapePart
updateLeaves(IWorld p_236403_1_, MutableBoundingBox p_236403_2_, java.util.Set<BlockPos> p_236403_3_, java.util.Set<BlockPos> p_236403_4_)
static boolean
validTreePos(IWorldGenerationBaseReader p_236404_0_, BlockPos p_236404_1_)
-
Methods inherited from class net.minecraft.world.gen.feature.Feature
configured, configuredCodec, isAir, isDirt, isGrassOrDirt, isStone
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Constructor Detail
-
TreeFeature
public TreeFeature(com.mojang.serialization.Codec<BaseTreeFeatureConfig> p_i231999_1_)
-
-
Method Detail
-
isFree
public static boolean isFree(IWorldGenerationBaseReader p_236410_0_, BlockPos p_236410_1_)
-
isVine
private static boolean isVine(IWorldGenerationBaseReader p_236414_0_, BlockPos p_236414_1_)
-
isBlockWater
private static boolean isBlockWater(IWorldGenerationBaseReader p_236416_0_, BlockPos p_236416_1_)
-
isAirOrLeaves
public static boolean isAirOrLeaves(IWorldGenerationBaseReader p_236412_0_, BlockPos p_236412_1_)
-
isGrassOrDirtOrFarmland
private static boolean isGrassOrDirtOrFarmland(IWorldGenerationBaseReader p_236418_0_, BlockPos p_236418_1_)
-
isReplaceablePlant
private static boolean isReplaceablePlant(IWorldGenerationBaseReader p_236419_0_, BlockPos p_236419_1_)
-
setBlockKnownShape
public static void setBlockKnownShape(IWorldWriter p_236408_0_, BlockPos p_236408_1_, BlockState p_236408_2_)
-
validTreePos
public static boolean validTreePos(IWorldGenerationBaseReader p_236404_0_, BlockPos p_236404_1_)
-
doPlace
private boolean doPlace(IWorldGenerationReader p_225557_1_, java.util.Random p_225557_2_, BlockPos p_225557_3_, java.util.Set<BlockPos> p_225557_4_, java.util.Set<BlockPos> p_225557_5_, MutableBoundingBox p_225557_6_, BaseTreeFeatureConfig p_225557_7_)
-
getMaxFreeTreeHeight
private int getMaxFreeTreeHeight(IWorldGenerationBaseReader p_241521_1_, int p_241521_2_, BlockPos p_241521_3_, BaseTreeFeatureConfig p_241521_4_)
-
setBlock
protected void setBlock(IWorldWriter p_230367_1_, BlockPos p_230367_2_, BlockState p_230367_3_)
- Overrides:
setBlock
in classFeature<BaseTreeFeatureConfig>
-
place
public final boolean place(ISeedReader p_241855_1_, ChunkGenerator p_241855_2_, java.util.Random p_241855_3_, BlockPos p_241855_4_, BaseTreeFeatureConfig p_241855_5_)
- Specified by:
place
in classFeature<BaseTreeFeatureConfig>
-
updateLeaves
private VoxelShapePart updateLeaves(IWorld p_236403_1_, MutableBoundingBox p_236403_2_, java.util.Set<BlockPos> p_236403_3_, java.util.Set<BlockPos> p_236403_4_)
-
-