Package net.minecraft.data.loot.packs
Record Class VanillaEquipmentLoot
java.lang.Object
java.lang.Record
net.minecraft.data.loot.packs.VanillaEquipmentLoot
- All Implemented Interfaces:
LootTableSubProvider
public record VanillaEquipmentLoot(HolderLookup.Provider registries)
extends Record
implements LootTableSubProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final HolderLookup.Provider
The field for theregistries
record component. -
Constructor Summary
ConstructorDescriptionVanillaEquipmentLoot
(HolderLookup.Provider registries) Creates an instance of aVanillaEquipmentLoot
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.void
generate
(BiConsumer<ResourceKey<LootTable>, LootTable.Builder> p_334928_) final int
hashCode()
Returns a hash code value for this object.Returns the value of theregistries
record component.final String
toString()
Returns a string representation of this record class.static LootTable.Builder
trialChamberEquipment
(Item p_342256_, Item p_345109_, ArmorTrim p_343468_, HolderLookup.RegistryLookup<Enchantment> p_343180_)
-
Field Details
-
registries
The field for theregistries
record component.
-
-
Constructor Details
-
VanillaEquipmentLoot
Creates an instance of aVanillaEquipmentLoot
record class.- Parameters:
registries
- the value for theregistries
record component
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceLootTableSubProvider
-
trialChamberEquipment
public static LootTable.Builder trialChamberEquipment(Item p_342256_, Item p_345109_, ArmorTrim p_343468_, HolderLookup.RegistryLookup<Enchantment> p_343180_) -
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)
. -
registries
Returns the value of theregistries
record component.- Returns:
- the value of the
registries
record component
-