public class TreeFeature extends AbstractTreeFeature<NoFeatureConfig>
Modifier and Type | Field and Description |
---|---|
protected int |
minTreeHeight |
sapling
BAMBOO, BIRCH_TREE, BLUE_ICE, BONUS_CHEST, BURIED_TREASURE, BUSH, CACTUS, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DARK_OAK_TREE, DEAD_BUSH, DECORATED, DECORATED_FLOWER, DEFAULT_FLOWER, DESERT_PYRAMID, DESERT_WELL, DISK, doBlockNotify, DOUBLE_PLANT, EMERALD_ORE, END_CITY, END_GATEWAY, END_ISLAND, END_SPIKE, FANCY_TREE, field_214488_aQ, FILL_LAYER, FOREST_FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GENERAL_FOREST_FLOWER, GLOWSTONE_BLOB, GRASS, HAY_PILE, HELL_FIRE, HUGE_BROWN_MUSHROOM, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_PILE, ICE_SPIKE, ICEBERG, IGLOO, JUNGLE_GRASS, JUNGLE_GROUND_BUSH, JUNGLE_TEMPLE, JUNGLE_TREE, KELP, LAKE, MEGA_JUNGLE_TREE, MEGA_PINE_TREE, MEGA_SPRUCE_TREE, MELON, MELON_PILE, MINESHAFT, MONSTER_ROOM, NETHER_BRIDGE, NETHER_SPRING, NORMAL_TREE, OCEAN_MONUMENT, OCEAN_RUIN, ORE, PILLAGER_OUTPOST, PINE_TREE, PLAIN_FLOWER, PUMPKIN, PUMPKIN_PILE, RANDOM_BOOLEAN_SELECTOR, RANDOM_RANDOM_SELECTOR, RANDOM_SELECTOR, REED, SAVANNA_TREE, SEA_PICKLE, SEAGRASS, SHIPWRECK, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SNOW_PILE, SPRING_FEATURE, SPRUCE_TREE, STRONGHOLD, STRUCTURES, SUPER_BIRCH_TREE, SWAMP_FLOWER, SWAMP_HUT, SWAMP_TREE, SWEET_BERRY_BUSH, TAIGA_GRASS, VILLAGE, VINES, VOID_START_PLATFORM, WATERLILY, WOODLAND_MANSION
delegate
Constructor and Description |
---|
TreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends NoFeatureConfig> configFactoryIn,
boolean doBlockNotifyOnPlace) |
TreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends NoFeatureConfig> configFactoryIn,
boolean doBlockNotifyOnPlace,
int minTreeHeightIn,
BlockState trunkState,
BlockState leafState,
boolean vinesGrowIn) |
Modifier and Type | Method and Description |
---|---|
protected int |
getHeight(java.util.Random random) |
boolean |
place(java.util.Set<BlockPos> changedBlocks,
IWorldGenerationReader worldIn,
java.util.Random rand,
BlockPos position,
MutableBoundingBox p_208519_5_) |
func_214576_j, func_214584_a, func_214587_a, getSapling, isAir, isAirOrLeaves, isDirt, isDirtOrGrassBlock, isDirtOrGrassBlockOrFarmland, isLeaves, isSoil, isSoilOrFarm, isWater, place, setBlockState, setDirtAt, setLogState, setSapling
createConfig, getCreatureSpawnList, getSpawnList
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public TreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends NoFeatureConfig> configFactoryIn, boolean doBlockNotifyOnPlace)
public TreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends NoFeatureConfig> configFactoryIn, boolean doBlockNotifyOnPlace, int minTreeHeightIn, BlockState trunkState, BlockState leafState, boolean vinesGrowIn)
public boolean place(java.util.Set<BlockPos> changedBlocks, IWorldGenerationReader worldIn, java.util.Random rand, BlockPos position, MutableBoundingBox p_208519_5_)
place
in class AbstractTreeFeature<NoFeatureConfig>
protected int getHeight(java.util.Random random)