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 eknintermediary net/minecraft/class_40named net/minecraft/loot/provider/number/BinomialLootNumberProviderofficial bintermediary comp_1893named nofficial cintermediary comp_1894named p
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BinomialLootNumberProvider>private final LootNumberProviderThe field for thenrecord component.private final LootNumberProviderThe field for theprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBinomialLootNumberProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinomialLootNumberProvidercreate(int n, float p) final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.n()Returns the value of thenrecord component.floatnextFloat(LootContext context) intnextInt(LootContext context) p()Returns the value of theprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAware
validate
-
Field Details
-
n
The field for thenrecord component. -
p
The field for theprecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLekn;a:Lcom/mojang/serialization/Codec;intermediary field_45885Lnet/minecraft/class_40;field_45885:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/provider/number/BinomialLootNumberProvider;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector official bLekq;b()Lekp;intermediary method_365Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;named getTypeLnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;
-
nextInt
- Specified by:
nextIntin interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector official aLekq;a(Legw;)Iintermediary method_366Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)Inamed nextIntLnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)I
-
nextFloat
- Specified by:
nextFloatin interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector official bLekq;b(Legw;)Fintermediary method_32454Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)Fnamed nextFloatLnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)F
-
create
- Mappings:
Namespace Name Mixin selector official aLekn;a(IF)Lekn;intermediary method_273Lnet/minecraft/class_40;method_273(IF)Lnet/minecraft/class_40;named createLnet/minecraft/loot/provider/number/BinomialLootNumberProvider;create(IF)Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware- Mappings:
Namespace Name Mixin selector official aLegx;a()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;named getRequiredParametersLnet/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 thenrecord component.- Returns:
- the value of the
nrecord component
-
p
Returns the value of theprecord component.- Returns:
- the value of the
precord component
-