Enum Class PartConfigSection

java.lang.Object
java.lang.Enum<PartConfigSection>
org.cyclops.integrateddynamics.core.part.PartConfigSection
All Implemented Interfaces:
Serializable, Comparable<PartConfigSection>, Constable, net.minecraft.util.StringRepresentable

public enum PartConfigSection extends Enum<PartConfigSection> implements net.minecraft.util.StringRepresentable
The separate sections of a part configuration that can be copied and pasted.
  • Enum Constant Details

    • PART_SETTINGS

      public static final PartConfigSection PART_SETTINGS
      Update interval, priority, channel, target side, target offset, and the offset variables.
    • ASPECT

      public static final PartConfigSection ASPECT
      The active variable, the statically configured aspect properties, and the aspect setting variables.
  • Field Details

    • ALL

      public static final Set<PartConfigSection> ALL
      All sections, which together form the whole configuration of a part.
    • CODEC

      public static final com.mojang.serialization.Codec<PartConfigSection> CODEC
  • Method Details

    • values

      public static PartConfigSection[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PartConfigSection valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • forInventoryName

      public static PartConfigSection forInventoryName(String inventoryName)
      Parameters:
      inventoryName - The name of a variable inventory inside a part.
      Returns:
      The section that the variables in that inventory belong to.
    • getTranslationKey

      public String getTranslationKey()
    • getGuiTranslationKey

      public String getGuiTranslationKey()
      Returns:
      The name of this section as a gui calls it, which is a name for one entry of it, rather than for everything that the section holds.