Package net.minecraft
Record Class class_12271.class_12272
java.lang.Object
java.lang.Record
net.minecraft.class_12271.class_12272
- Record Components:
slots-filter-
- All Implemented Interfaces:
class_12271
- Enclosing interface:
class_12271
public static record class_12271.class_12272(class_12271 slots, Predicate<ItemStack> filter)
extends Record
implements class_12271
- Mappings:
Namespace Name named net/minecraft/class_12271$class_12272intermediary net/minecraft/class_12271$class_12272official dtq$anamed slotsintermediary comp_5163official bnamed filterintermediary comp_5164official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_12271
class_12271.class_12272, class_12271.class_12273, class_12271.class_12274 -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thefilterrecord component.private final class_12271The field for theslotsrecord component.Fields inherited from interface net.minecraft.class_12271
field_64161 -
Constructor Summary
ConstructorsConstructorDescriptionclass_12272(class_12271 slots, Predicate<ItemStack> filter) Creates an instance of aclass_12272record 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.method_76129(Predicate<ItemStack> predicate) 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.class_12271
method_76123, method_76128
-
Field Details
-
Constructor Details
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceclass_12271
-
method_76129
- Specified by:
method_76129in interfaceclass_12271- Mappings:
Namespace Name Mixin selector named method_76129Lnet/minecraft/class_12271;method_76129(Ljava/util/function/Predicate;)Lnet/minecraft/class_12271;intermediary method_76129Lnet/minecraft/class_12271;method_76129(Ljava/util/function/Predicate;)Lnet/minecraft/class_12271;official aLdtq;a(Ljava/util/function/Predicate;)Ldtq;
-
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
-