C
- public abstract class GelConfigStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig> extends GelStructure<C>
GelStructure
for easy implementation of config files.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
Constructor and Description |
---|
GelConfigStructure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> configFactoryIn,
ConfigTemplates.StructureConfig config) |
Modifier and Type | Method and Description |
---|---|
ConfigTemplates.StructureConfig |
getConfig() |
int |
getOffset()
When checking if a structure can be placed in a given chunk, this value is
used along with
GelStructure.getSpacing() to give the structure an offset as to
not make the grid apparent. |
double |
getProbability()
This is the probability of the structure generating in a given chunk,
expressed as a percent.
|
int |
getSpacing()
When checking if a structure can be placed in a given chunk, this is called
to determine how far apart each structure should be from eachother.
|
canBeGenerated, getCreatureSpawnList, getSeed, getSpawnList, getStructureName, potentialSpawnsEvent, setLakeProof
findNearest, getSize, getStartFactory, isPositionInsideStructure, isPositionInStructure, place, withConfiguration
public GelConfigStructure(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> configFactoryIn, ConfigTemplates.StructureConfig config)
public double getProbability()
GelStructure
getProbability
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
public int getSpacing()
GelStructure
getSpacing
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
public int getOffset()
GelStructure
GelStructure.getSpacing()
to give the structure an offset as to
not make the grid apparent. It's recommended that this value is no larger
than half of what GelStructure.getSpacing()
returns to prevent structure
overlap.getOffset
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
public ConfigTemplates.StructureConfig getConfig()