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
official bcw
intermediary net/minecraft/class_6016
named net/minecraft/util/math/intprovider/ConstantIntProvider
  • Field Details

    • ZERO

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

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

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

    • ConstantIntProvider

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

    • create

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

      public int getValue()
      Mappings:
      Namespace Name Mixin selector
      official d Lbcw;d()I
      intermediary method_34997 Lnet/minecraft/class_6016;method_34997()I
      named getValue Lnet/minecraft/util/math/intprovider/ConstantIntProvider;getValue()I
    • get

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object