Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe active variable, the statically configured aspect properties, and the aspect setting variables.Update interval, priority, channel, target side, target offset, and the offset variables. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<PartConfigSection> All sections, which together form the whole configuration of a part.static final com.mojang.serialization.Codec<PartConfigSection> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescriptionstatic PartConfigSectionforInventoryName(String inventoryName) static PartConfigSectionReturns the enum constant of this class with the specified name.static PartConfigSection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PART_SETTINGS
Update interval, priority, channel, target side, target offset, and the offset variables. -
ASPECT
The active variable, the statically configured aspect properties, and the aspect setting variables.
-
-
Field Details
-
ALL
All sections, which together form the whole configuration of a part. -
CODEC
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
forInventoryName
- Parameters:
inventoryName- The name of a variable inventory inside a part.- Returns:
- The section that the variables in that inventory belong to.
-
getTranslationKey
-
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.
-