Class UniformIntDistribution

java.lang.Object
net.minecraft.world.gen.UniformIntDistribution

public class UniformIntDistribution
extends Object
Mappings:
Namespace Name
official ago
intermediary net/minecraft/class_5428
named net/minecraft/world/gen/UniformIntDistribution
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<UniformIntDistribution> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a:Lcom/mojang/serialization/Codec;
      intermediary field_25809 Lnet/minecraft/class_5428;field_25809:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/UniformIntDistribution;CODEC:Lcom/mojang/serialization/Codec;
    • base

      private final int base
      Mappings:
      Namespace Name Mixin selector
      official b Lago;b:I
      intermediary field_25810 Lnet/minecraft/class_5428;field_25810:I
      named base Lnet/minecraft/world/gen/UniformIntDistribution;base:I
    • spread

      private final int spread
      Mappings:
      Namespace Name Mixin selector
      official c Lago;c:I
      intermediary field_25811 Lnet/minecraft/class_5428;field_25811:I
      named spread Lnet/minecraft/world/gen/UniformIntDistribution;spread:I
  • Constructor Details

    • UniformIntDistribution

      private UniformIntDistribution​(int base, int spread)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lago;<init>(II)V
      intermediary <init> Lnet/minecraft/class_5428;<init>(II)V
      named <init> Lnet/minecraft/world/gen/UniformIntDistribution;<init>(II)V
  • Method Details

    • createValidatedCodec

      public static com.mojang.serialization.Codec<UniformIntDistribution> createValidatedCodec​(int minBase, int maxBase, int maxSpread)
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a(III)Lcom/mojang/serialization/Codec;
      intermediary method_30316 Lnet/minecraft/class_5428;method_30316(III)Lcom/mojang/serialization/Codec;
      named createValidatedCodec Lnet/minecraft/world/gen/UniformIntDistribution;createValidatedCodec(III)Lcom/mojang/serialization/Codec;
    • of

      public static UniformIntDistribution of​(int value)
      Creates a distribution with a constant value.
      Parameters:
      value - the constant value
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a(I)Lago;
      intermediary method_30314 Lnet/minecraft/class_5428;method_30314(I)Lnet/minecraft/class_5428;
      named of Lnet/minecraft/world/gen/UniformIntDistribution;of(I)Lnet/minecraft/world/gen/UniformIntDistribution;
    • of

      public static UniformIntDistribution of​(int base, int spread)
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a(II)Lago;
      intermediary method_30315 Lnet/minecraft/class_5428;method_30315(II)Lnet/minecraft/class_5428;
      named of Lnet/minecraft/world/gen/UniformIntDistribution;of(II)Lnet/minecraft/world/gen/UniformIntDistribution;
    • getValue

      public int getValue​(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a(Ljava/util/Random;)I
      intermediary method_30321 Lnet/minecraft/class_5428;method_30321(Ljava/util/Random;)I
      named getValue Lnet/minecraft/world/gen/UniformIntDistribution;getValue(Ljava/util/Random;)I
    • minValue

      public int minValue()
      Mappings:
      Namespace Name Mixin selector
      official a Lago;a()I
      intermediary method_32870 Lnet/minecraft/class_5428;method_32870()I
      named minValue Lnet/minecraft/world/gen/UniformIntDistribution;minValue()I
    • maxValue

      public int maxValue()
      Mappings:
      Namespace Name Mixin selector
      official c Lago;c()I
      intermediary method_32871 Lnet/minecraft/class_5428;method_32871()I
      named maxValue Lnet/minecraft/world/gen/UniformIntDistribution;maxValue()I
    • equals

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lago;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_5428;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/world/gen/UniformIntDistribution;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lago;hashCode()I
      intermediary hashCode Lnet/minecraft/class_5428;hashCode()I
      named hashCode Lnet/minecraft/world/gen/UniformIntDistribution;hashCode()I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lago;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_5428;toString()Ljava/lang/String;
      named toString Lnet/minecraft/world/gen/UniformIntDistribution;toString()Ljava/lang/String;