Record Class BinomialLootNumberProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.number.BinomialLootNumberProvider
- Record Components:
n
-p
-
- All Implemented Interfaces:
LootContextAware
,LootNumberProvider
public record BinomialLootNumberProvider(LootNumberProvider n, LootNumberProvider p)
extends Record
implements LootNumberProvider
- Mappings:
Namespace Name official egh
intermediary net/minecraft/class_40
named net/minecraft/loot/provider/number/BinomialLootNumberProvider
official b
intermediary comp_1893
named n
official c
intermediary comp_1894
named p
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BinomialLootNumberProvider>
private final LootNumberProvider
The field for then
record component.private final LootNumberProvider
The field for thep
record component. -
Constructor Summary
ConstructorDescriptionCreates an instance of aBinomialLootNumberProvider
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinomialLootNumberProvider
create
(int n, float p) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.n()
Returns the value of then
record component.float
nextFloat
(LootContext context) int
nextInt
(LootContext context) p()
Returns the value of thep
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.loot.context.LootContextAware
validate
-
Field Details
-
n
The field for then
record component. -
p
The field for thep
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Legh;a:Lcom/mojang/serialization/Codec;
intermediary field_45885
Lnet/minecraft/class_40;field_45885:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official b
Legk;b()Legj;
intermediary method_365
Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;
named getType
Lnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;
-
nextInt
- Specified by:
nextInt
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official a
Legk;a(Lecq;)I
intermediary method_366
Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)I
named nextInt
Lnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)I
-
nextFloat
- Specified by:
nextFloat
in interfaceLootNumberProvider
- Mappings:
Namespace Name Mixin selector official b
Legk;b(Lecq;)F
intermediary method_32454
Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)F
named nextFloat
Lnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)F
-
create
- Mappings:
Namespace Name Mixin selector official a
Legh;a(IF)Legh;
intermediary method_273
Lnet/minecraft/class_40;method_273(IF)Lnet/minecraft/class_40;
named create
Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;create(IF)Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;
-
getRequiredParameters
- Specified by:
getRequiredParameters
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official a
Lecr;a()Ljava/util/Set;
intermediary method_293
Lnet/minecraft/class_46;method_293()Ljava/util/Set;
named getRequiredParameters
Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 withObjects::equals(Object,Object)
. -
n
Returns the value of then
record component.- Returns:
- the value of the
n
record component
-
p
Returns the value of thep
record component.- Returns:
- the value of the
p
record component
-