Class IntProvider

java.lang.Object
net.minecraft.util.math.intprovider.IntProvider
Direct Known Subclasses:
BiasedToBottomIntProvider, ClampedIntProvider, ConstantIntProvider, UniformIntProvider

public abstract class IntProvider extends Object
Mappings:
Namespace Name
official ari
intermediary net/minecraft/class_6017
named net/minecraft/util/math/intprovider/IntProvider
  • Field Details

    • INT_CODEC

      private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Integer,​IntProvider>> INT_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lari;a:Lcom/mojang/serialization/Codec;
      intermediary field_29945 Lnet/minecraft/class_6017;field_29945:Lcom/mojang/serialization/Codec;
      named INT_CODEC Lnet/minecraft/util/math/intprovider/IntProvider;INT_CODEC:Lcom/mojang/serialization/Codec;
    • VALUE_CODEC

      public static final com.mojang.serialization.Codec<IntProvider> VALUE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Lari;c:Lcom/mojang/serialization/Codec;
      intermediary field_29946 Lnet/minecraft/class_6017;field_29946:Lcom/mojang/serialization/Codec;
      named VALUE_CODEC Lnet/minecraft/util/math/intprovider/IntProvider;VALUE_CODEC:Lcom/mojang/serialization/Codec;
    • field_33450

      public static final com.mojang.serialization.Codec<IntProvider> field_33450
      Mappings:
      Namespace Name Mixin selector
      official d Lari;d:Lcom/mojang/serialization/Codec;
      intermediary field_33450 Lnet/minecraft/class_6017;field_33450:Lcom/mojang/serialization/Codec;
      named field_33450 Lnet/minecraft/util/math/intprovider/IntProvider;field_33450:Lcom/mojang/serialization/Codec;
    • field_33451

      public static final com.mojang.serialization.Codec<IntProvider> field_33451
      Mappings:
      Namespace Name Mixin selector
      official e Lari;e:Lcom/mojang/serialization/Codec;
      intermediary field_33451 Lnet/minecraft/class_6017;field_33451:Lcom/mojang/serialization/Codec;
      named field_33451 Lnet/minecraft/util/math/intprovider/IntProvider;field_33451:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • IntProvider

      public IntProvider()
  • Method Details

    • createValidatingCodec

      public static com.mojang.serialization.Codec<IntProvider> createValidatingCodec(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official b Lari;b(II)Lcom/mojang/serialization/Codec;
      intermediary method_35004 Lnet/minecraft/class_6017;method_35004(II)Lcom/mojang/serialization/Codec;
      named createValidatingCodec Lnet/minecraft/util/math/intprovider/IntProvider;createValidatingCodec(II)Lcom/mojang/serialization/Codec;
    • get

      public abstract int get(Random random)
      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 abstract int getMin()
      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 abstract int getMax()
      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 abstract IntProviderType<?> getType()
      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;