Uses of Interface
dev.wyck.worldgen.function.DensityFunction
Packages that use DensityFunction
Package
Description
-
Uses of DensityFunction in dev.wyck.keys
Fields in dev.wyck.keys with type parameters of type DensityFunctionModifier and TypeFieldDescriptionstatic final KeyChain<DensityFunction> KeyChains.DENSITY_FUNCTIONSMethods in dev.wyck.keys that return types with arguments of type DensityFunction -
Uses of DensityFunction in dev.wyck.worldgen.function
Fields in dev.wyck.worldgen.function declared as DensityFunctionModifier and TypeFieldDescriptionstatic final DensityFunctionDensityFunctions.BASE_3D_NOISE_ENDstatic final DensityFunctionDensityFunctions.BASE_3D_NOISE_NETHERstatic final DensityFunctionDensityFunctions.BASE_3D_NOISE_OVERWORLDstatic final DensityFunctionDensityFunctions.END_ISLANDSstatic final DensityFunctionDensityFunctions.ENTRANCESstatic final DensityFunctionDensityFunctions.NOODLEstatic final DensityFunctionDensityFunctions.ORE_VEIN_COPPER_DENSITYstatic final DensityFunctionDensityFunctions.ORE_VEIN_GAPstatic final DensityFunctionDensityFunctions.ORE_VEIN_IRON_DENSITYstatic final DensityFunctionDensityFunctions.ORE_VEIN_MASKstatic final DensityFunctionDensityFunctions.ORE_VEIN_RICHNESSstatic final DensityFunctionDensityFunctions.ORE_VEIN_TOGGLEstatic final DensityFunctionDensityFunctions.PILLARSstatic final DensityFunctionDensityFunctions.RIDGESstatic final DensityFunctionDensityFunctions.RIDGES_FOLDEDstatic final DensityFunctionDensityFunctions.SHIFT_Xstatic final DensityFunctionDensityFunctions.SHIFT_Zstatic final DensityFunctionDensityFunctions.SLOPED_CHEESE_ENDstatic final DensityFunctionDensityFunctions.SPAGHETTI_2Dstatic final DensityFunctionDensityFunctions.SPAGHETTI_2D_THICKNESS_MODULATORstatic final DensityFunctionDensityFunctions.SPAGHETTI_ROUGHNESS_FUNCTIONstatic final DensityFunctionDensityFunctions.Ystatic final DensityFunctionDensityFunctions.ZEROMethods in dev.wyck.worldgen.function that return DensityFunctionModifier and TypeMethodDescriptionstatic DensityFunctionConverts a Minecraft density function into a Wyck density function.default DensityFunctionDensityFunction.wrap()Resolves this object's key in Minecraft's density-function registry and decodes the registered value.Methods in dev.wyck.worldgen.function with parameters of type DensityFunctionModifier and TypeMethodDescriptiondefault TwoArgumentSimpleFunctionDensityFunction.add(DensityFunction other) Adds this density function to another density function.default FindTopSurfaceDensityFunction.findTopSurface(DensityFunction upperBound, int lowerBound, int cellHeight) Scans a column of this density function and returns the topmost Y-level whose value is above 0, orlowerBoundif no such position exists within the bounds.static FindTopSurfaceDensityFunction.findTopSurface(DensityFunction density, DensityFunction upperBound, int lowerBound, int cellHeight) Scans a column ofdensityand returns the topmost Y-level whose value is above 0, orlowerBoundif no such position exists within the bounds.default TwoArgumentSimpleFunctionDensityFunction.max(DensityFunction other) Returns the maximum of this density function and another density function.default TwoArgumentSimpleFunctionDensityFunction.min(DensityFunction other) Returns the minimum of this density function and another density function.default TwoArgumentSimpleFunctionDensityFunction.mul(DensityFunction other) Multiplies this density function by another density function.default RangeChoiceDensityFunction.rangeChoice(double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) Uses this density function as the value to compare, returningwhenInRangewhen it falls within[minInclusive, maxExclusive)andwhenOutOfRangeotherwise.static RangeChoiceDensityFunction.rangeChoice(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) Computesinputand returnswhenInRangewhen it falls within[minInclusive, maxExclusive)andwhenOutOfRangeotherwise.static ShiftedNoise2dFunctionDensityFunction.shiftedNoise2d(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, NoiseParameters noiseParameters) Samples a noise likeDensityFunction.noise(NoiseParameters, double, double), but first shifts the input coordinates on the X and Z axes. -
Uses of DensityFunction in dev.wyck.worldgen.function.misc
Subinterfaces of DensityFunction in dev.wyck.worldgen.function.miscModifier and TypeInterfaceDescriptioninterfaceSamples at the current position using the noise algorithm used for end islands.interfaceScans through a column of an input density and returns the topmost Y-level whose density is above 0.interfaceMarker functions are commonly used to cache the output of a density function.interfaceComputes the input value and, depending on whether it falls within[minInclusive, maxExclusive), returns one of two other density functions.interfaceA reference to a density function.interfaceClamps the Y coordinate betweenfromYandtoYand then linearly maps it to the range[fromValue, toValue].Methods in dev.wyck.worldgen.function.misc that return DensityFunctionModifier and TypeMethodDescriptionFindTopSurface.density()The density function to scan.Marker.input()The input density function.RangeChoice.input()The value to compare against the range.FindTopSurface.upperBound()The Y-level to start the scan at.RangeChoice.whenInRange()The density function used when the input is inside the range.RangeChoice.whenOutOfRange()The density function used when the input is outside the range.Methods in dev.wyck.worldgen.function.misc with parameters of type DensityFunctionModifier and TypeMethodDescriptionstatic MarkerMarker.blendDensity(DensityFunction input) Used in vanilla for smooth transition to chunks generated in old versions.static MarkerMarker.cache(DensityFunction input) Caches the input density function using Minecraft's current cache implementation.static MarkerMarker.cache2d(DensityFunction input) Only computes the input density once per horizontal position.static MarkerMarker.cacheAllInCell(DensityFunction input) Used by the game ontoNoiseRouter.finalDensity().static MarkerMarker.cacheOnce(DensityFunction input) If this density function is referenced twice, it is only computed once per block position.FindTopSurface.Builder.density(DensityFunction density) Sets the density function to scan.static MarkerMarker.flatCache(DensityFunction input) Calculate the value per 4×4 column (Value at each block in one column is the same).RangeChoice.Builder.input(DensityFunction input) Sets the value to compare against the range.static MarkerMarker.interpolated(DensityFunction input) Interpolates at each block in one cell based on the input density function value of some cells around.static MarkerMarker.interpolated(DensityFunction input, int cellSizeHorizontal, int cellSizeVertical) Interpolates using explicit horizontal and vertical cell sizes.static FindTopSurfaceFindTopSurface.of(@Nullable ResourceKey resourceKey, DensityFunction density, DensityFunction upperBound, int lowerBound, int cellHeight) Creates a new find top surface density function.static FindTopSurfaceFindTopSurface.of(DensityFunction density, DensityFunction upperBound, int lowerBound, int cellHeight) Creates a new find top surface density function.static MarkerMarker.of(@Nullable ResourceKey resourceKey, Marker.Type type, DensityFunction input, int cellSizeHorizontal, int cellSizeVertical) Creates a new marker.static MarkerMarker.of(Marker.Type type, DensityFunction input) Creates a new marker.static RangeChoiceRangeChoice.of(@Nullable ResourceKey resourceKey, DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) Creates a new range choice density function.static RangeChoiceRangeChoice.of(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) Creates a new range choice density function.FindTopSurface.Builder.upperBound(DensityFunction upperBound) Sets the Y-level to start the scan at.RangeChoice.Builder.whenInRange(DensityFunction whenInRange) Sets the density function used when the input is inside the range.RangeChoice.Builder.whenOutOfRange(DensityFunction whenOutOfRange) Sets the density function used when the input is outside the range. -
Uses of DensityFunction in dev.wyck.worldgen.function.noise
Subinterfaces of DensityFunction in dev.wyck.worldgen.function.noiseModifier and TypeInterfaceDescriptioninterfaceA noise function that maps the output of another noise function to a range, probably.interfaceSamples noise after optionally shifting each input coordinate.interfaceA density function that usesNoiseParametersto generate its output.interfaceA noise function that has a shift.interfaceWraps shifted noise 2d density functions.Fields in dev.wyck.worldgen.function.noise declared as DensityFunctionModifier and TypeFieldDescriptionprotected DensityFunctionNoiseFunction.AbstractBuilder.shiftXprotected DensityFunctionNoiseFunction.AbstractBuilder.shiftYprotected DensityFunctionNoiseFunction.AbstractBuilder.shiftZMethods in dev.wyck.worldgen.function.noise that return DensityFunctionModifier and TypeMethodDescriptionNoiseFunction.shiftX()The density function added to the X coordinate before sampling.ShiftedNoise2dFunction.shiftX()Shift x density function.NoiseFunction.shiftY()The density function added to the Y coordinate before sampling.NoiseFunction.shiftZ()The density function added to the Z coordinate before sampling.ShiftedNoise2dFunction.shiftZ()Shift z density function.Methods in dev.wyck.worldgen.function.noise with parameters of type DensityFunctionModifier and TypeMethodDescriptionstatic NoiseFunctionNoiseFunction.of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, double xzScale, double yScale, DensityFunction shiftX, DensityFunction shiftY, DensityFunction shiftZ) Creates a new noise function with coordinate shifts.static ShiftedNoise2dFunctionShiftedNoise2dFunction.of(@Nullable ResourceKey resourceKey, NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.static ShiftedNoise2dFunctionShiftedNoise2dFunction.of(NoiseParameters noiseParameters, DensityFunction shiftX, DensityFunction shiftZ, double xzScale) Creates a new shifted noise 2d density function.NoiseFunction.AbstractBuilder.shiftX(DensityFunction shiftX) Sets the X-coordinate shift.ShiftedNoise2dFunction.Builder.shiftX(DensityFunction shiftX) Sets the shift x density function.NoiseFunction.AbstractBuilder.shiftY(DensityFunction shiftY) Sets the Y-coordinate shift.NoiseFunction.AbstractBuilder.shiftZ(DensityFunction shiftZ) Sets the Z-coordinate shift.ShiftedNoise2dFunction.Builder.shiftZ(DensityFunction shiftZ) Sets the shift z density function. -
Uses of DensityFunction in dev.wyck.worldgen.function.simple
Subinterfaces of DensityFunction in dev.wyck.worldgen.function.simpleModifier and TypeInterfaceDescriptioninterfaceUsed in vanilla for smooth transitions to chunks generated in old versions.interfaceUsed in vanilla for smooth transitions to chunks generated in old versions.interfaceA density function that always returns the same value.interfaceA simple density function.interfaceinterfaceA density function that always returns zero.Methods in dev.wyck.worldgen.function.simple that return DensityFunctionModifier and TypeMethodDescriptionTwoArgumentSimpleFunction.first()The first density function.default DensityFunctionTwoArgumentSimpleFunction.left()Alias forTwoArgumentSimpleFunction.first().default DensityFunctionTwoArgumentSimpleFunction.right()Alias forTwoArgumentSimpleFunction.second().TwoArgumentSimpleFunction.second()The second density function.Methods in dev.wyck.worldgen.function.simple with parameters of type DensityFunctionModifier and TypeMethodDescriptionstatic TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.add(DensityFunction first, DensityFunction second) Adds two density functions together.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.div(DensityFunction first, DensityFunction second) Divides the first density function by the second.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.max(DensityFunction first, DensityFunction second) Returns the maximum of two density functions.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.min(DensityFunction first, DensityFunction second) Returns the minimum of two density functions.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.mul(DensityFunction first, DensityFunction second) Multiplies two density functions together.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.of(@Nullable ResourceKey resourceKey, TwoArgumentSimpleFunction.Operation operation, DensityFunction first, DensityFunction second) Performs anTwoArgumentSimpleFunction.Operationon two density functions.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.of(TwoArgumentSimpleFunction.Operation operation, DensityFunction first, DensityFunction second) Performs anTwoArgumentSimpleFunction.Operationon two density functions.static TwoArgumentSimpleFunctionTwoArgumentSimpleFunction.sub(DensityFunction first, DensityFunction second) Subtracts the second density function from the first. -
Uses of DensityFunction in dev.wyck.worldgen.function.transformer
Subinterfaces of DensityFunction in dev.wyck.worldgen.function.transformerModifier and TypeInterfaceDescriptioninterfaceClamps the input between two values.interfaceinterfaceMethods in dev.wyck.worldgen.function.transformer that return DensityFunctionMethods in dev.wyck.worldgen.function.transformer with parameters of type DensityFunctionModifier and TypeMethodDescriptionstatic MappedTransformerMappedTransformer.abs(DensityFunction input) Maps the input throughMappedTransformer.Transform.ABS, yielding its absolute value.static MappedTransformerMappedTransformer.cube(DensityFunction input) Maps the input throughMappedTransformer.Transform.CUBE, yielding its cube.static MappedTransformerMappedTransformer.halfNegative(DensityFunction input) Maps the input throughMappedTransformer.Transform.HALF_NEGATIVE, halving only its negative values.static MappedTransformerMappedTransformer.invert(DensityFunction input) Maps the input throughMappedTransformer.Transform.RECIPROCAL, producing its reciprocal.static MappedTransformerMappedTransformer.negate(DensityFunction input) Maps the input throughMappedTransformer.Transform.NEGATE, negating its value.static ClampedTransformerClampedTransformer.of(@Nullable ResourceKey resourceKey, DensityFunction input, double min, double max) Creates a new clamped density function.static ClampedTransformerClampedTransformer.of(DensityFunction input, double min, double max) Creates a new clamped density function.static MappedTransformerMappedTransformer.of(@Nullable ResourceKey resourceKey, DensityFunction input, MappedTransformer.Transform transformation) Creates a new mapped density function.static MappedTransformerMappedTransformer.of(DensityFunction input, MappedTransformer.Transform transformation) Creates a new mapped density function.static MappedTransformerMappedTransformer.of(MappedTransformer.Transform transformation, DensityFunction input) Convenience method forMappedTransformer.of(DensityFunction, Transform).static MappedTransformerMappedTransformer.quarterNegative(DensityFunction input) Maps the input throughMappedTransformer.Transform.QUARTER_NEGATIVE, quartering only its negative values.static MappedTransformerMappedTransformer.reciprocal(DensityFunction input) Maps the input throughMappedTransformer.Transform.RECIPROCAL, producing its reciprocal.static MappedTransformerMappedTransformer.square(DensityFunction input) Maps the input throughMappedTransformer.Transform.SQUARE, yielding its square.static MappedTransformerMappedTransformer.squeeze(DensityFunction input) Maps the input throughMappedTransformer.Transform.SQUEEZE, applying the vanilla squeeze curve. -
Uses of DensityFunction in dev.wyck.worldgen.noise
Methods in dev.wyck.worldgen.noise that return DensityFunctionModifier and TypeMethodDescriptionAquiferSettings.barrier()The density function used to create barriers between neighboring aquifers.NoiseRouter.chunkSurfaceLevel()The density function used to estimate the terrain surface level in a chunk.NoiseRouter.continents()The density function used for the continentalness climate axis.NoiseRouter.depth()The density function used for the depth climate axis.NoiseRouter.erosion()The density function used for the erosion climate axis.AquiferSettings.exclusion()The density function controlling areas excluded from aquifer generation.NoiseRouter.finalDensity()The final density function used to decide whether terrain is solid.AquiferSettings.fluidLevelFloodedness()The density function controlling how readily an area becomes flooded.AquiferSettings.fluidLevelSpread()The density function controlling variation in aquifer fluid levels.AquiferSettings.lava()The density function controlling where aquifers contain lava.NoiseRouter.ridges()The density function used for the ridges climate axis.AquiferSettings.surfaceLevel()The density function used to determine aquifer surface levels.NoiseRouter.temperature()The density function used for the temperature climate axis.NoiseRouter.vegetation()The density function used for the vegetation climate axis.Methods in dev.wyck.worldgen.noise that return types with arguments of type DensityFunctionModifier and TypeMethodDescriptionSpawnTargetPoint.parameters()The acceptable climate parameter for each density function sampled by this target.Methods in dev.wyck.worldgen.noise with parameters of type DensityFunctionModifier and TypeMethodDescriptionAquiferSettings.Builder.barrier(DensityFunction barrier) Sets the density function used to create barriers between neighboring aquifers.NoiseRouter.Builder.chunkSurfaceLevel(DensityFunction chunkSurfaceLevel) Sets the chunk surface-level density function.NoiseRouter.Builder.continents(DensityFunction continents) Sets the continentalness density function.NoiseRouter.Builder.depth(DensityFunction depth) Sets the depth density function.NoiseRouter.Builder.erosion(DensityFunction erosion) Sets the erosion density function.AquiferSettings.Builder.exclusion(DensityFunction exclusion) Sets the density function controlling areas excluded from aquifer generation.NoiseRouter.Builder.finalDensity(DensityFunction finalDensity) Sets the final terrain density function.AquiferSettings.Builder.fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the density function controlling how readily an area becomes flooded.AquiferSettings.Builder.fluidLevelSpread(DensityFunction fluidLevelSpread) Sets the density function controlling variation in aquifer fluid levels.AquiferSettings.Builder.lava(DensityFunction lava) Sets the density function controlling where aquifers contain lava.static AquiferSettingsAquiferSettings.of(DensityFunction barrier, DensityFunction fluidLevelFloodedness, DensityFunction fluidLevelSpread, DensityFunction lava, DensityFunction exclusion, DensityFunction surfaceLevel) Creates aquifer settings.static NoiseRouterNoiseRouter.of(DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction chunkSurfaceLevel, DensityFunction finalDensity) Creates a noise router.NoiseRouter.Builder.ridges(DensityFunction ridges) Sets the ridges density function.AquiferSettings.Builder.surfaceLevel(DensityFunction surfaceLevel) Sets the density function used to determine aquifer surface levels.NoiseRouter.Builder.temperature(DensityFunction temperature) Sets the temperature density function.NoiseRouter.Builder.vegetation(DensityFunction vegetation) Sets the vegetation density function.Method parameters in dev.wyck.worldgen.noise with type arguments of type DensityFunctionModifier and TypeMethodDescriptionstatic SpawnTargetPointSpawnTargetPoint.of(Map<DensityFunction, ClimateParameter> parameters) Creates a player-spawn target point.