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 czo$w$a
intermediary net/minecraft/class_6916$class_7076$class_7135
named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135
official c
intermediary comp_536
named function
  • Field Details

    • function

      private final RegistryEntry<DensityFunction> function
      The field for the function record component.
    • field_37679

      public static final com.mojang.serialization.Codec<DensityFunctionTypes.Spline.class_7135> field_37679
      Mappings:
      Namespace Name Mixin selector
      official b Lczo$w$a;b:Lcom/mojang/serialization/Codec;
      intermediary field_37679 Lnet/minecraft/class_6916$class_7076$class_7135;field_37679:Lcom/mojang/serialization/Codec;
      named field_37679 Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Spline$class_7135;field_37679:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • apply

      public float apply(DensityFunctionTypes.Spline.class_7136 class_7136)
      Specified by:
      apply in interface ToFloatFunction<DensityFunctionTypes.Spline.class_7136>
      Mappings:
      Namespace Name Mixin selector
      official a Lczo$w$a;a(Lczo$w$b;)F
      intermediary method_41531 Lnet/minecraft/class_6916$class_7076$class_7135;method_41531(Lnet/minecraft/class_6916$class_7076$class_7136;)F
      named apply Lnet/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:
      min in interface ToFloatFunction<DensityFunctionTypes.Spline.class_7136>
      Mappings:
      Namespace Name Mixin selector
      official b Lami;b()F
      intermediary comp_532 Lnet/minecraft/class_6501;comp_532()F
      named min Lnet/minecraft/util/function/ToFloatFunction;min()F
    • max

      public float max()
      Specified by:
      max in interface ToFloatFunction<DensityFunctionTypes.Spline.class_7136>
      Mappings:
      Namespace Name Mixin selector
      official c Lami;c()F
      intermediary comp_533 Lnet/minecraft/class_6501;comp_533()F
      named max Lnet/minecraft/util/function/ToFloatFunction;max()F
    • method_41530

      Mappings:
      Namespace Name Mixin selector
      official a Lczo$w$a;a(Lczn$f;)Lczo$w$a;
      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;
      named method_41530 Lnet/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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • function

      public RegistryEntry<DensityFunction> function()
      Returns the value of the function record component.
      Returns:
      the value of the function record component