C
- public abstract class GelConfigStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig> extends GelStructure<C> implements IConfigStructure
GelStructure
for easy implementation of config files
using ConfigTemplates.StructureConfig
.insideSpawnsOnly, seed, spawns
BASTION_REMNANT, BURIED_TREASURE, DESERT_PYRAMID, END_CITY, field_236384_t_, FORTRESS, IGLOO, JUNGLE_PYRAMID, MINESHAFT, MONUMENT, NAME_STRUCTURE_BIMAP, NETHER_FOSSIL, OCEAN_RUIN, PILLAGER_OUTPOST, RUINED_PORTAL, SHIPWRECK, STRONGHOLD, STRUCTURE_DECORATION_STAGE_MAP, SWAMP_HUT, VILLAGE, WOODLAND_MANSION
Constructor and Description |
---|
GelConfigStructure(com.mojang.serialization.Codec<C> codec,
ConfigTemplates.StructureConfig config) |
Modifier and Type | Method and Description |
---|---|
ConfigTemplates.StructureConfig |
getConfig()
Returns the config file for this structure.
|
java.util.List<net.minecraft.world.gen.DimensionSettings> |
getNoiseSettingsToGenerateIn()
Gets a list of
DimensionSettings to tell your structure where to
generate. |
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.
|
func_236388_a_, getChunkPosForStructure, getCreatureSpawnList, getDecorationStage, getSeed, getSeparationSettings, getSpawnList, getSpawns, getStructureName, potentialSpawnsEvent, setLakeProof, setSpawnList
deserializeStructureStart, func_242785_a, getFeatureCodec, getSpawnList, getStartFactory, init, withConfiguration
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public GelConfigStructure(com.mojang.serialization.Codec<C> codec, ConfigTemplates.StructureConfig config)
public ConfigTemplates.StructureConfig getConfig()
IConfigStructure
getConfig
in interface IConfigStructure
ConfigTemplates.StructureConfig
public double getProbability()
GelStructure
getProbability
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
Double
public int getSpacing()
GelStructure
getSpacing
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
Integer
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>
Integer
public java.util.List<net.minecraft.world.gen.DimensionSettings> getNoiseSettingsToGenerateIn()
GelStructure
DimensionSettings
to tell your structure where to
generate. Can be set using configs. Defaults to every setting.getNoiseSettingsToGenerateIn
in class GelStructure<C extends net.minecraft.world.gen.feature.IFeatureConfig>
List