Package net.minecraft.world.gen
Record Class StructureWeightSampler.Piece
java.lang.Object
java.lang.Record
net.minecraft.world.gen.StructureWeightSampler.Piece
- Record Components:
- box-
- terrainAdjustment-
- groundLevelDelta-
- Enclosing class:
- StructureWeightSampler
public static record StructureWeightSampler.Piece(BlockBox box, StructureTerrainAdaptation terrainAdjustment, int groundLevelDelta)
extends Record
- Mappings:
- Namespace - Name - official - dgx$a- intermediary - net/minecraft/class_5817$class_7301- named - net/minecraft/world/gen/StructureWeightSampler$Piece- official - a- intermediary - comp_682- named - box- official - b- intermediary - comp_683- named - terrainAdjustment- official - c- intermediary - comp_684- named - groundLevelDelta
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockBoxThe field for theboxrecord component.private final intThe field for thegroundLevelDeltarecord component.private final StructureTerrainAdaptationThe field for theterrainAdjustmentrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPiece(BlockBox blockBox, StructureTerrainAdaptation structureTerrainAdaptation, int int2) 
- 
Method SummaryModifier and TypeMethodDescriptionbox()Returns the value of theboxrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegroundLevelDeltarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theterrainAdjustmentrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
boxThe field for theboxrecord component.
- 
terrainAdjustmentThe field for theterrainAdjustmentrecord component.
- 
groundLevelDeltaprivate final int groundLevelDeltaThe field for thegroundLevelDeltarecord component.
 
- 
- 
Constructor Details- 
Piece
 
- 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
boxReturns the value of theboxrecord component.- Returns:
- the value of the boxrecord component
 
- 
terrainAdjustmentReturns the value of theterrainAdjustmentrecord component.- Returns:
- the value of the terrainAdjustmentrecord component
 
- 
groundLevelDeltapublic int groundLevelDelta()Returns the value of thegroundLevelDeltarecord component.- Returns:
- the value of the groundLevelDeltarecord component
 
 
-