Record Class CommonEvents.LootTables.FilteredEntry
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.core.CommonEvents.LootTables.FilteredEntry
- Enclosing class:
CommonEvents.LootTables
public static record CommonEvents.LootTables.FilteredEntry(Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> filter, CommonEvents.LootTables.Entry handler)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredEntry(Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> filter, CommonEvents.LootTables.Entry handler) Creates an instance of aFilteredEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> filter()Returns the value of thefilterrecord component.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilteredEntry
public FilteredEntry(Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> filter, CommonEvents.LootTables.Entry handler) Creates an instance of aFilteredEntryrecord class.- Parameters:
filter- the value for thefilterrecord componenthandler- the value for thehandlerrecord 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). -
filter
public Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>> filter()Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-