public class EndSpikeFeature extends Feature<EndSpikeFeatureConfig>
Modifier and Type | Class and Description |
---|---|
static class |
EndSpikeFeature.EndSpike |
(package private) static class |
EndSpikeFeature.EndSpikeCacheLoader |
Modifier and Type | Field and Description |
---|---|
private static com.google.common.cache.LoadingCache<java.lang.Long,java.util.List<EndSpikeFeature.EndSpike>> |
LOADING_CACHE |
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 |
---|
EndSpikeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends EndSpikeFeatureConfig> p_i51432_1_) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<EndSpikeFeature.EndSpike> |
generateSpikes(IWorld worldIn) |
boolean |
place(IWorld worldIn,
ChunkGenerator<? extends GenerationSettings> generator,
java.util.Random rand,
BlockPos pos,
EndSpikeFeatureConfig config) |
private void |
placeSpike(IWorld worldIn,
java.util.Random rand,
EndSpikeFeatureConfig config,
EndSpikeFeature.EndSpike spike) |
createConfig, getCreatureSpawnList, getSpawnList, isDirt, isStone, setBlockState, withConfiguration
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
private static final com.google.common.cache.LoadingCache<java.lang.Long,java.util.List<EndSpikeFeature.EndSpike>> LOADING_CACHE
public EndSpikeFeature(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends EndSpikeFeatureConfig> p_i51432_1_)
public static java.util.List<EndSpikeFeature.EndSpike> generateSpikes(IWorld worldIn)
public boolean place(IWorld worldIn, ChunkGenerator<? extends GenerationSettings> generator, java.util.Random rand, BlockPos pos, EndSpikeFeatureConfig config)
place
in class Feature<EndSpikeFeatureConfig>
private void placeSpike(IWorld worldIn, java.util.Random rand, EndSpikeFeatureConfig config, EndSpikeFeature.EndSpike spike)