Record Class VanillaEquipmentLoot
java.lang.Object
java.lang.Record
net.minecraft.data.loot.packs.VanillaEquipmentLoot
- All Implemented Interfaces:
LootTableSubProvider, LootTableSubProviderExtension
public record VanillaEquipmentLoot(HolderLookup.Provider registries)
extends Record
implements LootTableSubProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HolderLookup.ProviderThe field for theregistriesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVanillaEquipmentLoot(HolderLookup.Provider registries) Creates an instance of aVanillaEquipmentLootrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidgenerate(BiConsumer<ResourceKey<LootTable>, LootTable.Builder> output) final inthashCode()Returns a hash code value for this object.Returns the value of theregistriesrecord component.final StringtoString()Returns a string representation of this record class.static LootTable.BuildertrialChamberEquipment(Item helmet, Item chestplate, ArmorTrim trim, HolderLookup.RegistryLookup<Enchantment> enchantments) Methods inherited from interface LootTableSubProviderExtension
withConditions
-
Field Details
-
registries
The field for theregistriesrecord component.
-
-
Constructor Details
-
VanillaEquipmentLoot
Creates an instance of aVanillaEquipmentLootrecord class.- Parameters:
registries- the value for theregistriesrecord component
-
-
Method Details
-
generate
- Specified by:
generatein interfaceLootTableSubProvider
-
trialChamberEquipment
public static LootTable.Builder trialChamberEquipment(Item helmet, Item chestplate, ArmorTrim trim, HolderLookup.RegistryLookup<Enchantment> enchantments) -
toString
-
hashCode
-
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). -
registries
Returns the value of theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-