Package net.minecraft
Record Class class_10938.class_10939
java.lang.Object
java.lang.Record
net.minecraft.class_10938.class_10939
- Record Components:
item-count-components-
- All Implemented Interfaces:
class_10938
- Enclosing interface:
class_10938
public static record class_10938.class_10939(RegistryEntry<Item> item, int count, class_10936 components)
extends Record
implements class_10938
- Mappings:
Namespace Name named net/minecraft/class_10938$class_10939intermediary net/minecraft/class_10938$class_10939official wb$anamed itemintermediary comp_3876official dnamed countintermediary comp_3877official enamed componentsintermediary comp_3878official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_10938
class_10938.class_10939 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_10936The field for thecomponentsrecord component.private final intThe field for thecountrecord component.static final PacketCodec<RegistryByteBuf, class_10938.class_10939> private final RegistryEntry<Item> The field for theitemrecord component.Fields inherited from interface net.minecraft.class_10938
field_58176, field_58177 -
Constructor Summary
ConstructorsConstructorDescriptionclass_10939(RegistryEntry<Item> registryEntry, int int2, class_10936 class_10936) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.booleanmethod_68850(ItemStack itemStack, class_10936.class_10937 class_10937) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
item
The field for theitemrecord component. -
count
private final int countThe field for thecountrecord component. -
components
The field for thecomponentsrecord component. -
field_58178
- Mappings:
Namespace Name Mixin selector named field_58178Lnet/minecraft/class_10938$class_10939;field_58178:Lnet/minecraft/network/codec/PacketCodec;intermediary field_58178Lnet/minecraft/class_10938$class_10939;field_58178:Lnet/minecraft/class_9139;official cLwb$a;c:Lze;
-
-
Constructor Details
-
class_10939
-
-
Method Details
-
method_68850
- Specified by:
method_68850in interfaceclass_10938- Mappings:
Namespace Name Mixin selector named method_68850Lnet/minecraft/class_10938;method_68850(Lnet/minecraft/item/ItemStack;Lnet/minecraft/class_10936$class_10937;)Zintermediary method_68850Lnet/minecraft/class_10938;method_68850(Lnet/minecraft/class_1799;Lnet/minecraft/class_10936$class_10937;)Zofficial aLwb;a(Ldak;Lwa$a;)Z
-
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 '=='. -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-