Record Class StorageLootNumberProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.number.StorageLootNumberProvider
- Record Components:
- storage-
- path-
- All Implemented Interfaces:
- LootContextAware,- LootNumberProvider
public record StorageLootNumberProvider(Identifier storage, NbtPathArgumentType.NbtPath path)
extends Record
implements LootNumberProvider
- Mappings:
- Namespace - Name - named - net/minecraft/loot/provider/number/StorageLootNumberProvider- intermediary - net/minecraft/class_9432- official - faa- named - storage- intermediary - comp_2525- official - b- named - path- intermediary - comp_2526- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StorageLootNumberProvider> private final NbtPathArgumentType.NbtPathThe field for thepathrecord component.private final IdentifierThe field for thestoragerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStorageLootNumberProvider(Identifier identifier, NbtPathArgumentType.NbtPath nbtPath) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private Optional<AbstractNbtNumber> getNumber(LootContext context) getType()final inthashCode()Returns a hash code value for this object.floatnextFloat(LootContext context) intnextInt(LootContext context) path()Returns the value of thepathrecord component.storage()Returns the value of thestoragerecord component.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.LootContextAwaregetAllowedParameters, validate
- 
Field Details- 
storageThe field for thestoragerecord component.
- 
pathThe field for thepathrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/provider/number/StorageLootNumberProvider;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_50033- Lnet/minecraft/class_9432;field_50033:Lcom/mojang/serialization/MapCodec;- official - a- Lfaa;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
StorageLootNumberProvider
 
- 
- 
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;
 
- 
getNumber- Mappings:
- Namespace - Name - Mixin selector - named - getNumber- Lnet/minecraft/loot/provider/number/StorageLootNumberProvider;getNumber(Lnet/minecraft/loot/context/LootContext;)Ljava/util/Optional;- intermediary - method_58471- Lnet/minecraft/class_9432;method_58471(Lnet/minecraft/class_47;)Ljava/util/Optional;- official - c- Lfaa;c(Levs;)Ljava/util/Optional;
 
- 
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
 
- 
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
 
- 
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).
- 
storageReturns the value of thestoragerecord component.- Returns:
- the value of the storagerecord component
 
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
 
-