Record Class WorldModifiersComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.WorldModifiersComponent
Record Components:
effects -
includeDescription -
All Implemented Interfaces:
TooltipAppender

public record WorldModifiersComponent(List<WorldEffect> effects, boolean includeDescription) extends Record implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/component/type/WorldModifiersComponent
intermediary net/minecraft/class_11056
official dgh
named effects
intermediary comp_3946
official d
named includeDescription
intermediary comp_3947
official e
  • Field Details

    • effects

      private final List<WorldEffect> effects
      The field for the effects record component.
    • includeDescription

      private final boolean includeDescription
      The field for the includeDescription record component.
    • CODEC

      public static final com.mojang.serialization.Codec<WorldModifiersComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/WorldModifiersComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_58857 Lnet/minecraft/class_11056;field_58857:Lcom/mojang/serialization/Codec;
      official a Ldgh;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,WorldModifiersComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/WorldModifiersComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_58858 Lnet/minecraft/class_11056;field_58858:Lnet/minecraft/class_9139;
      official b Ldgh;b:Lzg;
    • DEFAULT

      public static final WorldModifiersComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/WorldModifiersComponent;DEFAULT:Lnet/minecraft/component/type/WorldModifiersComponent;
      intermediary field_58859 Lnet/minecraft/class_11056;field_58859:Lnet/minecraft/class_11056;
      official c Ldgh;c:Ldgh;
    • field_58860

      private static final Text field_58860
      Mappings:
      Namespace Name Mixin selector
      named field_58860 Lnet/minecraft/component/type/WorldModifiersComponent;field_58860:Lnet/minecraft/text/Text;
      intermediary field_58860 Lnet/minecraft/class_11056;field_58860:Lnet/minecraft/class_2561;
      official f Ldgh;f:Lxi;
    • WON_TEXT

      private static final Text WON_TEXT
      Mappings:
      Namespace Name Mixin selector
      named WON_TEXT Lnet/minecraft/component/type/WorldModifiersComponent;WON_TEXT:Lnet/minecraft/text/Text;
      intermediary field_58861 Lnet/minecraft/class_11056;field_58861:Lnet/minecraft/class_2561;
      official g Ldgh;g:Lxi;
    • LOST_TEXT

      private static final Text LOST_TEXT
      Mappings:
      Namespace Name Mixin selector
      named LOST_TEXT Lnet/minecraft/component/type/WorldModifiersComponent;LOST_TEXT:Lnet/minecraft/text/Text;
      intermediary field_58862 Lnet/minecraft/class_11056;field_58862:Lnet/minecraft/class_2561;
      official h Ldgh;h:Lxi;
    • STATUS_TEXT_STYLE

      private static final Style STATUS_TEXT_STYLE
      Mappings:
      Namespace Name Mixin selector
      named STATUS_TEXT_STYLE Lnet/minecraft/component/type/WorldModifiersComponent;STATUS_TEXT_STYLE:Lnet/minecraft/text/Style;
      intermediary field_58863 Lnet/minecraft/class_11056;field_58863:Lnet/minecraft/class_2583;
      official i Ldgh;i:Lyf;
  • Constructor Details

    • WorldModifiersComponent

      public WorldModifiersComponent(List<WorldEffect> list, boolean bool)
  • Method Details

    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, @Nullable @Nullable PlayerEntity player, ItemStack stack)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
      official a Ldgd;a(Ldco$b;Ljava/util/function/Consumer;Ldek;Lcuf;Ldcs;)V
    • method_69592

      private Text method_69592(@Nullable @Nullable PlayerEntity playerEntity, WorldEffect worldEffect, boolean bool, boolean bool2)
      Mappings:
      Namespace Name Mixin selector
      named method_69592 Lnet/minecraft/component/type/WorldModifiersComponent;method_69592(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/aprilfools/WorldEffect;ZZ)Lnet/minecraft/text/Text;
      intermediary method_69592 Lnet/minecraft/class_11056;method_69592(Lnet/minecraft/class_1657;Lnet/minecraft/class_11109;ZZ)Lnet/minecraft/class_2561;
      official a Ldgh;a(Lcuf;Lfca;ZZ)Lxi;
    • method_69593

      private static Text method_69593(WorldEffect worldEffect, Text text)
      Mappings:
      Namespace Name Mixin selector
      named method_69593 Lnet/minecraft/component/type/WorldModifiersComponent;method_69593(Lnet/minecraft/aprilfools/WorldEffect;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
      intermediary method_69593 Lnet/minecraft/class_11056;method_69593(Lnet/minecraft/class_11109;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      official a Ldgh;a(Lfca;Lxi;)Lxi;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • effects

      public List<WorldEffect> effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • includeDescription

      public boolean includeDescription()
      Returns the value of the includeDescription record component.
      Returns:
      the value of the includeDescription record component