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 official eklintermediary net/minecraft/class_5653named net/minecraft/loot/provider/nbt/StorageLootNbtProviderofficial bintermediary comp_1892named source
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StorageLootNbtProvider>private final IdentifierThe field for thesourcerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStorageLootNbtProvider(Identifier source) Creates an instance of aStorageLootNbtProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getNbt(LootContext context) 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
-
source
The field for thesourcerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLekl;a:Lcom/mojang/serialization/Codec;intermediary field_45884Lnet/minecraft/class_5653;field_45884:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/provider/nbt/StorageLootNbtProvider;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StorageLootNbtProvider
Creates an instance of aStorageLootNbtProviderrecord class.- Parameters:
source- the value for thesourcerecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootNbtProvider- Mappings:
Namespace Name Mixin selector official aLekj;a()Leki;intermediary method_32439Lnet/minecraft/class_5651;method_32439()Lnet/minecraft/class_5650;named getTypeLnet/minecraft/loot/provider/nbt/LootNbtProvider;getType()Lnet/minecraft/loot/provider/nbt/LootNbtProviderType;
-
getNbt
- Specified by:
getNbtin interfaceLootNbtProvider- Mappings:
Namespace Name Mixin selector official aLekj;a(Legw;)Ltk;intermediary method_32440Lnet/minecraft/class_5651;method_32440(Lnet/minecraft/class_47;)Lnet/minecraft/class_2520;named getNbtLnet/minecraft/loot/provider/nbt/LootNbtProvider;getNbt(Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/nbt/NbtElement;
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootNbtProvider- Mappings:
Namespace Name Mixin selector official bLekj;b()Ljava/util/Set;intermediary method_32441Lnet/minecraft/class_5651;method_32441()Ljava/util/Set;named getRequiredParametersLnet/minecraft/loot/provider/nbt/LootNbtProvider;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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-