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.CONTINENTSstatic final DensityFunctionDensityFunctions.CONTINENTS_LARGEstatic final DensityFunctionDensityFunctions.DEPTHstatic final DensityFunctionDensityFunctions.DEPTH_AMPLIFIEDstatic final DensityFunctionDensityFunctions.DEPTH_LARGEstatic final DensityFunctionDensityFunctions.ENTRANCESstatic final DensityFunctionDensityFunctions.EROSIONstatic final DensityFunctionDensityFunctions.EROSION_LARGEstatic final DensityFunctionDensityFunctions.FACTORstatic final DensityFunctionDensityFunctions.FACTOR_AMPLIFIEDstatic final DensityFunctionDensityFunctions.FACTOR_LARGEstatic final DensityFunctionDensityFunctions.JAGGEDNESSstatic final DensityFunctionDensityFunctions.JAGGEDNESS_AMPLIFIEDstatic final DensityFunctionDensityFunctions.JAGGEDNESS_LARGEstatic final DensityFunctionDensityFunctions.NOODLEstatic final DensityFunctionDensityFunctions.OFFSETstatic final DensityFunctionDensityFunctions.OFFSET_AMPLIFIEDstatic final DensityFunctionDensityFunctions.OFFSET_LARGEstatic final DensityFunctionDensityFunctions.PILLARSstatic final DensityFunctionDensityFunctions.RIDGESstatic final DensityFunctionDensityFunctions.RIDGES_FOLDEDstatic final DensityFunctionDensityFunctions.SHIFT_Xstatic final DensityFunctionDensityFunctions.SHIFT_Zstatic final DensityFunctionDensityFunctions.SLOPED_CHEESEstatic final DensityFunctionDensityFunctions.SLOPED_CHEESE_AMPLIFIEDstatic final DensityFunctionDensityFunctions.SLOPED_CHEESE_ENDstatic final DensityFunctionDensityFunctions.SLOPED_CHEESE_LARGEstatic 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.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 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) 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 a noise.interfaceA density function that usesNoiseParametersto generate its output.interfaceA noise function that has a shift.interfaceWraps shifted noise 2d density functions.Methods in dev.wyck.worldgen.function.noise that return DensityFunctionModifier and TypeMethodDescriptionShiftedNoise2dFunction.shiftX()Shift x density function.ShiftedNoise2dFunction.shiftZ()Shift z density function.Methods in dev.wyck.worldgen.function.noise with parameters of type DensityFunctionModifier and TypeMethodDescriptionstatic 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.ShiftedNoise2dFunction.Builder.shiftX(DensityFunction shiftX) Sets the shift x density function.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.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.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. -
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.INVERT, negating it.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.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 TypeMethodDescriptionNoiseRouter.barrier()Affects whether aquifers and open cave areas are separated; larger values make separation more likely.NoiseRouter.continents()The continentalness values, used for biome placement only.NoiseRouter.depth()The depth values, used for biome placement and aquifer generation.NoiseRouter.erosion()The erosion values, used for biome placement and aquifer generation.NoiseRouter.finalDensity()The main density function deciding whether each position is solid or air.NoiseRouter.fluidLevelFloodedness()Affects the probability of an aquifer generating liquid in a cave; larger values make liquid more likely.NoiseRouter.fluidLevelSpread()Affects the height of an aquifer's liquid surface at a horizontal position; smaller values favor lower heights.NoiseRouter.lava()Affects whether an aquifer uses lava instead of water; the threshold is0.3.NoiseRouter.preliminarySurfaceLevel()A 2D density function (sampled atY=0) giving the Y-level of the preliminary surface, generally below the actual terrain height.NoiseRouter.ridges()The weirdness values, used for biome placement only.NoiseRouter.temperature()The temperature values, used for biome placement only.NoiseRouter.vegetation()The humidity values, used for biome placement only.NoiseRouter.veinGap()Affects which blocks in a vein become ore blocks rather than the vein's stone block.NoiseRouter.veinRidged()Controls which blocks belong to a vein.NoiseRouter.veinToggle()Affects ore vein type, vertical range and richness, selecting between copper and iron veins by Y-level and noise value.Methods in dev.wyck.worldgen.noise with parameters of type DensityFunctionModifier and TypeMethodDescriptionNoiseRouter.Builder.barrier(DensityFunction barrier) Sets the barrier slot.NoiseRouter.Builder.continents(DensityFunction continents) Sets the continents slot.NoiseRouter.Builder.depth(DensityFunction depth) Sets the depth slot.NoiseRouter.Builder.erosion(DensityFunction erosion) Sets the erosion slot.NoiseRouter.Builder.finalDensity(DensityFunction finalDensity) Sets the final density slot.NoiseRouter.Builder.fluidLevelFloodedness(DensityFunction fluidLevelFloodedness) Sets the fluid level floodedness slot.NoiseRouter.Builder.fluidLevelSpread(DensityFunction fluidLevelSpread) Sets the fluid level spread slot.NoiseRouter.Builder.lava(DensityFunction lava) Sets the lava slot.static NoiseRouterNoiseRouter.of(DensityFunction barrier, DensityFunction fluidLevelFloodedness, DensityFunction fluidLevelSpread, DensityFunction lava, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction preliminarySurfaceLevel, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap) Creates a new noise router from its density function slots.NoiseRouter.Builder.preliminarySurfaceLevel(DensityFunction preliminarySurfaceLevel) Sets the preliminary surface level slot.NoiseRouter.Builder.ridges(DensityFunction ridges) Sets the ridges slot.NoiseRouter.Builder.temperature(DensityFunction temperature) Sets the temperature slot.NoiseRouter.Builder.vegetation(DensityFunction vegetation) Sets the vegetation slot.NoiseRouter.Builder.veinGap(DensityFunction veinGap) Sets the vein gap slot.NoiseRouter.Builder.veinRidged(DensityFunction veinRidged) Sets the vein ridged slot.NoiseRouter.Builder.veinToggle(DensityFunction veinToggle) Sets the vein toggle slot.