public abstract class Structure<C extends IFeatureConfig> extends Feature<C>
Modifier and Type | Class and Description |
---|---|
static interface |
Structure.IStartFactory |
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 |
---|
Structure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> p_i51427_1_) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
findNearest(World worldIn,
ChunkGenerator<? extends GenerationSettings> chunkGenerator,
BlockPos pos,
int radius,
boolean p_211405_5_) |
abstract int |
getSize() |
protected StructureStart |
getStart(IWorld worldIn,
BlockPos pos,
boolean p_202364_3_) |
abstract Structure.IStartFactory |
getStartFactory() |
protected ChunkPos |
getStartPositionForPosition(ChunkGenerator<?> chunkGenerator,
java.util.Random random,
int x,
int z,
int spacingOffsetsX,
int spacingOffsetsZ) |
abstract java.lang.String |
getStructureName() |
abstract boolean |
hasStartAt(ChunkGenerator<?> chunkGen,
java.util.Random rand,
int chunkPosX,
int chunkPosZ) |
boolean |
isPositionInsideStructure(IWorld worldIn,
BlockPos pos) |
boolean |
isPositionInStructure(IWorld worldIn,
BlockPos pos) |
boolean |
place(IWorld worldIn,
ChunkGenerator<? extends GenerationSettings> generator,
java.util.Random rand,
BlockPos pos,
C config) |
createConfig, getCreatureSpawnList, getSpawnList, setBlockState
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public Structure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> p_i51427_1_)
public boolean place(IWorld worldIn, ChunkGenerator<? extends GenerationSettings> generator, java.util.Random rand, BlockPos pos, C config)
place
in class Feature<C extends IFeatureConfig>
protected StructureStart getStart(IWorld worldIn, BlockPos pos, boolean p_202364_3_)
@Nullable public BlockPos findNearest(World worldIn, ChunkGenerator<? extends GenerationSettings> chunkGenerator, BlockPos pos, int radius, boolean p_211405_5_)
protected ChunkPos getStartPositionForPosition(ChunkGenerator<?> chunkGenerator, java.util.Random random, int x, int z, int spacingOffsetsX, int spacingOffsetsZ)
public abstract boolean hasStartAt(ChunkGenerator<?> chunkGen, java.util.Random rand, int chunkPosX, int chunkPosZ)
public abstract Structure.IStartFactory getStartFactory()
public abstract java.lang.String getStructureName()
public abstract int getSize()