Record Class DensityFunctionTypes.Spline.DensityFunctionWrapper
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Spline.DensityFunctionWrapper
- Record Components:
function
-
- All Implemented Interfaces:
ToFloatFunction<DensityFunctionTypes.Spline.SplinePos>
- Enclosing class:
DensityFunctionTypes.Spline
public static record DensityFunctionTypes.Spline.DensityFunctionWrapper(RegistryEntry<DensityFunction> function)
extends Record
implements ToFloatFunction<DensityFunctionTypes.Spline.SplinePos>
- Mappings:
Namespace Name named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$DensityFunctionWrapper
intermediary net/minecraft/class_6916$class_7076$class_7135
official edj$w$a
named function
intermediary comp_536
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DensityFunctionTypes.Spline.DensityFunctionWrapper> private final RegistryEntry
<DensityFunction> The field for thefunction
record component.Fields inherited from interface net.minecraft.util.function.ToFloatFunction
IDENTITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(DensityFunctionTypes.Spline.SplinePos splinePos) final boolean
Indicates whether some other object is "equal to" this one.function()
Returns the value of thefunction
record component.final int
hashCode()
Returns a hash code value for this object.float
max()
float
min()
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.function.ToFloatFunction
compose
-
Field Details
-
function
The field for thefunction
record component. -
CODEC
public static final com.mojang.serialization.Codec<DensityFunctionTypes.Spline.DensityFunctionWrapper> CODEC- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$DensityFunctionWrapper;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_37679
Lnet/minecraft/class_6916$class_7076$class_7135;field_37679:Lcom/mojang/serialization/Codec;
official b
Ledj$w$a;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DensityFunctionWrapper
-
-
Method Details
-
toString
Returns 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. -
apply
- Specified by:
apply
in interfaceToFloatFunction<DensityFunctionTypes.Spline.SplinePos>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$DensityFunctionWrapper;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$SplinePos;)F
intermediary method_41531
Lnet/minecraft/class_6916$class_7076$class_7135;method_41531(Lnet/minecraft/class_6916$class_7076$class_7136;)F
official a
Ledj$w$a;a(Ledj$w$b;)F
-
min
public float min()- Specified by:
min
in interfaceToFloatFunction<DensityFunctionTypes.Spline.SplinePos>
- Mappings:
Namespace Name Mixin selector named min
Lnet/minecraft/util/function/ToFloatFunction;min()F
intermediary comp_532
Lnet/minecraft/class_6501;comp_532()F
official b
Lbbh;b()F
-
max
public float max()- Specified by:
max
in interfaceToFloatFunction<DensityFunctionTypes.Spline.SplinePos>
- Mappings:
Namespace Name Mixin selector named max
Lnet/minecraft/util/function/ToFloatFunction;max()F
intermediary comp_533
Lnet/minecraft/class_6501;comp_533()F
official c
Lbbh;c()F
-
apply
public DensityFunctionTypes.Spline.DensityFunctionWrapper apply(DensityFunction.DensityFunctionVisitor visitor) - Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$DensityFunctionWrapper;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$DensityFunctionWrapper;
intermediary method_41530
Lnet/minecraft/class_6916$class_7076$class_7135;method_41530(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6916$class_7076$class_7135;
official a
Ledj$w$a;a(Ledi$f;)Ledj$w$a;
-
hashCode
public 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. -
equals
Indicates 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)
. -
function
Returns the value of thefunction
record component.- Returns:
- the value of the
function
record component
-