Record Class DensityFunctions.MulOrAdd

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunctions.MulOrAdd
All Implemented Interfaces:
DensityFunction, DensityFunctions.PureTransformer, DensityFunctions.TwoArgumentSimpleFunction
Enclosing class:
DensityFunctions

static record DensityFunctions.MulOrAdd(DensityFunctions.MulOrAdd.Type specificType, DensityFunction input, double minValue, double maxValue, double argument) extends Record implements DensityFunctions.PureTransformer, DensityFunctions.TwoArgumentSimpleFunction
  • Field Details

    • specificType

      private final DensityFunctions.MulOrAdd.Type specificType
      The field for the specificType record component.
    • input

      private final DensityFunction input
      The field for the input record component.
    • minValue

      private final double minValue
      The field for the minValue record component.
    • maxValue

      private final double maxValue
      The field for the maxValue record component.
    • argument

      private final double argument
      The field for the argument record component.
  • Constructor Details

    • MulOrAdd

      MulOrAdd(DensityFunctions.MulOrAdd.Type specificType, DensityFunction input, double minValue, double maxValue, double argument)
      Creates an instance of a MulOrAdd record class.
      Parameters:
      specificType - the value for the specificType record component
      input - the value for the input record component
      minValue - the value for the minValue record component
      maxValue - the value for the maxValue record component
      argument - the value for the argument record component
  • Method Details