Package net.minecraft
Record Class class_10591
java.lang.Object
java.lang.Record
net.minecraft.class_10591
- Record Components:
item-count-components-
public record class_10591(RegistryEntry<Item> item, int count, ComponentChanges components)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10591intermediary net/minecraft/class_10591official dcynamed itemintermediary comp_3483official cnamed countintermediary comp_3484official dnamed componentsintermediary comp_3485official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentChangesThe field for thecomponentsrecord component.private final intThe field for thecountrecord component.static final com.mojang.serialization.Codec<class_10591> static final PacketCodec<RegistryByteBuf, class_10591> private static final com.mojang.serialization.Codec<class_10591> private final RegistryEntry<Item> The field for theitemrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10591(Item item) class_10591(RegistryEntry<Item> registryEntry, int int2, ComponentChanges componentChanges) -
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.method_66340(ItemStack itemStack) private static com.mojang.serialization.DataResult<class_10591> method_66341(class_10591 class_10591) 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_55716
- Mappings:
Namespace Name Mixin selector named field_55716Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;intermediary field_55716Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;official fLdcy;f:Lcom/mojang/serialization/Codec;
-
field_55714
- Mappings:
Namespace Name Mixin selector named field_55714Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;intermediary field_55714Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;official aLdcy;a:Lcom/mojang/serialization/Codec;
-
field_55715
- Mappings:
Namespace Name Mixin selector named field_55715Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55715Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/class_9139;official bLdcy;b:Lyn;
-
-
Constructor Details
-
class_10591
-
class_10591
-
-
Method Details
-
method_66341
private static com.mojang.serialization.DataResult<class_10591> method_66341(class_10591 class_10591) - Mappings:
Namespace Name Mixin selector named method_66341Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;intermediary method_66341Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;official aLdcy;a(Ldcy;)Lcom/mojang/serialization/DataResult;
-
method_66340
- Mappings:
Namespace Name Mixin selector named method_66340Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_66340Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official aLdcy;a(Lcxh;)Lcxh;
-
method_66338
- Mappings:
Namespace Name Mixin selector named method_66338Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/recipe/display/SlotDisplay;intermediary method_66338Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/class_10302;official aLdcy;a()Lddh;
-
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
-