Record Class UniformLootNumberProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.number.UniformLootNumberProvider
- Record Components:
- min-
- max-
- All Implemented Interfaces:
- LootContextAware,- LootNumberProvider
public record UniformLootNumberProvider(LootNumberProvider min, LootNumberProvider max)
extends Record
implements LootNumberProvider
- Mappings:
- Namespace - Name - named - net/minecraft/loot/provider/number/UniformLootNumberProvider- intermediary - net/minecraft/class_5662- official - fab- named - min- intermediary - comp_1900- official - b- named - max- intermediary - comp_1901- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<UniformLootNumberProvider> private final LootNumberProviderThe field for themaxrecord component.private final LootNumberProviderThe field for theminrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aUniformLootNumberProviderrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic UniformLootNumberProvidercreate(float min, float max) final booleanIndicates whether some other object is "equal to" this one.Set<ContextParameter<?>> getType()final inthashCode()Returns a hash code value for this object.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.floatnextFloat(LootContext context) intnextInt(LootContext context) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.context.LootContextAwarevalidate
- 
Field Details- 
minThe field for theminrecord component.
- 
maxThe field for themaxrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45891- Lnet/minecraft/class_5662;field_45891:Lcom/mojang/serialization/MapCodec;- official - a- Lfab;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details
- 
Method Details- 
getType- Specified by:
- getTypein interface- LootNumberProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/provider/number/LootNumberProvider;getType()Lnet/minecraft/loot/provider/number/LootNumberProviderType;- intermediary - method_365- Lnet/minecraft/class_5658;method_365()Lnet/minecraft/class_5657;- official - b- Lezx;b()Lezw;
 
- 
create- Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;create(FF)Lnet/minecraft/loot/provider/number/UniformLootNumberProvider;- intermediary - method_32462- Lnet/minecraft/class_5662;method_32462(FF)Lnet/minecraft/class_5662;- official - a- Lfab;a(FF)Lfab;
 
- 
nextInt- Specified by:
- nextIntin interface- LootNumberProvider
- Mappings:
- Namespace - Name - Mixin selector - named - nextInt- Lnet/minecraft/loot/provider/number/LootNumberProvider;nextInt(Lnet/minecraft/loot/context/LootContext;)I- intermediary - method_366- Lnet/minecraft/class_5658;method_366(Lnet/minecraft/class_47;)I- official - a- Lezx;a(Levs;)I
 
- 
nextFloat- Specified by:
- nextFloatin interface- LootNumberProvider
- Mappings:
- Namespace - Name - Mixin selector - named - nextFloat- Lnet/minecraft/loot/provider/number/LootNumberProvider;nextFloat(Lnet/minecraft/loot/context/LootContext;)F- intermediary - method_32454- Lnet/minecraft/class_5658;method_32454(Lnet/minecraft/class_47;)F- official - b- Lezx;b(Levs;)F
 
- 
getAllowedParameters- Specified by:
- getAllowedParametersin interface- LootContextAware
- Mappings:
- Namespace - Name - Mixin selector - named - getAllowedParameters- Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;- intermediary - method_293- Lnet/minecraft/class_46;method_293()Ljava/util/Set;- official - a- Levt;a()Ljava/util/Set;
 
- 
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 withObjects::equals(Object,Object).
- 
minReturns the value of theminrecord component.- Returns:
- the value of the minrecord component
 
- 
maxReturns the value of themaxrecord component.- Returns:
- the value of the maxrecord component
 
 
-