Package net.minecraft.loot.function
Class ApplyBonusLootFunction.BinomialWithBonusCount
java.lang.Object
net.minecraft.loot.function.ApplyBonusLootFunction.BinomialWithBonusCount
- All Implemented Interfaces:
ApplyBonusLootFunction.Formula
- Enclosing class:
ApplyBonusLootFunction
private static final class ApplyBonusLootFunction.BinomialWithBonusCount
extends Object
implements ApplyBonusLootFunction.Formula
- Mappings:
Namespace Name official dsf$a
intermediary net/minecraft/class_94$class_95
named net/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(JsonObject json, JsonDeserializationContext context) getId()
int
void
toJson
(JsonObject json, JsonSerializationContext context)
-
Field Details
-
ID
- Mappings:
Namespace Name Mixin selector official a
Ldsf$a;a:Laaj;
intermediary field_1013
Lnet/minecraft/class_94$class_95;field_1013:Lnet/minecraft/class_2960;
named ID
Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;ID:Lnet/minecraft/util/Identifier;
-
extra
private final int extra- Mappings:
Namespace Name Mixin selector official b
Ldsf$a;b:I
intermediary field_1014
Lnet/minecraft/class_94$class_95;field_1014:I
named extra
Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;extra:I
-
probability
private final float probability- Mappings:
Namespace Name Mixin selector official c
Ldsf$a;c:F
intermediary field_1012
Lnet/minecraft/class_94$class_95;field_1012:F
named probability
Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;probability:F
-
-
Constructor Details
-
BinomialWithBonusCount
public BinomialWithBonusCount(int extra, float probability) - Mappings:
Namespace Name Mixin selector official <init>
Ldsf$a;<init>(IF)V
intermediary <init>
Lnet/minecraft/class_94$class_95;<init>(IF)V
named <init>
Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;<init>(IF)V
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceApplyBonusLootFunction.Formula
- Mappings:
Namespace Name Mixin selector official a
Ldsf$b;a(Lalu;II)I
intermediary method_467
Lnet/minecraft/class_94$class_96;method_467(Lnet/minecraft/class_5819;II)I
named getValue
Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;getValue(Lnet/minecraft/util/math/random/Random;II)I
-
toJson
- Specified by:
toJson
in interfaceApplyBonusLootFunction.Formula
- Mappings:
Namespace Name Mixin selector official a
Ldsf$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
Ldsf$a;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ldsf$b;
intermediary method_464
Lnet/minecraft/class_94$class_95;method_464(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_94$class_96;
named fromJson
Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;
-
getId
- Specified by:
getId
in interfaceApplyBonusLootFunction.Formula
- Mappings:
Namespace Name Mixin selector official a
Ldsf$b;a()Laaj;
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;
-