Class ApplyBonusLootFunction.UniformBonusCount

java.lang.Object
net.minecraft.loot.function.ApplyBonusLootFunction.UniformBonusCount
All Implemented Interfaces:
ApplyBonusLootFunction.Formula
Enclosing class:
ApplyBonusLootFunction

private static final class ApplyBonusLootFunction.UniformBonusCount extends Object implements ApplyBonusLootFunction.Formula
Mappings:
Namespace Name
official djo$f
intermediary net/minecraft/class_94$class_100
named net/minecraft/loot/function/ApplyBonusLootFunction$UniformBonusCount
  • Field Details

    • ID

      public static final Identifier ID
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$f;a:Lww;
      intermediary field_1016 Lnet/minecraft/class_94$class_100;field_1016:Lnet/minecraft/class_2960;
      named ID Lnet/minecraft/loot/function/ApplyBonusLootFunction$UniformBonusCount;ID:Lnet/minecraft/util/Identifier;
    • bonusMultiplier

      private final int bonusMultiplier
      Mappings:
      Namespace Name Mixin selector
      official b Ldjo$f;b:I
      intermediary field_1017 Lnet/minecraft/class_94$class_100;field_1017:I
      named bonusMultiplier Lnet/minecraft/loot/function/ApplyBonusLootFunction$UniformBonusCount;bonusMultiplier:I
  • Constructor Details

    • UniformBonusCount

      public UniformBonusCount(int bonusMultiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldjo$f;<init>(I)V
      intermediary <init> Lnet/minecraft/class_94$class_100;<init>(I)V
      named <init> Lnet/minecraft/loot/function/ApplyBonusLootFunction$UniformBonusCount;<init>(I)V
  • Method Details

    • getValue

      public int getValue(Random random, int initialCount, int enchantmentLevel)
      Specified by:
      getValue in interface ApplyBonusLootFunction.Formula
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$b;a(Ljava/util/Random;II)I
      intermediary method_467 Lnet/minecraft/class_94$class_96;method_467(Ljava/util/Random;II)I
      named getValue Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;getValue(Ljava/util/Random;II)I
    • toJson

      public void toJson(JsonObject json, JsonSerializationContext context)
      Specified by:
      toJson in interface ApplyBonusLootFunction.Formula
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonSerializationContext;)V
      intermediary method_465 Lnet/minecraft/class_94$class_96;method_465(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonSerializationContext;)V
      named toJson Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;toJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonSerializationContext;)V
    • fromJson

      public static ApplyBonusLootFunction.Formula fromJson(JsonObject json, JsonDeserializationContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$f;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ldjo$b;
      intermediary method_471 Lnet/minecraft/class_94$class_100;method_471(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_94$class_96;
      named fromJson Lnet/minecraft/loot/function/ApplyBonusLootFunction$UniformBonusCount;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;
    • getId

      public Identifier getId()
      Specified by:
      getId in interface ApplyBonusLootFunction.Formula
      Mappings:
      Namespace Name Mixin selector
      official a Ldjo$b;a()Lww;
      intermediary method_466 Lnet/minecraft/class_94$class_96;method_466()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;getId()Lnet/minecraft/util/Identifier;