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 named net/minecraft/loot/provider/number/BinomialLootNumberProviderintermediary net/minecraft/class_40official evunamed nintermediary comp_1893official bnamed pintermediary comp_1894official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<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 named CODECLnet/minecraft/loot/provider/number/BinomialLootNumberProvider;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_45885Lnet/minecraft/class_40;field_45885:Lcom/mojang/serialization/MapCodec;official aLevu;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;intermediary method_365Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;official bLevy;b()Levx;
-
nextInt
- Specified by:
nextIntin interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector named nextIntLnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)Iintermediary method_366Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)Iofficial aLevy;a(Lerr;)I
-
nextFloat
- Specified by:
nextFloatin interfaceLootNumberProvider- Mappings:
Namespace Name Mixin selector named nextFloatLnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)Fintermediary method_32454Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)Fofficial bLevy;b(Lerr;)F
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/loot/provider/number/BinomialLootNumberProvider;create(IF)Lnet/minecraft/loot/provider/number/BinomialLootNumberProvider;intermediary method_273Lnet/minecraft/class_40;method_273(IF)Lnet/minecraft/class_40;official aLevu;a(IF)Levu;
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware- Mappings:
Namespace Name Mixin selector named getRequiredParametersLnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;official aLers;a()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
-