Package net.minecraft
Record Class class_9359
java.lang.Object
java.lang.Record
net.minecraft.class_9359
- Record Components:
potions
-
- All Implemented Interfaces:
class_9360
,class_9365<PotionContentsComponent>
public record class_9359(RegistryEntryList<Potion> potions)
extends Record
implements class_9365<PotionContentsComponent>
- Mappings:
Namespace Name official cf
intermediary net/minecraft/class_9359
named net/minecraft/class_9359
official c
intermediary comp_2461
named potions
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_9360
class_9360.Type<T extends class_9360>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<class_9359> private final RegistryEntryList
<Potion> The field for thepotions
record component.Fields inherited from interface net.minecraft.class_9360
field_49805
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
method_58167
(ItemStack itemStack, PotionContentsComponent potionContentsComponent) static class_9360
method_58178
(RegistryEntryList<Potion> registryEntryList) potions()
Returns the value of thepotions
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.class_9365
method_58161
-
Field Details
-
potions
The field for thepotions
record component. -
field_49802
- Mappings:
Namespace Name Mixin selector official a
Lcf;a:Lcom/mojang/serialization/Codec;
intermediary field_49802
Lnet/minecraft/class_9359;field_49802:Lcom/mojang/serialization/Codec;
named field_49802
Lnet/minecraft/class_9359;field_49802:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9359
-
-
Method Details
-
method_58163
- Specified by:
method_58163
in interfaceclass_9365<PotionContentsComponent>
- Mappings:
Namespace Name Mixin selector official a
Lde;a()Ljy;
intermediary method_58163
Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;
named method_58163
Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/component/DataComponentType;
-
method_58167
- Specified by:
method_58167
in interfaceclass_9365<PotionContentsComponent>
- Mappings:
Namespace Name Mixin selector official a
Lcf;a(Lcsd;Lcuc;)Z
intermediary method_58177
Lnet/minecraft/class_9359;method_58177(Lnet/minecraft/class_1799;Lnet/minecraft/class_1844;)Z
named method_58167
Lnet/minecraft/class_9359;method_58167(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/PotionContentsComponent;)Z
-
method_58178
- Mappings:
Namespace Name Mixin selector official a
Lcf;a(Liz;)Lch;
intermediary method_58178
Lnet/minecraft/class_9359;method_58178(Lnet/minecraft/class_6885;)Lnet/minecraft/class_9360;
named method_58178
Lnet/minecraft/class_9359;method_58178(Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/class_9360;
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
potions
Returns the value of thepotions
record component.- Returns:
- the value of the
potions
record component
-