Package net.minecraft
Record Class class_9306
java.lang.Object
java.lang.Record
net.minecraft.class_9306
- Record Components:
item
-count
-components
-itemStack
-
public record class_9306(RegistryEntry<Item> item, int count, ComponentPredicate components, ItemStack itemStack)
extends Record
- Mappings:
Namespace Name official cxt
intermediary net/minecraft/class_9306
named net/minecraft/class_9306
official d
intermediary comp_2424
named item
official e
intermediary comp_2425
named count
official f
intermediary comp_2426
named components
official g
intermediary comp_2427
named itemStack
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentPredicate
The field for thecomponents
record component.private final int
The field for thecount
record component.static final com.mojang.serialization.Codec
<class_9306> static final PacketCodec
<RegistryByteBuf, class_9306> static final PacketCodec
<RegistryByteBuf, Optional<class_9306>> private final RegistryEntry
<Item> The field for theitem
record component.private final ItemStack
The field for theitemStack
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9306
(ItemConvertible itemConvertible) class_9306
(ItemConvertible itemConvertible, int int2) class_9306
(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate) class_9306
(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate, ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponents
record component.int
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.item()
Returns the value of theitem
record component.Returns the value of theitemStack
record component.boolean
method_57552
(ItemStack itemStack) private static ItemStack
method_57553
(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate) method_57554
(UnaryOperator<ComponentPredicate.Builder> unaryOperator) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
item
The field for theitem
record component. -
count
private final int countThe field for thecount
record component. -
components
The field for thecomponents
record component. -
itemStack
The field for theitemStack
record component. -
field_49393
- Mappings:
Namespace Name Mixin selector official a
Lcxt;a:Lcom/mojang/serialization/Codec;
intermediary field_49393
Lnet/minecraft/class_9306;field_49393:Lcom/mojang/serialization/Codec;
named field_49393
Lnet/minecraft/class_9306;field_49393:Lcom/mojang/serialization/Codec;
-
field_49394
- Mappings:
Namespace Name Mixin selector official b
Lcxt;b:Lye;
intermediary field_49394
Lnet/minecraft/class_9306;field_49394:Lnet/minecraft/class_9139;
named field_49394
Lnet/minecraft/class_9306;field_49394:Lnet/minecraft/network/codec/PacketCodec;
-
field_49395
- Mappings:
Namespace Name Mixin selector official c
Lcxt;c:Lye;
intermediary field_49395
Lnet/minecraft/class_9306;field_49395:Lnet/minecraft/class_9139;
named field_49395
Lnet/minecraft/class_9306;field_49395:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
class_9306
-
class_9306
-
class_9306
public class_9306(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate) -
class_9306
public class_9306(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate, ItemStack itemStack)
-
-
Method Details
-
method_57554
- Mappings:
Namespace Name Mixin selector official a
Lcxt;a(Ljava/util/function/UnaryOperator;)Lcxt;
intermediary method_57554
Lnet/minecraft/class_9306;method_57554(Ljava/util/function/UnaryOperator;)Lnet/minecraft/class_9306;
named method_57554
Lnet/minecraft/class_9306;method_57554(Ljava/util/function/UnaryOperator;)Lnet/minecraft/class_9306;
-
method_57553
private static ItemStack method_57553(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate) - Mappings:
Namespace Name Mixin selector official a
Lcxt;a(Lil;ILjn;)Lcrj;
intermediary method_57553
Lnet/minecraft/class_9306;method_57553(Lnet/minecraft/class_6880;ILnet/minecraft/class_9329;)Lnet/minecraft/class_1799;
named method_57553
Lnet/minecraft/class_9306;method_57553(Lnet/minecraft/registry/entry/RegistryEntry;ILnet/minecraft/predicate/ComponentPredicate;)Lnet/minecraft/item/ItemStack;
-
method_57552
- Mappings:
Namespace Name Mixin selector official a
Lcxt;a(Lcrj;)Z
intermediary method_57552
Lnet/minecraft/class_9306;method_57552(Lnet/minecraft/class_1799;)Z
named method_57552
Lnet/minecraft/class_9306;method_57552(Lnet/minecraft/item/ItemStack;)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 theitem
record component.- Returns:
- the value of the
item
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
components
Returns the value of thecomponents
record component.- Returns:
- the value of the
components
record component
-
itemStack
Returns the value of theitemStack
record component.- Returns:
- the value of the
itemStack
record component
-