Class Biome.MixedNoisePoint

java.lang.Object
net.minecraft.world.biome.Biome.MixedNoisePoint
Enclosing class:
Biome

public static class Biome.MixedNoisePoint extends Object
Represents a point in a multi-dimensional cartesian plane. Mixed-noise biome generator picks the closest noise point from its selected point and choose the biome associated to that closest point. Another factor, rarity potential, favors larger differences in values instead, contrary to other point values.
Mappings:
Namespace Name
official bxo$c
intermediary net/minecraft/class_1959$class_4762
named net/minecraft/world/biome/Biome$MixedNoisePoint
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Biome.MixedNoisePoint> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lbxo$c;a:Lcom/mojang/serialization/Codec;
      intermediary field_24679 Lnet/minecraft/class_1959$class_4762;field_24679:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/biome/Biome$MixedNoisePoint;CODEC:Lcom/mojang/serialization/Codec;
    • temperature

      private final float temperature
      Mappings:
      Namespace Name Mixin selector
      official b Lbxo$c;b:F
      intermediary field_22043 Lnet/minecraft/class_1959$class_4762;field_22043:F
      named temperature Lnet/minecraft/world/biome/Biome$MixedNoisePoint;temperature:F
    • humidity

      private final float humidity
      Mappings:
      Namespace Name Mixin selector
      official c Lbxo$c;c:F
      intermediary field_22044 Lnet/minecraft/class_1959$class_4762;field_22044:F
      named humidity Lnet/minecraft/world/biome/Biome$MixedNoisePoint;humidity:F
    • altitude

      private final float altitude
      Mappings:
      Namespace Name Mixin selector
      official d Lbxo$c;d:F
      intermediary field_22045 Lnet/minecraft/class_1959$class_4762;field_22045:F
      named altitude Lnet/minecraft/world/biome/Biome$MixedNoisePoint;altitude:F
    • weirdness

      private final float weirdness
      Mappings:
      Namespace Name Mixin selector
      official e Lbxo$c;e:F
      intermediary field_22046 Lnet/minecraft/class_1959$class_4762;field_22046:F
      named weirdness Lnet/minecraft/world/biome/Biome$MixedNoisePoint;weirdness:F
    • weight

      private final float weight
      This value awards another point with value farthest from this one; i.e. unlike other points where closer distance is better, for this value the farther the better. The result of the different values can be approximately modeled by a hyperbola weight=cosh(peak-1) as used by the mixed-noise generator.
      Mappings:
      Namespace Name Mixin selector
      official f Lbxo$c;f:F
      intermediary field_22047 Lnet/minecraft/class_1959$class_4762;field_22047:F
      named weight Lnet/minecraft/world/biome/Biome$MixedNoisePoint;weight:F
  • Constructor Details

    • MixedNoisePoint

      public MixedNoisePoint(float temperature, float humidity, float altitude, float weirdness, float weight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxo$c;<init>(FFFFF)V
      intermediary <init> Lnet/minecraft/class_1959$class_4762;<init>(FFFFF)V
      named <init> Lnet/minecraft/world/biome/Biome$MixedNoisePoint;<init>(FFFFF)V
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbxo$c;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1959$class_4762;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/world/biome/Biome$MixedNoisePoint;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • calculateDistanceTo

      public float calculateDistanceTo(Biome.MixedNoisePoint other)
      Calculates the distance from this noise point to another one. The distance is a squared distance in a multi-dimensional cartesian plane from a mathematical point of view, with a special parameter that reduces the calculated distance.

      For most fields except weight, smaller difference between two points' fields will lead to smaller distance. For weight, larger differences lead to smaller distance.

      This distance is used by the mixed-noise biome layer source. The layer source calculates an arbitrary noise point, and selects the biome that offers a closest point to its arbitrary point.

      Parameters:
      other - the other noise point
      Mappings:
      Namespace Name Mixin selector
      official a Lbxo$c;a(Lbxo$c;)F
      intermediary method_24381 Lnet/minecraft/class_1959$class_4762;method_24381(Lnet/minecraft/class_1959$class_4762;)F
      named calculateDistanceTo Lnet/minecraft/world/biome/Biome$MixedNoisePoint;calculateDistanceTo(Lnet/minecraft/world/biome/Biome$MixedNoisePoint;)F