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 cfintermediary net/minecraft/class_9359named net/minecraft/class_9359official cintermediary comp_2461named 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 thepotionsrecord component.Fields inherited from interface net.minecraft.class_9360
field_49805 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmethod_58167(ItemStack itemStack, PotionContentsComponent potionContentsComponent) static class_9360method_58178(RegistryEntryList<Potion> registryEntryList) potions()Returns the value of thepotionsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.class_9365
method_58161
-
Field Details
-
potions
The field for thepotionsrecord component. -
field_49802
- Mappings:
Namespace Name Mixin selector official aLcf;a:Lcom/mojang/serialization/Codec;intermediary field_49802Lnet/minecraft/class_9359;field_49802:Lcom/mojang/serialization/Codec;named field_49802Lnet/minecraft/class_9359;field_49802:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9359
-
-
Method Details
-
method_58163
- Specified by:
method_58163in interfaceclass_9365<PotionContentsComponent>- Mappings:
Namespace Name Mixin selector official aLde;a()Ljy;intermediary method_58163Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;named method_58163Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/component/DataComponentType;
-
method_58167
- Specified by:
method_58167in interfaceclass_9365<PotionContentsComponent>- Mappings:
Namespace Name Mixin selector official aLcf;a(Lcsd;Lcuc;)Zintermediary method_58177Lnet/minecraft/class_9359;method_58177(Lnet/minecraft/class_1799;Lnet/minecraft/class_1844;)Znamed method_58167Lnet/minecraft/class_9359;method_58167(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/PotionContentsComponent;)Z
-
method_58178
- Mappings:
Namespace Name Mixin selector official aLcf;a(Liz;)Lch;intermediary method_58178Lnet/minecraft/class_9359;method_58178(Lnet/minecraft/class_6885;)Lnet/minecraft/class_9360;named method_58178Lnet/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 thepotionsrecord component.- Returns:
- the value of the
potionsrecord component
-