public abstract class GelConfigJigsawStructure extends GelJigsawStructure implements IConfigStructure
GelJigsawStructure
for easy implementation of config
files using ConfigTemplates.StructureConfig
.GelJigsawStructure.Start
deltaY, flag1, placesOnSurface
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 |
---|
GelConfigJigsawStructure(com.mojang.serialization.Codec<net.minecraft.world.gen.feature.structure.VillageConfig> codec,
ConfigTemplates.StructureConfig config,
int deltaY,
boolean flag1,
boolean placesOnSurface) |
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.
|
getPiece, getPieceType, getStartFactory, handleStartFactory
func_236388_a_, getChunkPosForStructure, getCreatureSpawnList, getDecorationStage, getSeed, getSeparationSettings, getSpawnList, getSpawns, getStructureName, potentialSpawnsEvent, setLakeProof, setSpawnList
deserializeStructureStart, func_242785_a, getFeatureCodec, getSpawnList, init, withConfiguration
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public GelConfigJigsawStructure(com.mojang.serialization.Codec<net.minecraft.world.gen.feature.structure.VillageConfig> codec, ConfigTemplates.StructureConfig config, int deltaY, boolean flag1, boolean placesOnSurface)
public ConfigTemplates.StructureConfig getConfig()
IConfigStructure
getConfig
in interface IConfigStructure
ConfigTemplates.StructureConfig
public double getProbability()
GelStructure
getProbability
in class GelStructure<net.minecraft.world.gen.feature.structure.VillageConfig>
Double
public int getSpacing()
GelStructure
getSpacing
in class GelStructure<net.minecraft.world.gen.feature.structure.VillageConfig>
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<net.minecraft.world.gen.feature.structure.VillageConfig>
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<net.minecraft.world.gen.feature.structure.VillageConfig>
List