public class JsonStructure extends GelStructure<net.minecraft.world.gen.feature.NoFeatureConfig>
Modifier and Type | Class and Description |
---|---|
static class |
JsonStructure.JsonPieces |
static class |
JsonStructure.JsonStart |
Modifier and Type | Field and Description |
---|---|
StructureData |
data |
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 |
---|
JsonStructure(StructureData data) |
Modifier and Type | Method and Description |
---|---|
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 |
getSeed()
Every structure should have a different seed to prevent them from overlapping
as best as possible, especially when the same chances are used.
|
int |
getSize() |
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.
|
net.minecraft.world.gen.feature.structure.Structure.IStartFactory |
getStartFactory() |
canBeGenerated, getCreatureSpawnList, getSpawnList, getStructureName, potentialSpawnsEvent, setLakeProof
findNearest, isPositionInsideStructure, isPositionInStructure, place, withConfiguration
public final StructureData data
public JsonStructure(StructureData data)
public int getSeed()
GelStructure
getSeed
in class GelStructure<net.minecraft.world.gen.feature.NoFeatureConfig>
public double getProbability()
GelStructure
getProbability
in class GelStructure<net.minecraft.world.gen.feature.NoFeatureConfig>
public int getSpacing()
GelStructure
getSpacing
in class GelStructure<net.minecraft.world.gen.feature.NoFeatureConfig>
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<net.minecraft.world.gen.feature.NoFeatureConfig>
public int getSize()
getSize
in class net.minecraft.world.gen.feature.structure.Structure<net.minecraft.world.gen.feature.NoFeatureConfig>
public net.minecraft.world.gen.feature.structure.Structure.IStartFactory getStartFactory()
getStartFactory
in class net.minecraft.world.gen.feature.structure.Structure<net.minecraft.world.gen.feature.NoFeatureConfig>