Package net.minecraft.world.gen
Record Class StructureWeightSampler.class_7301
java.lang.Object
java.lang.Record
net.minecraft.world.gen.StructureWeightSampler.class_7301
- Record Components:
box
-terrainAdjustment
-groundLevelDelta
-
- Enclosing class:
StructureWeightSampler
public static record StructureWeightSampler.class_7301(BlockBox box, StructureTerrainAdaptation terrainAdjustment, int groundLevelDelta)
extends Record
- Mappings:
Namespace Name official czh$a
intermediary net/minecraft/class_5817$class_7301
named net/minecraft/world/gen/StructureWeightSampler$class_7301
official a
intermediary comp_682
named box
official b
intermediary comp_683
named terrainAdjustment
official c
intermediary comp_684
named groundLevelDelta
-
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
ConstructorDescriptionclass_7301
(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
-
class_7301
public class_7301(BlockBox blockBox, StructureTerrainAdaptation structureTerrainAdaptation, int int2)
-
-
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
-