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(List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> targets, 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(List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> targets, 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.List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Definition
public Definition(List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> targets, List<net.minecraft.world.level.storage.loot.LootPool> pools, List<LootInjections.Modifier> modifiers) Creates an instance of aDefinitionrecord class.- Parameters:
targets- the value for thetargetsrecord 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). -
targets
public List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> targets()Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord 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
-