Record Class Structure.StructureSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.Structure.StructureSettings
- Enclosing class:
- Structure
public static record Structure.StructureSettings(HolderSet<Biome> biomes, Map<MobCategory,StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation)
extends Record 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe field for thebiomesrecord component.static final com.mojang.serialization.MapCodec<Structure.StructureSettings> private final Map<MobCategory, StructureSpawnOverride> The field for thespawnOverridesrecord component.private final GenerationStep.DecorationThe field for thesteprecord component.private final TerrainAdjustmentThe field for theterrainAdaptationrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStructureSettings(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) Creates an instance of aStructureSettingsrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespawnOverridesrecord component.step()Returns the value of thesteprecord component.Returns the value of theterrainAdaptationrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
biomesThe field for thebiomesrecord component.
- 
spawnOverridesThe field for thespawnOverridesrecord component.
- 
stepThe field for thesteprecord component.
- 
terrainAdaptationThe field for theterrainAdaptationrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
StructureSettingspublic StructureSettings(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) Creates an instance of aStructureSettingsrecord class.- Parameters:
- biomes- the value for the- biomesrecord component
- spawnOverrides- the value for the- spawnOverridesrecord component
- step- the value for the- steprecord component
- terrainAdaptation- the value for the- terrainAdaptationrecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
biomesReturns the value of thebiomesrecord component.- Returns:
- the value of the biomesrecord component
 
- 
spawnOverridesReturns the value of thespawnOverridesrecord component.- Returns:
- the value of the spawnOverridesrecord component
 
- 
stepReturns the value of thesteprecord component.- Returns:
- the value of the steprecord component
 
- 
terrainAdaptationReturns the value of theterrainAdaptationrecord component.- Returns:
- the value of the terrainAdaptationrecord component
 
 
-