Class IntProvider

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

public abstract class IntProvider extends Object
Mappings:
Namespace Name
named net/minecraft/util/math/intprovider/IntProvider
intermediary net/minecraft/class_6017
official bpw
  • 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
      named INT_CODEC Lnet/minecraft/util/math/intprovider/IntProvider;INT_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_29945 Lnet/minecraft/class_6017;field_29945:Lcom/mojang/serialization/Codec;
      official a Lbpw;a:Lcom/mojang/serialization/Codec;
    • VALUE_CODEC

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

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

      public static final com.mojang.serialization.Codec<IntProvider> POSITIVE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named POSITIVE_CODEC Lnet/minecraft/util/math/intprovider/IntProvider;POSITIVE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_33451 Lnet/minecraft/class_6017;field_33451:Lcom/mojang/serialization/Codec;
      official e Lbpw;e: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
      named createValidatingCodec Lnet/minecraft/util/math/intprovider/IntProvider;createValidatingCodec(II)Lcom/mojang/serialization/Codec;
      intermediary method_35004 Lnet/minecraft/class_6017;method_35004(II)Lcom/mojang/serialization/Codec;
      official b Lbpw;b(II)Lcom/mojang/serialization/Codec;
    • createValidatingCodec

      public static <T extends IntProvider> com.mojang.serialization.Codec<T> createValidatingCodec(int min, int max, com.mojang.serialization.Codec<T> providerCodec)
      Mappings:
      Namespace Name Mixin selector
      named createValidatingCodec Lnet/minecraft/util/math/intprovider/IntProvider;createValidatingCodec(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_49103 Lnet/minecraft/class_6017;method_49103(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Lbpw;a(IILcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • method_58612

      private static <T extends IntProvider> com.mojang.serialization.DataResult<T> method_58612(int int2, int int3, T t)
      Mappings:
      Namespace Name Mixin selector
      named method_58612 Lnet/minecraft/util/math/intprovider/IntProvider;method_58612(IILnet/minecraft/util/math/intprovider/IntProvider;)Lcom/mojang/serialization/DataResult;
      intermediary method_58612 Lnet/minecraft/class_6017;method_58612(IILnet/minecraft/class_6017;)Lcom/mojang/serialization/DataResult;
      official a Lbpw;a(IILbpw;)Lcom/mojang/serialization/DataResult;
    • get

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