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 named net/minecraft/world/gen/StructureWeightSampler$Piece
intermediary net/minecraft/class_5817$class_7301
official dxj$a
named box
intermediary comp_682
official a
named terrainAdjustment
intermediary comp_683
official b
named groundLevelDelta
intermediary comp_684
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockBox
The field for thebox
record component.private final int
The field for thegroundLevelDelta
record component.private final StructureTerrainAdaptation
The field for theterrainAdjustment
record component. -
Constructor Summary
ConstructorDescriptionPiece
(BlockBox blockBox, StructureTerrainAdaptation structureTerrainAdaptation, int int2) -
Method Summary
Modifier and TypeMethodDescriptionbox()
Returns the value of thebox
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thegroundLevelDelta
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theterrainAdjustment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
box
The field for thebox
record component. -
terrainAdjustment
The field for theterrainAdjustment
record component. -
groundLevelDelta
private final int groundLevelDeltaThe field for thegroundLevelDelta
record component.
-
-
Constructor Details
-
Piece
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 '=='. -
box
Returns the value of thebox
record component.- Returns:
- the value of the
box
record component
-
terrainAdjustment
Returns the value of theterrainAdjustment
record component.- Returns:
- the value of the
terrainAdjustment
record component
-
groundLevelDelta
public int groundLevelDelta()Returns the value of thegroundLevelDelta
record component.- Returns:
- the value of the
groundLevelDelta
record component
-