Record Class DfRewriteRule.SliceUniformAxes
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.densityfunction.DfRewriteRule.SliceUniformAxes
- All Implemented Interfaces:
DfRewriteRule
- Enclosing interface:
DfRewriteRule
public static record DfRewriteRule.SliceUniformAxes(int parentDomainAxes)
extends Record
implements DfRewriteRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface DfRewriteRule
DfRewriteRule.SliceUniformAxes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theparentDomainAxesrecord component.Fields inherited from interface DfRewriteRule
INLINE_REFERENCE, SLICE_UNIFORM_AXES -
Constructor Summary
ConstructorsConstructorDescriptionSliceUniformAxes(int parentDomainAxes) Creates an instance of aSliceUniformAxesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private static intgetExistingRemovedAxes(DensityFunction function) final inthashCode()Returns a hash code value for this object.intReturns the value of theparentDomainAxesrecord component.private DensityFunctionremoveAxes(DensityFunction function, int axes) rewrite(DensityFunction function) private static booleanshouldSkip(DensityFunction function) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
parentDomainAxes
private final int parentDomainAxesThe field for theparentDomainAxesrecord component.
-
-
Constructor Details
-
SliceUniformAxes
public SliceUniformAxes(int parentDomainAxes) Creates an instance of aSliceUniformAxesrecord class.- Parameters:
parentDomainAxes- the value for theparentDomainAxesrecord component
-
-
Method Details
-
rewrite
- Specified by:
rewritein interfaceDfRewriteRule
-
removeAxes
-
getExistingRemovedAxes
-
shouldSkip
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
parentDomainAxes
public int parentDomainAxes()Returns the value of theparentDomainAxesrecord component.- Returns:
- the value of the
parentDomainAxesrecord component
-