public class HugeFungusFeature extends Feature<HugeFungusFeatureConfig>
BAMBOO, BASALT_COLUMNS, BASALT_PILLAR, BASTION_REMNANT, BLOCK_PILE, BLUE_ICE, BONUS_CHEST, BURIED_TREASURE, CHORUS_PLANT, CORAL_CLAW, CORAL_MUSHROOM, CORAL_TREE, DECORATED, DECORATED_FLOWER, DELTA_FEATURE, DESERT_PYRAMID, DESERT_WELL, DISK, EMERALD_ORE, END_CITY, 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, IGLOO, JIGSAW_STRUCTURES, JUNGLE_TEMPLE, KELP, LAKE, MINESHAFT, MONSTER_ROOM, NETHER_BRIDGE, NETHER_FOREST_VEGETATION, NETHER_FOSSIL, NETHERRACK_REPLACE_BLOBS, NO_OP, NO_SURFACE_ORE, OCEAN_MONUMENT, OCEAN_RUIN, ORE, PILLAGER_OUTPOST, RANDOM_BOOLEAN_SELECTOR, RANDOM_PATCH, RANDOM_RANDOM_SELECTOR, RANDOM_SELECTOR, RUINED_PORTAL, SEA_PICKLE, SEAGRASS, SHIPWRECK, SIMPLE_BLOCK, SIMPLE_RANDOM_SELECTOR, SPRING_FEATURE, STRONGHOLD, STRUCTURES, SWAMP_HUT, TREE, TWISTING_VINES, VILLAGE, VINES, VOID_START_PLATFORM, WEEPING_VINES, WOODLAND_MANSION| Constructor and Description |
|---|
HugeFungusFeature(Function<com.mojang.datafixers.Dynamic<?>,? extends HugeFungusFeatureConfig> configDeserializer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generate(class_5281 class_5281,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockPos blockPos,
HugeFungusFeatureConfig hugeFungusFeatureConfig) |
private void |
generateHat(IWorld world,
Random random,
HugeFungusFeatureConfig config,
BlockPos blockPos,
int hatHeight,
boolean thickStem) |
private void |
generateHatBlock(IWorld world,
Random random,
HugeFungusFeatureConfig config,
BlockPos.Mutable pos,
float decorationChance,
float generationChance,
float vineChance) |
private void |
generateStem(IWorld world,
Random random,
HugeFungusFeatureConfig config,
BlockPos blockPos,
int stemHeight,
boolean thickStem) |
private static void |
generateVines(BlockPos blockPos,
IWorld iWorld,
Random random) |
private static BlockPos.Mutable |
getStartPos(IWorld world,
BlockPos pos,
Block block) |
static boolean |
method_24866(IWorld iWorld,
BlockPos blockPos) |
private static boolean |
method_24868(IWorld iWorld,
BlockPos blockPos) |
private void |
tryGenerateVines(IWorld world,
Random random,
BlockPos pos,
BlockState state,
boolean bool) |
configure, deserializeConfig, getCreatureSpawns, getMonsterSpawns, isDirt, isStone, method_27368, method_27370, setBlockStatepublic HugeFungusFeature(Function<com.mojang.datafixers.Dynamic<?>,? extends HugeFungusFeatureConfig> configDeserializer)
public boolean generate(class_5281 class_5281, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, HugeFungusFeatureConfig hugeFungusFeatureConfig)
generate in class Feature<HugeFungusFeatureConfig>private void generateStem(IWorld world, Random random, HugeFungusFeatureConfig config, BlockPos blockPos, int stemHeight, boolean thickStem)
private void generateHat(IWorld world, Random random, HugeFungusFeatureConfig config, BlockPos blockPos, int hatHeight, boolean thickStem)
private void generateHatBlock(IWorld world, Random random, HugeFungusFeatureConfig config, BlockPos.Mutable pos, float decorationChance, float generationChance, float vineChance)
private void tryGenerateVines(IWorld world, Random random, BlockPos pos, BlockState state, boolean bool)
@Nullable private static BlockPos.Mutable getStartPos(IWorld world, BlockPos pos, Block block)