Package net.minecraft.inventory
Record Class ItemSource.Limit
java.lang.Object
java.lang.Record
net.minecraft.inventory.ItemSource.Limit
- Record Components:
slots-limit-
- All Implemented Interfaces:
ItemSource
- Enclosing interface:
ItemSource
public static record ItemSource.Limit(ItemSource slots, int limit)
extends Record
implements ItemSource
- Mappings:
Namespace Name named net/minecraft/inventory/ItemSource$Limitintermediary net/minecraft/class_12271$class_12274official dtq$cnamed slotsintermediary comp_5167official bnamed limitintermediary comp_5168official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.ItemSource
ItemSource.Filter, ItemSource.Limit, ItemSource.Map -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thelimitrecord component.private final ItemSourceThe field for theslotsrecord component.Fields inherited from interface net.minecraft.inventory.ItemSource
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionLimit(ItemSource slots, int limit) Creates an instance of aLimitrecord 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.intlimit()Returns the value of thelimitrecord component.limit(int count) 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.inventory.ItemSource
filter, filter
-
Field Details
-
Constructor Details
-
Method Details
-
itemCopies
- Specified by:
itemCopiesin interfaceItemSource
-
limit
- Specified by:
limitin interfaceItemSource- Mappings:
Namespace Name Mixin selector named limitLnet/minecraft/inventory/ItemSource;limit(I)Lnet/minecraft/inventory/ItemSource;intermediary method_76123Lnet/minecraft/class_12271;method_76123(I)Lnet/minecraft/class_12271;official aLdtq;a(I)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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-