Uses of Enum Class
net.minecraft.world.level.levelgen.densityfunction.DistanceMetric
Packages that use DistanceMetric
Package
Description
-
Uses of DistanceMetric in net.minecraft.world.level.levelgen.densityfunction
Subclasses with type arguments of type DistanceMetric in net.minecraft.world.level.levelgen.densityfunctionFields in net.minecraft.world.level.levelgen.densityfunction with type parameters of type DistanceMetricModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DistanceMetric> DistanceMetric.CODECMethods in net.minecraft.world.level.levelgen.densityfunction that return DistanceMetricModifier and TypeMethodDescriptionstatic DistanceMetricReturns the enum constant of this class with the specified name.static DistanceMetric[]DistanceMetric.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.world.level.levelgen.densityfunction with parameters of type DistanceMetricModifier and TypeMethodDescriptionstatic DensityFunctionDensityFunctions.distanceToPoint(Vec3i point, DistanceMetric metric) -
Uses of DistanceMetric in net.minecraft.world.level.levelgen.densityfunction.generator
Fields in net.minecraft.world.level.levelgen.densityfunction.generator declared as DistanceMetricModifier and TypeFieldDescriptionprivate final DistanceMetricDistanceToPointFunction.metricThe field for themetricrecord component.private final DistanceMetricDistanceToPointFunction.Sampler.metricThe field for themetricrecord component.Methods in net.minecraft.world.level.levelgen.densityfunction.generator that return DistanceMetricModifier and TypeMethodDescriptionDistanceToPointFunction.metric()Returns the value of themetricrecord component.DistanceToPointFunction.Sampler.metric()Returns the value of themetricrecord component.Constructors in net.minecraft.world.level.levelgen.densityfunction.generator with parameters of type DistanceMetricModifierConstructorDescriptionDistanceToPointFunction(Vec3i point, DistanceMetric metric) Creates an instance of aDistanceToPointFunctionrecord class.privateSampler(int x, int y, int z, DistanceMetric metric) Creates an instance of aSamplerrecord class.