Package net.minecraft.component.type
Record Class UseRemainderComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.UseRemainderComponent
- Record Components:
convertInto-
- Mappings:
Namespace Name named net/minecraft/component/type/UseRemainderComponentintermediary net/minecraft/class_10131official ddrnamed convertIntointermediary comp_3093official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UseRemainderComponent> private final ItemStackThe field for theconvertIntorecord component.static final PacketCodec<RegistryByteBuf, UseRemainderComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ItemStack stack, int oldCount, boolean inCreative, UseRemainderComponent.StackInserter inserter) Returns the value of theconvertIntorecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
convertInto
The field for theconvertIntorecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/UseRemainderComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_53801Lnet/minecraft/class_10131;field_53801:Lcom/mojang/serialization/Codec;official aLddr;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/UseRemainderComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53802Lnet/minecraft/class_10131;field_53802:Lnet/minecraft/class_9139;official bLddr;b:Lze;
-
-
Constructor Details
-
UseRemainderComponent
-
-
Method Details
-
convert
public ItemStack convert(ItemStack stack, int oldCount, boolean inCreative, UseRemainderComponent.StackInserter inserter) - Mappings:
Namespace Name Mixin selector named convertLnet/minecraft/component/type/UseRemainderComponent;convert(Lnet/minecraft/item/ItemStack;IZLnet/minecraft/component/type/UseRemainderComponent$StackInserter;)Lnet/minecraft/item/ItemStack;intermediary method_62863Lnet/minecraft/class_10131;method_62863(Lnet/minecraft/class_1799;IZLnet/minecraft/class_10131$class_10259;)Lnet/minecraft/class_1799;official aLddr;a(Ldak;IZLddr$a;)Ldak;
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
convertInto
Returns the value of theconvertIntorecord component.- Returns:
- the value of the
convertIntorecord component
-