Class BoundedIntUnaryOperator

java.lang.Object
net.minecraft.loot.operator.BoundedIntUnaryOperator

public class BoundedIntUnaryOperator extends Object
Mappings:
Namespace Name
official ecp
intermediary net/minecraft/class_42
named net/minecraft/loot/operator/BoundedIntUnaryOperator
  • Field Details

    • field_45791

      private static final com.mojang.serialization.Codec<BoundedIntUnaryOperator> field_45791
      Mappings:
      Namespace Name Mixin selector
      official b Lecp;b:Lcom/mojang/serialization/Codec;
      intermediary field_45791 Lnet/minecraft/class_42;field_45791:Lcom/mojang/serialization/Codec;
      named field_45791 Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;field_45791:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<BoundedIntUnaryOperator> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lecp;a:Lcom/mojang/serialization/Codec;
      intermediary field_45790 Lnet/minecraft/class_42;field_45790:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;CODEC:Lcom/mojang/serialization/Codec;
    • min

      @Nullable private final @Nullable LootNumberProvider min
      Mappings:
      Namespace Name Mixin selector
      official c Lecp;c:Legk;
      intermediary field_921 Lnet/minecraft/class_42;field_921:Lnet/minecraft/class_5658;
      named min Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;min:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • max

      @Nullable private final @Nullable LootNumberProvider max
      Mappings:
      Namespace Name Mixin selector
      official d Lecp;d:Legk;
      intermediary field_920 Lnet/minecraft/class_42;field_920:Lnet/minecraft/class_5658;
      named max Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;max:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • applier

      private final BoundedIntUnaryOperator.Applier applier
      Mappings:
      Namespace Name Mixin selector
      official e Lecp;e:Lecp$b;
      intermediary field_27897 Lnet/minecraft/class_42;field_27897:Lnet/minecraft/class_42$class_5639;
      named applier Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;applier:Lnet/minecraft/loot/operator/BoundedIntUnaryOperator$Applier;
    • tester

      private final BoundedIntUnaryOperator.Tester tester
      Mappings:
      Namespace Name Mixin selector
      official f Lecp;f:Lecp$a;
      intermediary field_27898 Lnet/minecraft/class_42;field_27898:Lnet/minecraft/class_42$class_5638;
      named tester Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;tester:Lnet/minecraft/loot/operator/BoundedIntUnaryOperator$Tester;
  • Constructor Details

    • BoundedIntUnaryOperator

      private BoundedIntUnaryOperator(Optional<LootNumberProvider> min, Optional<LootNumberProvider> max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lecp;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_42;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
    • BoundedIntUnaryOperator

      private BoundedIntUnaryOperator(@Nullable @Nullable LootNumberProvider min, @Nullable @Nullable LootNumberProvider max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lecp;<init>(Legk;Legk;)V
      intermediary <init> Lnet/minecraft/class_42;<init>(Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
      named <init> Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;<init>(Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
  • Method Details

    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Mappings:
      Namespace Name Mixin selector
      official a Lecp;a()Ljava/util/Set;
      intermediary method_32386 Lnet/minecraft/class_42;method_32386()Ljava/util/Set;
      named getRequiredParameters Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;getRequiredParameters()Ljava/util/Set;
    • create

      public static BoundedIntUnaryOperator create(int value)
      Mappings:
      Namespace Name Mixin selector
      official a Lecp;a(I)Lecp;
      intermediary method_32387 Lnet/minecraft/class_42;method_32387(I)Lnet/minecraft/class_42;
      named create Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;create(I)Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;
    • create

      public static BoundedIntUnaryOperator create(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official a Lecp;a(II)Lecp;
      intermediary method_282 Lnet/minecraft/class_42;method_282(II)Lnet/minecraft/class_42;
      named create Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;create(II)Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;
    • createMin

      public static BoundedIntUnaryOperator createMin(int min)
      Mappings:
      Namespace Name Mixin selector
      official b Lecp;b(I)Lecp;
      intermediary method_280 Lnet/minecraft/class_42;method_280(I)Lnet/minecraft/class_42;
      named createMin Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;createMin(I)Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;
    • createMax

      public static BoundedIntUnaryOperator createMax(int max)
      Mappings:
      Namespace Name Mixin selector
      official c Lecp;c(I)Lecp;
      intermediary method_277 Lnet/minecraft/class_42;method_277(I)Lnet/minecraft/class_42;
      named createMax Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;createMax(I)Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;
    • apply

      public int apply(LootContext context, int value)
      Mappings:
      Namespace Name Mixin selector
      official a Lecp;a(Lecq;I)I
      intermediary method_32389 Lnet/minecraft/class_42;method_32389(Lnet/minecraft/class_47;I)I
      named apply Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;apply(Lnet/minecraft/loot/context/LootContext;I)I
    • test

      public boolean test(LootContext context, int value)
      Mappings:
      Namespace Name Mixin selector
      official b Lecp;b(Lecq;I)Z
      intermediary method_32393 Lnet/minecraft/class_42;method_32393(Lnet/minecraft/class_47;I)Z
      named test Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;test(Lnet/minecraft/loot/context/LootContext;I)Z
    • method_53263

      private OptionalInt method_53263()
      Mappings:
      Namespace Name Mixin selector
      official b Lecp;b()Ljava/util/OptionalInt;
      intermediary method_53263 Lnet/minecraft/class_42;method_53263()Ljava/util/OptionalInt;
      named method_53263 Lnet/minecraft/loot/operator/BoundedIntUnaryOperator;method_53263()Ljava/util/OptionalInt;