Record Class LootInjections.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.LootInjections.Definition
- Enclosing class:
LootInjections
public static record LootInjections.Definition(net.minecraft.resources.Identifier target, List<net.minecraft.world.level.storage.loot.LootPool> pools, List<LootInjections.Modifier> modifiers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootInjections.Definition> -
Constructor Summary
ConstructorsConstructorDescriptionDefinition(net.minecraft.resources.Identifier target, List<net.minecraft.world.level.storage.loot.LootPool> pools, List<LootInjections.Modifier> modifiers) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodifiersrecord component.List<net.minecraft.world.level.storage.loot.LootPool> pools()Returns the value of thepoolsrecord component.net.minecraft.resources.Identifiertarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Definition
public Definition(net.minecraft.resources.Identifier target, List<net.minecraft.world.level.storage.loot.LootPool> pools, List<LootInjections.Modifier> modifiers) Creates an instance of aDefinitionrecord class.- Parameters:
target- the value for thetargetrecord componentpools- the value for thepoolsrecord componentmodifiers- the value for themodifiersrecord component
-
-
Method Details
-
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). -
target
public net.minecraft.resources.Identifier target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
pools
Returns the value of thepoolsrecord component.- Returns:
- the value of the
poolsrecord component
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-