Class UniformIntProvider

java.lang.Object
net.minecraft.util.math.intprovider.IntProvider
net.minecraft.util.math.intprovider.UniformIntProvider

public class UniformIntProvider extends IntProvider
Mappings:
Namespace Name
named net/minecraft/util/math/intprovider/UniformIntProvider
intermediary net/minecraft/class_6019
official bqc
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<UniformIntProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/intprovider/UniformIntProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_29949 Lnet/minecraft/class_6019;field_29949:Lcom/mojang/serialization/MapCodec;
      official a Lbqc;a:Lcom/mojang/serialization/MapCodec;
    • min

      private final int min
      Mappings:
      Namespace Name Mixin selector
      named min Lnet/minecraft/util/math/intprovider/UniformIntProvider;min:I
      intermediary field_29950 Lnet/minecraft/class_6019;field_29950:I
      official b Lbqc;b:I
    • max

      private final int max
      Mappings:
      Namespace Name Mixin selector
      named max Lnet/minecraft/util/math/intprovider/UniformIntProvider;max:I
      intermediary field_29951 Lnet/minecraft/class_6019;field_29951:I
      official f Lbqc;f:I
  • Constructor Details

    • UniformIntProvider

      private UniformIntProvider(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/intprovider/UniformIntProvider;<init>(II)V
      intermediary <init> Lnet/minecraft/class_6019;<init>(II)V
      official <init> Lbqc;<init>(II)V
  • Method Details

    • create

      public static UniformIntProvider create(int min, int max)
      Parameters:
      min - the minimum value, inclusive
      max - the maximum value, inclusive
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/math/intprovider/UniformIntProvider;create(II)Lnet/minecraft/util/math/intprovider/UniformIntProvider;
      intermediary method_35017 Lnet/minecraft/class_6019;method_35017(II)Lnet/minecraft/class_6019;
      official a Lbqc;a(II)Lbqc;
    • get

      public int get(Random random)
      Specified by:
      get in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/util/math/intprovider/IntProvider;get(Lnet/minecraft/util/math/random/Random;)I
      intermediary method_35008 Lnet/minecraft/class_6017;method_35008(Lnet/minecraft/class_5819;)I
      official a Lbpw;a(Layw;)I
    • getMin

      public int getMin()
      Specified by:
      getMin in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getMin Lnet/minecraft/util/math/intprovider/IntProvider;getMin()I
      intermediary method_35009 Lnet/minecraft/class_6017;method_35009()I
      official a Lbpw;a()I
    • getMax

      public int getMax()
      Specified by:
      getMax in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getMax Lnet/minecraft/util/math/intprovider/IntProvider;getMax()I
      intermediary method_35011 Lnet/minecraft/class_6017;method_35011()I
      official b Lbpw;b()I
    • getType

      public IntProviderType<?> getType()
      Specified by:
      getType in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/util/math/intprovider/IntProvider;getType()Lnet/minecraft/util/math/intprovider/IntProviderType;
      intermediary method_35012 Lnet/minecraft/class_6017;method_35012()Lnet/minecraft/class_6018;
      official c Lbpw;c()Lbpx;
    • toString

      public String toString()
      Overrides:
      toString in class Object