Record Class DensityFunctions.Marker
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunctions.Marker
- All Implemented Interfaces:
- DensityFunction,- DensityFunctions.MarkerOrMarked
- Enclosing class:
- DensityFunctions
protected static record DensityFunctions.Marker(DensityFunctions.Marker.Type type, DensityFunction wrapped)
extends Record
implements DensityFunctions.MarkerOrMarked
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunctionDensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DensityFunctions.Marker.TypeThe field for thetyperecord component.private final DensityFunctionThe field for thewrappedrecord component.Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunctionCODEC, DIRECT_CODEC, HOLDER_HELPER_CODEC
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMarker(DensityFunctions.Marker.Type type, DensityFunction wrapped) Creates an instance of aMarkerrecord class.
- 
Method SummaryModifier and TypeMethodDescriptiondoublecompute(DensityFunction.FunctionContext p_208712_) final booleanIndicates whether some other object is "equal to" this one.voidfillArray(double[] p_208716_, DensityFunction.ContextProvider p_208717_) final inthashCode()Returns a hash code value for this object.doublemaxValue()doubleminValue()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.wrapped()Returns the value of thewrappedrecord 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.MarkerOrMarkedcodec, mapAll
- 
Field Details- 
typeThe field for thetyperecord component.
- 
wrappedThe field for thewrappedrecord component.
 
- 
- 
Constructor Details- 
MarkerCreates an instance of aMarkerrecord class.- Parameters:
- type- the value for the- typerecord component
- wrapped- the value for the- wrappedrecord component
 
 
- 
- 
Method Details- 
compute- Specified by:
- computein interface- DensityFunction
 
- 
fillArray- Specified by:
- fillArrayin interface- DensityFunction
 
- 
minValuepublic double minValue()- Specified by:
- minValuein interface- DensityFunction
 
- 
maxValuepublic double maxValue()- Specified by:
- maxValuein interface- DensityFunction
 
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
typeReturns the value of thetyperecord component.- Specified by:
- typein interface- DensityFunctions.MarkerOrMarked
- Returns:
- the value of the typerecord component
 
- 
wrappedReturns the value of thewrappedrecord component.- Specified by:
- wrappedin interface- DensityFunctions.MarkerOrMarked
- Returns:
- the value of the wrappedrecord component
 
 
-