Record Class DensityFunctions.Ap2
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunctions.Ap2
- All Implemented Interfaces:
- DensityFunction,- DensityFunctions.TwoArgumentSimpleFunction
- Enclosing class:
- DensityFunctions
static record DensityFunctions.Ap2(DensityFunctions.TwoArgumentSimpleFunction.Type type, DensityFunction argument1, DensityFunction argument2, double minValue, double maxValue)
extends Record
implements DensityFunctions.TwoArgumentSimpleFunction
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunctionDensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.VisitorNested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.TwoArgumentSimpleFunctionDensityFunctions.TwoArgumentSimpleFunction.Type
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DensityFunctionThe field for theargument1record component.private final DensityFunctionThe field for theargument2record component.private final doubleThe field for themaxValuerecord component.private final doubleThe field for theminValuerecord component.private final DensityFunctions.TwoArgumentSimpleFunction.TypeThe field for thetyperecord component.Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunctionCODEC, DIRECT_CODEC, HOLDER_HELPER_CODECFields inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.TwoArgumentSimpleFunctionLOGGER
- 
Constructor SummaryConstructorsConstructorDescriptionAp2(DensityFunctions.TwoArgumentSimpleFunction.Type type, DensityFunction argument1, DensityFunction argument2, double minValue, double maxValue) Creates an instance of aAp2record class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theargument1record component.Returns the value of theargument2record component.doublecompute(DensityFunction.FunctionContext p_208410_) final booleanIndicates whether some other object is "equal to" this one.voidfillArray(double[] p_208414_, DensityFunction.ContextProvider p_208415_) final inthashCode()Returns a hash code value for this object.mapAll(DensityFunction.Visitor p_208412_) doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunctionabs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.TwoArgumentSimpleFunctioncodec
- 
Field Details- 
typeThe field for thetyperecord component.
- 
argument1The field for theargument1record component.
- 
argument2The field for theargument2record component.
- 
minValueprivate final double minValueThe field for theminValuerecord component.
- 
maxValueprivate final double maxValueThe field for themaxValuerecord component.
 
- 
- 
Constructor Details- 
Ap2Ap2(DensityFunctions.TwoArgumentSimpleFunction.Type type, DensityFunction argument1, DensityFunction argument2, double minValue, double maxValue) Creates an instance of aAp2record class.- Parameters:
- type- the value for the- typerecord component
- argument1- the value for the- argument1record component
- argument2- the value for the- argument2record component
- minValue- the value for the- minValuerecord component
- maxValue- the value for the- maxValuerecord component
 
 
- 
- 
Method Details- 
compute- Specified by:
- computein interface- DensityFunction
 
- 
fillArray- Specified by:
- fillArrayin interface- DensityFunction
 
- 
mapAll- Specified by:
- mapAllin interface- DensityFunction
 
- 
minValuepublic double minValue()Returns the value of theminValuerecord component.- Specified by:
- minValuein interface- DensityFunction
- Returns:
- the value of the minValuerecord component
 
- 
maxValuepublic double maxValue()Returns the value of themaxValuerecord component.- Specified by:
- maxValuein interface- DensityFunction
- Returns:
- the value of the maxValuerecord component
 
- 
typeReturns the value of thetyperecord component.- Specified by:
- typein interface- DensityFunctions.TwoArgumentSimpleFunction
- Returns:
- the value of the typerecord component
 
- 
argument1Returns the value of theargument1record component.- Specified by:
- argument1in interface- DensityFunctions.TwoArgumentSimpleFunction
- Returns:
- the value of the argument1record component
 
- 
argument2Returns the value of theargument2record component.- Specified by:
- argument2in interface- DensityFunctions.TwoArgumentSimpleFunction
- Returns:
- the value of the argument2record component
 
- 
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 '=='.
 
-