Package net.minecraft.loot.function
Record Class ApplyBonusLootFunction.BinomialWithBonusCount
java.lang.Object
java.lang.Record
net.minecraft.loot.function.ApplyBonusLootFunction.BinomialWithBonusCount
- Record Components:
- extra-
- probability-
- All Implemented Interfaces:
- ApplyBonusLootFunction.Formula
- Enclosing class:
- ApplyBonusLootFunction
private static record ApplyBonusLootFunction.BinomialWithBonusCount(int extra, float probability)
extends Record
implements ApplyBonusLootFunction.Formula
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount- intermediary - net/minecraft/class_94$class_95- official - ewp$a- named - extra- intermediary - comp_1848- official - b- named - probability- intermediary - comp_1849- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<ApplyBonusLootFunction.BinomialWithBonusCount> private final intThe field for theextrarecord component.private final floatThe field for theprobabilityrecord component.static final ApplyBonusLootFunction.Type
- 
Constructor SummaryConstructorsConstructorDescriptionBinomialWithBonusCount(int extra, float probability) Creates an instance of aBinomialWithBonusCountrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intextra()Returns the value of theextrarecord component.getType()intfinal inthashCode()Returns a hash code value for this object.floatReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
extraprivate final int extraThe field for theextrarecord component.
- 
probabilityprivate final float probabilityThe field for theprobabilityrecord component.
- 
CODECprivate static final com.mojang.serialization.Codec<ApplyBonusLootFunction.BinomialWithBonusCount> CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45811- Lnet/minecraft/class_94$class_95;field_45811:Lcom/mojang/serialization/Codec;- official - d- Lewp$a;d:Lcom/mojang/serialization/Codec;
 
- 
TYPE- Mappings:
- Namespace - Name - Mixin selector - named - TYPE- Lnet/minecraft/loot/function/ApplyBonusLootFunction$BinomialWithBonusCount;TYPE:Lnet/minecraft/loot/function/ApplyBonusLootFunction$Type;- intermediary - field_1013- Lnet/minecraft/class_94$class_95;field_1013:Lnet/minecraft/class_94$class_8752;- official - a- Lewp$a;a:Lewp$c;
 
 
- 
- 
Constructor Details- 
BinomialWithBonusCountBinomialWithBonusCount(int extra, float probability) Creates an instance of aBinomialWithBonusCountrecord class.- Parameters:
- extra- the value for the- extrarecord component
- probability- the value for the- probabilityrecord component
 
 
- 
- 
Method Details- 
getValue- Specified by:
- getValuein interface- ApplyBonusLootFunction.Formula
- Mappings:
- Namespace - Name - Mixin selector - named - getValue- Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;getValue(Lnet/minecraft/util/math/random/Random;II)I- intermediary - method_467- Lnet/minecraft/class_94$class_96;method_467(Lnet/minecraft/class_5819;II)I- official - a- Lewp$b;a(Lazh;II)I
 
- 
getType- Specified by:
- getTypein interface- ApplyBonusLootFunction.Formula
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/function/ApplyBonusLootFunction$Formula;getType()Lnet/minecraft/loot/function/ApplyBonusLootFunction$Type;- intermediary - method_466- Lnet/minecraft/class_94$class_96;method_466()Lnet/minecraft/class_94$class_8752;- official - a- Lewp$b;a()Lewp$c;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
- 
extrapublic int extra()Returns the value of theextrarecord component.- Returns:
- the value of the extrarecord component
 
- 
probabilitypublic float probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the probabilityrecord component
 
 
-