Package net.minecraft.component.type
Record Class SuspiciousStewEffectsComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.SuspiciousStewEffectsComponent
- Record Components:
effects-
- All Implemented Interfaces:
class_10127,TooltipAppender
public record SuspiciousStewEffectsComponent(List<SuspiciousStewEffectsComponent.StewEffect> effects)
extends Record
implements class_10127, TooltipAppender
- Mappings:
Namespace Name named net/minecraft/component/type/SuspiciousStewEffectsComponentintermediary net/minecraft/class_9298official cyunamed effectsintermediary comp_2416official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SuspiciousStewEffectsComponent> static final SuspiciousStewEffectsComponentprivate final List<SuspiciousStewEffectsComponent.StewEffect> The field for theeffectsrecord component.static final intstatic final PacketCodec<RegistryByteBuf, SuspiciousStewEffectsComponent> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type) effects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidmethod_62831(World world, LivingEntity livingEntity, ItemStack itemStack, class_10124 class_10124) final StringtoString()Returns a string representation of this record class.with(SuspiciousStewEffectsComponent.StewEffect stewEffect)
-
Field Details
-
effects
The field for theeffectsrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/SuspiciousStewEffectsComponent;DEFAULT:Lnet/minecraft/component/type/SuspiciousStewEffectsComponent;intermediary field_49362Lnet/minecraft/class_9298;field_49362:Lnet/minecraft/class_9298;official aLcyu;a:Lcyu;
-
field_53798
public static final int field_53798- See Also:
- Mappings:
Namespace Name Mixin selector named field_53798Lnet/minecraft/component/type/SuspiciousStewEffectsComponent;field_53798:Iintermediary field_53798Lnet/minecraft/class_9298;field_53798:Iofficial bLcyu;b:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/SuspiciousStewEffectsComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49363Lnet/minecraft/class_9298;field_49363:Lcom/mojang/serialization/Codec;official cLcyu;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/SuspiciousStewEffectsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49364Lnet/minecraft/class_9298;field_49364:Lnet/minecraft/class_9139;official dLcyu;d:Lzb;
-
-
Constructor Details
-
SuspiciousStewEffectsComponent
-
-
Method Details
-
with
- Mappings:
Namespace Name Mixin selector named withLnet/minecraft/component/type/SuspiciousStewEffectsComponent;with(Lnet/minecraft/component/type/SuspiciousStewEffectsComponent$StewEffect;)Lnet/minecraft/component/type/SuspiciousStewEffectsComponent;intermediary method_57514Lnet/minecraft/class_9298;method_57514(Lnet/minecraft/class_9298$class_8751;)Lnet/minecraft/class_9298;official aLcyu;a(Lcyu$a;)Lcyu;
-
method_62831
public void method_62831(World world, LivingEntity livingEntity, ItemStack itemStack, class_10124 class_10124) - Specified by:
method_62831in interfaceclass_10127- Mappings:
Namespace Name Mixin selector named method_62831Lnet/minecraft/class_10127;method_62831(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/class_10124;)Vintermediary method_62831Lnet/minecraft/class_10127;method_62831(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_10124;)Vofficial aLcyc;a(Ldeg;Lbuk;Lcvp;Lcyb;)V
-
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vofficial aLcyw;a(Lcvk$b;Ljava/util/function/Consumer;Lcxh;)V
-
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). -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-