Package net.minecraft.loot.slot
Record Class ItemStream.Filter
java.lang.Object
java.lang.Record
net.minecraft.loot.slot.ItemStream.Filter
- Record Components:
slots-filter-
- All Implemented Interfaces:
ItemStream
- Enclosing interface:
ItemStream
public static record ItemStream.Filter(ItemStream slots, Predicate<ItemStack> filter)
extends Record
implements ItemStream
- Mappings:
Namespace Name named net/minecraft/loot/slot/ItemStream$Filterintermediary net/minecraft/class_12271$class_12272official dtw$anamed slotsintermediary comp_5163official bnamed filterintermediary comp_5164official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.slot.ItemStream
ItemStream.Filter, ItemStream.Limit, ItemStream.Map -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thefilterrecord component.private final ItemStreamThe field for theslotsrecord component.Fields inherited from interface net.minecraft.loot.slot.ItemStream
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionFilter(ItemStream slots, Predicate<ItemStack> filter) Creates an instance of aFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.slots()Returns the value of theslotsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.loot.slot.ItemStream
limit, map
-
Field Details
-
Constructor Details
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceItemStream
-
filter
- Specified by:
filterin interfaceItemStream- Mappings:
Namespace Name Mixin selector named filterLnet/minecraft/loot/slot/ItemStream;filter(Ljava/util/function/Predicate;)Lnet/minecraft/loot/slot/ItemStream;intermediary method_76129Lnet/minecraft/class_12271;method_76129(Ljava/util/function/Predicate;)Lnet/minecraft/class_12271;official aLdtw;a(Ljava/util/function/Predicate;)Ldtw;
-
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). -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-