public abstract class Structure<C extends IFeatureConfig> extends Feature<C>
Modifier and Type | Class and Description |
---|---|
static interface |
Structure.IStartFactory |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
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 |
---|
Structure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> configFactoryIn) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canBeGenerated(BiomeManager biomeManagerIn,
ChunkGenerator<?> generatorIn,
java.util.Random randIn,
int chunkX,
int chunkZ,
Biome biomeIn) |
BlockPos |
findNearest(World worldIn,
ChunkGenerator<? extends GenerationSettings> chunkGenerator,
BlockPos pos,
int radius,
boolean skipExistingChunks) |
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) |
private java.util.List<StructureStart> |
getStarts(IWorld worldIn,
int x,
int z) |
abstract java.lang.String |
getStructureName() |
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) |
ConfiguredFeature<C,? extends Structure<C>> |
withConfiguration(C p_225566_1_) |
createConfig, getCreatureSpawnList, getSpawnList, isDirt, isStone, setBlockState
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public Structure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> configFactoryIn)
public ConfiguredFeature<C,? extends Structure<C>> withConfiguration(C p_225566_1_)
withConfiguration
in class Feature<C extends IFeatureConfig>
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 skipExistingChunks)
private java.util.List<StructureStart> getStarts(IWorld worldIn, int x, int z)
protected ChunkPos getStartPositionForPosition(ChunkGenerator<?> chunkGenerator, java.util.Random random, int x, int z, int spacingOffsetsX, int spacingOffsetsZ)
public abstract boolean canBeGenerated(BiomeManager biomeManagerIn, ChunkGenerator<?> generatorIn, java.util.Random randIn, int chunkX, int chunkZ, Biome biomeIn)
public abstract Structure.IStartFactory getStartFactory()
public abstract java.lang.String getStructureName()
public abstract int getSize()