Record Class SpecialMineComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.SpecialMineComponent
Record Components:
id -
name -
description -
requiredEffects -
randomEffects -
unlockedBy -
unlockedAfter -
extraRandom -

public record SpecialMineComponent(String id, Text name, Text description, List<WorldEffect> requiredEffects, List<List<WorldEffect>> randomEffects, List<UnlockCondition> unlockedBy, List<SpecialMineComponent> unlockedAfter, int extraRandom) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/SpecialMineComponent
intermediary net/minecraft/class_11105
official fbx
named id
intermediary comp_3984
official c
named name
intermediary comp_3985
official d
named description
intermediary comp_3986
official e
named requiredEffects
intermediary comp_3987
official f
named randomEffects
intermediary comp_3988
official g
named unlockedBy
intermediary comp_3989
official h
named unlockedAfter
intermediary comp_3990
official i
named extraRandom
intermediary comp_3991
official j
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • name

      private final Text name
      The field for the name record component.
    • description

      private final Text description
      The field for the description record component.
    • requiredEffects

      private final List<WorldEffect> requiredEffects
      The field for the requiredEffects record component.
    • randomEffects

      private final List<List<WorldEffect>> randomEffects
      The field for the randomEffects record component.
    • unlockedBy

      private final List<UnlockCondition> unlockedBy
      The field for the unlockedBy record component.
    • unlockedAfter

      private final List<SpecialMineComponent> unlockedAfter
      The field for the unlockedAfter record component.
    • extraRandom

      private final int extraRandom
      The field for the extraRandom record component.
    • CODEC

      public static final com.mojang.serialization.Codec<SpecialMineComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/SpecialMineComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_59113 Lnet/minecraft/class_11105;field_59113:Lcom/mojang/serialization/Codec;
      official a Lfbx;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,SpecialMineComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/SpecialMineComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59114 Lnet/minecraft/class_11105;field_59114:Lnet/minecraft/class_9139;
      official b Lfbx;b:Lzg;
  • Constructor Details

  • Method Details

    • builder

      public static SpecialMineComponent.Builder builder(String id)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/component/type/SpecialMineComponent;builder(Ljava/lang/String;)Lnet/minecraft/component/type/SpecialMineComponent$Builder;
      intermediary method_69904 Lnet/minecraft/class_11105;method_69904(Ljava/lang/String;)Lnet/minecraft/class_11105$class_11106;
      official a Lfbx;a(Ljava/lang/String;)Lfbx$a;
    • method_69903

      public List<WorldEffect> method_69903(ServerWorld serverWorld)
      Mappings:
      Namespace Name Mixin selector
      named method_69903 Lnet/minecraft/component/type/SpecialMineComponent;method_69903(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/List;
      intermediary method_69903 Lnet/minecraft/class_11105;method_69903(Lnet/minecraft/class_3218;)Ljava/util/List;
      official a Lfbx;a(Last;)Ljava/util/List;
    • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public Text name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • requiredEffects

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

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

      public List<UnlockCondition> unlockedBy()
      Returns the value of the unlockedBy record component.
      Returns:
      the value of the unlockedBy record component
    • unlockedAfter

      public List<SpecialMineComponent> unlockedAfter()
      Returns the value of the unlockedAfter record component.
      Returns:
      the value of the unlockedAfter record component
    • extraRandom

      public int extraRandom()
      Returns the value of the extraRandom record component.
      Returns:
      the value of the extraRandom record component