public abstract class AbstractTreeFeature<T extends BaseTreeFeatureConfig> extends Feature<T>
ACACIA_TREE, BAMBOO, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, BURIED_TREASURE, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DARK_OAK_TREE, DECORATED, DECORATED_FLOWER, DESERT_PYRAMID, DESERT_WELL, DISK, EMERALD_ORE, END_CITY, END_GATEWAY, END_ISLAND, END_SPIKE, FANCY_TREE, FILL_LAYER, FLOWER, FOREST_ROCK, FOSSIL, FREEZE_TOP_LAYER, GLOWSTONE_BLOB, HUGE_BROWN_MUSHROOM, HUGE_RED_MUSHROOM, ICE_PATCH, ICE_SPIKE, ICEBERG, IGLOO, ILLAGER_STRUCTURES, JUNGLE_GROUND_BUSH, JUNGLE_TEMPLE, KELP, LAKE, MEGA_JUNGLE_TREE, MEGA_SPRUCE_TREE, MINESHAFT, MONSTER_ROOM, NETHER_BRIDGE, NO_OP, NORMAL_TREE, OCEAN_MONUMENT, OCEAN_RUIN, ORE, PILLAGER_OUTPOST, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_RANDOM_SELECTOR, RANDOM_SELECTOR, SEA_PICKLE, SEAGRASS, SHIPWRECK, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING_FEATURE, STRONGHOLD, STRUCTURES, SWAMP_HUT, VILLAGE, VINES, VOID_START_PLATFORM, WOODLAND_MANSION
delegate
Constructor and Description |
---|
AbstractTreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends T> p_i225797_1_) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
canBeReplacedByLogs(IWorldGenerationBaseReader p_214587_0_,
BlockPos p_214587_1_) |
private void |
func_208521_b(IWorldWriter p_208521_1_,
BlockPos p_208521_2_,
BlockState p_208521_3_) |
private VoxelShapePart |
func_227214_a_(IWorld p_227214_1_,
MutableBoundingBox p_227214_2_,
java.util.Set<BlockPos> p_227214_3_,
java.util.Set<BlockPos> p_227214_4_) |
protected boolean |
func_227216_a_(IWorldGenerationReader p_227216_1_,
java.util.Random p_227216_2_,
BlockPos p_227216_3_,
java.util.Set<BlockPos> p_227216_4_,
MutableBoundingBox p_227216_5_,
BaseTreeFeatureConfig p_227216_6_) |
protected void |
func_227217_a_(IWorldWriter p_227217_1_,
BlockPos p_227217_2_,
BlockState p_227217_3_,
MutableBoundingBox p_227217_4_) |
protected boolean |
func_227219_b_(IWorldGenerationReader p_227219_1_,
java.util.Random p_227219_2_,
BlockPos p_227219_3_,
java.util.Set<BlockPos> p_227219_4_,
MutableBoundingBox p_227219_5_,
BaseTreeFeatureConfig p_227219_6_) |
static boolean |
isAir(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
static boolean |
isAirOrLeaves(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
protected static boolean |
isDirt(IWorldGenerationBaseReader worldIn,
BlockPos pos) |
static boolean |
isDirtOrGrassBlock(IWorldGenerationBaseReader worldIn,
BlockPos pos)
Deprecated.
|
protected static boolean |
isDirtOrGrassBlockOrFarmland(IWorldGenerationBaseReader worldIn,
BlockPos pos)
Deprecated.
|
protected static boolean |
isSoil(IWorldGenerationBaseReader reader,
BlockPos pos,
IPlantable sapling) |
protected static boolean |
isSoilOrFarm(IWorldGenerationBaseReader reader,
BlockPos pos,
IPlantable sapling) |
static boolean |
isTallPlants(IWorldGenerationBaseReader p_214576_0_,
BlockPos p_214576_1_) |
protected static boolean |
isVine(IWorldGenerationBaseReader p_227222_0_,
BlockPos p_227222_1_) |
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(IWorldGenerationReader generationReader,
java.util.Random rand,
BlockPos positionIn,
java.util.Set<BlockPos> p_225557_4_,
java.util.Set<BlockPos> p_225557_5_,
MutableBoundingBox boundingBoxIn,
T configIn) |
protected void |
setBlockState(IWorldWriter worldIn,
BlockPos pos,
BlockState state) |
protected void |
setDirt(IWorldGenerationReader p_214584_1_,
BlockPos p_214584_2_)
Deprecated.
|
protected void |
setDirtAt(IWorldGenerationReader reader,
BlockPos pos,
BlockPos origin) |
createConfig, getCreatureSpawnList, getSpawnList, isDirt, isStone, withConfiguration
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public AbstractTreeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends T> p_i225797_1_)
protected static boolean canBeReplacedByLogs(IWorldGenerationBaseReader p_214587_0_, BlockPos p_214587_1_)
public static boolean isAir(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isDirt(IWorldGenerationBaseReader worldIn, BlockPos pos)
protected static boolean isVine(IWorldGenerationBaseReader p_227222_0_, BlockPos p_227222_1_)
public static boolean isWater(IWorldGenerationBaseReader worldIn, BlockPos pos)
public static boolean isAirOrLeaves(IWorldGenerationBaseReader worldIn, BlockPos pos)
@Deprecated public 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)
public static boolean isTallPlants(IWorldGenerationBaseReader p_214576_0_, BlockPos p_214576_1_)
@Deprecated protected void setDirt(IWorldGenerationReader p_214584_1_, BlockPos p_214584_2_)
protected boolean func_227216_a_(IWorldGenerationReader p_227216_1_, java.util.Random p_227216_2_, BlockPos p_227216_3_, java.util.Set<BlockPos> p_227216_4_, MutableBoundingBox p_227216_5_, BaseTreeFeatureConfig p_227216_6_)
protected boolean func_227219_b_(IWorldGenerationReader p_227219_1_, java.util.Random p_227219_2_, BlockPos p_227219_3_, java.util.Set<BlockPos> p_227219_4_, MutableBoundingBox p_227219_5_, BaseTreeFeatureConfig p_227219_6_)
protected void setDirtAt(IWorldGenerationReader reader, BlockPos pos, BlockPos origin)
protected void setBlockState(IWorldWriter worldIn, BlockPos pos, BlockState state)
setBlockState
in class Feature<T extends BaseTreeFeatureConfig>
protected final void func_227217_a_(IWorldWriter p_227217_1_, BlockPos p_227217_2_, BlockState p_227217_3_, MutableBoundingBox p_227217_4_)
private void func_208521_b(IWorldWriter p_208521_1_, BlockPos p_208521_2_, BlockState p_208521_3_)
public final boolean place(IWorld worldIn, ChunkGenerator<? extends GenerationSettings> generator, java.util.Random rand, BlockPos pos, T config)
place
in class Feature<T extends BaseTreeFeatureConfig>
private VoxelShapePart func_227214_a_(IWorld p_227214_1_, MutableBoundingBox p_227214_2_, java.util.Set<BlockPos> p_227214_3_, java.util.Set<BlockPos> p_227214_4_)
protected abstract boolean place(IWorldGenerationReader generationReader, java.util.Random rand, BlockPos positionIn, java.util.Set<BlockPos> p_225557_4_, java.util.Set<BlockPos> p_225557_5_, MutableBoundingBox boundingBoxIn, T configIn)