Package net.minecraft.loot.provider.nbt
Record Class StorageLootNbtProvider
java.lang.Object
java.lang.Record
net.minecraft.loot.provider.nbt.StorageLootNbtProvider
- Record Components:
- source-
- All Implemented Interfaces:
- LootNbtProvider
- Mappings:
- Namespace - Name - named - net/minecraft/loot/provider/nbt/StorageLootNbtProvider- intermediary - net/minecraft/class_5653- official - ezr- named - source- intermediary - comp_1892- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StorageLootNbtProvider> private final IdentifierThe field for thesourcerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStorageLootNbtProvider(Identifier source) Creates an instance of aStorageLootNbtProviderrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getNbt(LootContext context) Set<ContextParameter<?>> getType()final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
sourceThe field for thesourcerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/provider/nbt/StorageLootNbtProvider;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45884- Lnet/minecraft/class_5653;field_45884:Lcom/mojang/serialization/MapCodec;- official - a- Lezr;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
StorageLootNbtProviderCreates an instance of aStorageLootNbtProviderrecord class.- Parameters:
- source- the value for the- sourcerecord component
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- LootNbtProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getType()Lnet/minecraft/loot/provider/nbt/LootNbtProviderType;- intermediary - method_32439- Lnet/minecraft/class_5651;method_32439()Lnet/minecraft/class_5650;- official - a- Lezp;a()Lezo;
 
- 
getNbt- Specified by:
- getNbtin interface- LootNbtProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getNbt- Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getNbt(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/nbt/NbtElement;- intermediary - method_32440- Lnet/minecraft/class_5651;method_32440(Lnet/minecraft/class_47;)Lnet/minecraft/class_2520;- official - a- Lezp;a(Levs;)Lun;
 
- 
getRequiredParameters- Specified by:
- getRequiredParametersin interface- LootNbtProvider
- Mappings:
- Namespace - Name - Mixin selector - named - getRequiredParameters- Lnet/minecraft/loot/provider/nbt/LootNbtProvider;getRequiredParameters()Ljava/util/Set;- intermediary - method_32441- Lnet/minecraft/class_5651;method_32441()Ljava/util/Set;- official - b- Lezp;b()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).
- 
sourceReturns the value of thesourcerecord component.- Returns:
- the value of the sourcerecord component
 
 
-