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 arf
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 Larf;a:Larf;
      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 Larf;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 Larf;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> Larf;<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 Larf;a(I)Larf;
      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 Larf;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 Lari;a(Ljava/util/Random;)I
      intermediary method_35008 Lnet/minecraft/class_6017;method_35008(Ljava/util/Random;)I
      named get Lnet/minecraft/util/math/intprovider/IntProvider;get(Ljava/util/Random;)I
    • getMin

      public int getMin()
      Specified by:
      getMin in class IntProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lari;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 Lari;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 Lari;c()Larj;
      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