Class ConstantIntProvider

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

public class ConstantIntProvider extends IntProvider
Mappings:
Namespace Name
named net/minecraft/util/math/intprovider/ConstantIntProvider
intermediary net/minecraft/class_6016
official bpx
  • Field Details

    • ZERO

      public static final ConstantIntProvider ZERO
      Mappings:
      Namespace Name Mixin selector
      named ZERO Lnet/minecraft/util/math/intprovider/ConstantIntProvider;ZERO:Lnet/minecraft/util/math/intprovider/ConstantIntProvider;
      intermediary field_29942 Lnet/minecraft/class_6016;field_29942:Lnet/minecraft/class_6016;
      official a Lbpx;a:Lbpx;
    • CODEC

      public static final com.mojang.serialization.MapCodec<ConstantIntProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/intprovider/ConstantIntProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_29943 Lnet/minecraft/class_6016;field_29943:Lcom/mojang/serialization/MapCodec;
      official b Lbpx;b:Lcom/mojang/serialization/MapCodec;
    • value

      private final int value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/util/math/intprovider/ConstantIntProvider;value:I
      intermediary field_29944 Lnet/minecraft/class_6016;field_29944:I
      official f Lbpx;f:I
  • Constructor Details

    • ConstantIntProvider

      private ConstantIntProvider(int value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/intprovider/ConstantIntProvider;<init>(I)V
      intermediary <init> Lnet/minecraft/class_6016;<init>(I)V
      official <init> Lbpx;<init>(I)V
  • Method Details

    • create

      public static ConstantIntProvider create(int value)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/math/intprovider/ConstantIntProvider;create(I)Lnet/minecraft/util/math/intprovider/ConstantIntProvider;
      intermediary method_34998 Lnet/minecraft/class_6016;method_34998(I)Lnet/minecraft/class_6016;
      official a Lbpx;a(I)Lbpx;
    • getValue

      public int getValue()
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/util/math/intprovider/ConstantIntProvider;getValue()I
      intermediary method_34997 Lnet/minecraft/class_6016;method_34997()I
      official d Lbpx;d()I
    • 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 Lbqa;a(Lazh;)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 Lbqa;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 Lbqa;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 Lbqa;c()Lbqb;
    • toString

      public String toString()
      Overrides:
      toString in class Object