public abstract class AbstractTreeFeature<T extends IFeatureConfig> extends Feature<T>
Modifier and Type | Field and Description |
---|---|
protected IPlantable |
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 |
---|
AbstractTreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends T> p_i49920_1_,
boolean doBlockNofityOnPlace) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
func_214576_j(IWorldGenerationBaseReader p_214576_0_,
BlockPos p_214576_1_) |
protected void |
func_214584_a(IWorldGenerationReader p_214584_1_,
BlockPos p_214584_2_)
Deprecated.
|
protected static boolean |
func_214587_a(IWorldGenerationBaseReader p_214587_0_,
BlockPos p_214587_1_) |
protected IPlantable |
getSapling() |
protected static boolean |
isAir(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
protected static boolean |
isAirOrLeaves(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
protected static boolean |
isDirt(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
protected static boolean |
isDirtOrGrassBlock(IWorldGenerationBaseReader worldIn,
BlockPos pos)
Deprecated.
|
protected static boolean |
isDirtOrGrassBlockOrFarmland(IWorldGenerationBaseReader worldIn,
BlockPos pos)
Deprecated.
|
protected static boolean |
isLeaves(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
protected static boolean |
isSoil(IWorldGenerationBaseReader reader,
BlockPos pos,
IPlantable sapling) |
protected static boolean |
isSoilOrFarm(IWorldGenerationBaseReader reader,
BlockPos pos,
IPlantable sapling) |
protected static boolean |
isWater(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
boolean |
place(IWorld worldIn,
ChunkGenerator<? extends GenerationSettings> generator,
java.util.Random rand,
BlockPos pos,
T config) |
protected abstract boolean |
place(java.util.Set<BlockPos> changedBlocks,
IWorldGenerationReader worldIn,
java.util.Random rand,
BlockPos position,
MutableBoundingBox p_208519_5_) |
protected void |
setBlockState(IWorldWriter worldIn,
BlockPos pos,
BlockState state) |
protected void |
setDirtAt(IWorldGenerationReader reader,
BlockPos pos,
BlockPos origin) |
protected void |
setLogState(java.util.Set<BlockPos> changedBlocks,
IWorldWriter worldIn,
BlockPos pos,
BlockState p_208520_4_,
MutableBoundingBox p_208520_5_) |
AbstractTreeFeature<T> |
setSapling(IPlantable sapling) |
createConfig, getCreatureSpawnList, getSpawnList
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected IPlantable sapling
public AbstractTreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends T> p_i49920_1_, boolean doBlockNofityOnPlace)
protected static boolean func_214587_a(IWorldGenerationBaseReader p_214587_0_, BlockPos p_214587_1_)
protected static boolean isAir(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isDirt(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isWater(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isLeaves(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isAirOrLeaves(IWorldGenerationBaseReader worldIn, BlockPos pos)
@Deprecated protected static boolean isDirtOrGrassBlock(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isSoil(IWorldGenerationBaseReader reader, BlockPos pos, IPlantable sapling)
@Deprecated protected static boolean isDirtOrGrassBlockOrFarmland(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isSoilOrFarm(IWorldGenerationBaseReader reader, BlockPos pos, IPlantable sapling)
protected static boolean func_214576_j(IWorldGenerationBaseReader p_214576_0_, BlockPos p_214576_1_)
@Deprecated protected void func_214584_a(IWorldGenerationReader p_214584_1_, BlockPos p_214584_2_)
protected void setDirtAt(IWorldGenerationReader reader, BlockPos pos, BlockPos origin)
protected void setBlockState(IWorldWriter worldIn, BlockPos pos, BlockState state)
setBlockState
in class Feature<T extends IFeatureConfig>
protected final void setLogState(java.util.Set<BlockPos> changedBlocks, IWorldWriter worldIn, BlockPos pos, BlockState p_208520_4_, MutableBoundingBox p_208520_5_)
public final boolean place(IWorld worldIn, ChunkGenerator<? extends GenerationSettings> generator, java.util.Random rand, BlockPos pos, T config)
place
in class Feature<T extends IFeatureConfig>
protected abstract boolean place(java.util.Set<BlockPos> changedBlocks, IWorldGenerationReader worldIn, java.util.Random rand, BlockPos position, MutableBoundingBox p_208519_5_)
protected IPlantable getSapling()
public AbstractTreeFeature<T> setSapling(IPlantable sapling)