Record Class DensityFunctionTypes.Spline.class_7135
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Spline.class_7135
- Record Components:
function-
- All Implemented Interfaces:
ToFloatFunction<DensityFunctionTypes.Spline.class_7136>
- Enclosing class:
DensityFunctionTypes.Spline
public static record DensityFunctionTypes.Spline.class_7135(RegistryEntry<DensityFunction> function)
extends Record
implements ToFloatFunction<DensityFunctionTypes.Spline.class_7136>
- Mappings:
Namespace Name official cxu$w$aintermediary net/minecraft/class_6916$class_7076$class_7135named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135official cintermediary comp_536named function
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunctionTypes.Spline.class_7135>private final RegistryEntry<DensityFunction>The field for thefunctionrecord component.Fields inherited from interface net.minecraft.util.function.ToFloatFunction
field_37409 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(DensityFunctionTypes.Spline.class_7136 class_7136) final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.floatmax()method_41530(DensityFunction.DensityFunctionVisitor densityFunctionVisitor) floatmin()toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.function.ToFloatFunction
method_41309
-
Field Details
-
function
The field for thefunctionrecord component. -
field_37679
public static final com.mojang.serialization.Codec<DensityFunctionTypes.Spline.class_7135> field_37679- Mappings:
Namespace Name Mixin selector official bLcxu$w$a;b:Lcom/mojang/serialization/Codec;intermediary field_37679Lnet/minecraft/class_6916$class_7076$class_7135;field_37679:Lcom/mojang/serialization/Codec;named field_37679Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135;field_37679:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_7135
-
-
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:
applyin interfaceToFloatFunction<DensityFunctionTypes.Spline.class_7136>- Mappings:
Namespace Name Mixin selector official aLcxu$w$a;a(Lcxu$w$b;)Fintermediary method_41531Lnet/minecraft/class_6916$class_7076$class_7135;method_41531(Lnet/minecraft/class_6916$class_7076$class_7136;)Fnamed applyLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7136;)F
-
min
public float min()- Specified by:
minin interfaceToFloatFunction<DensityFunctionTypes.Spline.class_7136>- Mappings:
Namespace Name Mixin selector official bLale;b()Fintermediary comp_532Lnet/minecraft/class_6501;comp_532()Fnamed minLnet/minecraft/util/function/ToFloatFunction;min()F
-
max
public float max()- Specified by:
maxin interfaceToFloatFunction<DensityFunctionTypes.Spline.class_7136>- Mappings:
Namespace Name Mixin selector official cLale;c()Fintermediary comp_533Lnet/minecraft/class_6501;comp_533()Fnamed maxLnet/minecraft/util/function/ToFloatFunction;max()F
-
method_41530
public DensityFunctionTypes.Spline.class_7135 method_41530(DensityFunction.DensityFunctionVisitor densityFunctionVisitor) - Mappings:
Namespace Name Mixin selector official aLcxu$w$a;a(Lcxt$f;)Lcxu$w$a;intermediary method_41530Lnet/minecraft/class_6916$class_7076$class_7135;method_41530(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6916$class_7076$class_7135;named method_41530Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135;method_41530(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135;
-
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 thefunctionrecord component.- Returns:
- the value of the
functionrecord component
-