Record Class MultiNoiseUtil.ParameterRange

java.lang.Object
java.lang.Record
net.minecraft.world.biome.source.util.MultiNoiseUtil.ParameterRange
Record Components:
min -
max -
Enclosing class:
MultiNoiseUtil

public static record MultiNoiseUtil.ParameterRange(long min, long max) extends Record
Mappings:
Namespace Name
official clc$b
intermediary net/minecraft/class_6544$class_6546
named net/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange
official b
intermediary comp_103
named min
official c
intermediary comp_104
named max
  • Field Details

    • min

      private final long min
      The field for the min record component.
    • max

      private final long max
      The field for the max record component.
    • CODEC

      public static final com.mojang.serialization.Codec<MultiNoiseUtil.ParameterRange> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a:Lcom/mojang/serialization/Codec;
      intermediary field_34478 Lnet/minecraft/class_6544$class_6546;field_34478:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • ParameterRange

      public ParameterRange(long long2, long long3)
  • Method Details

    • of

      public static MultiNoiseUtil.ParameterRange of(float point)
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a(F)Lclc$b;
      intermediary method_38120 Lnet/minecraft/class_6544$class_6546;method_38120(F)Lnet/minecraft/class_6544$class_6546;
      named of Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;of(F)Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;
    • of

      public static MultiNoiseUtil.ParameterRange of(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a(FF)Lclc$b;
      intermediary method_38121 Lnet/minecraft/class_6544$class_6546;method_38121(FF)Lnet/minecraft/class_6544$class_6546;
      named of Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;of(FF)Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;
    • combine

      Creates a new MultiNoiseUtil.ParameterRange that combines the parameters.
      Parameters:
      min - this will be used for the created range's minimum value
      max - this will be used for the created range's maximum value
      Returns:
      the created parameter range.
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a(Lclc$b;Lclc$b;)Lclc$b;
      intermediary method_38123 Lnet/minecraft/class_6544$class_6546;method_38123(Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;)Lnet/minecraft/class_6544$class_6546;
      named combine Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;combine(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;)Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;
    • 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
    • getDistance

      public long getDistance(long noise)
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a(J)J
      intermediary method_38126 Lnet/minecraft/class_6544$class_6546;method_38126(J)J
      named getDistance Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;getDistance(J)J
    • getDistance

      public long getDistance(MultiNoiseUtil.ParameterRange other)
      Mappings:
      Namespace Name Mixin selector
      official a Lclc$b;a(Lclc$b;)J
      intermediary method_38122 Lnet/minecraft/class_6544$class_6546;method_38122(Lnet/minecraft/class_6544$class_6546;)J
      named getDistance Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;getDistance(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;)J
    • combine

      Mappings:
      Namespace Name Mixin selector
      official b Lclc$b;b(Lclc$b;)Lclc$b;
      intermediary method_38127 Lnet/minecraft/class_6544$class_6546;method_38127(Lnet/minecraft/class_6544$class_6546;)Lnet/minecraft/class_6544$class_6546;
      named combine Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;combine(Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;)Lnet/minecraft/world/biome/source/util/MultiNoiseUtil$ParameterRange;
    • 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 o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • min

      public long min()
      Returns the value of the min record component.
      Returns:
      the value of the min record component
    • max

      public long max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component