Enum Class DyedAmethystClusterBlock.Type
java.lang.Object
java.lang.Enum<DyedAmethystClusterBlock.Type>
dev.jaxydog.astral.content.block.custom.DyedAmethystClusterBlock.Type
- All Implemented Interfaces:
Serializable,Comparable<DyedAmethystClusterBlock.Type>,Constable
- Enclosing class:
DyedAmethystClusterBlock
A variant of an amethyst cluster block.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAmethyst clusters.Large amethyst buds.Medium amethyst buds.Small amethyst buds. -
Method Summary
Modifier and TypeMethodDescriptionReturns this type's base identifier path.net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> Returns this type's block tag key.intReturns this type's cluster height.net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> Returns this type's item tag key.net.minecraft.util.shape.VoxelShapegetShape(net.minecraft.util.math.Direction direction) Returns the block's shape in the current direction.intgetSize()Returns this type's cluster size.Returns the enum constant of this class with the specified name.static DyedAmethystClusterBlock.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLUSTER
Amethyst clusters.- Since:
- 2.0.0
-
LARGE_BUD
Large amethyst buds.- Since:
- 2.0.0
-
MEDIUM_BUD
Medium amethyst buds.- Since:
- 2.0.0
-
SMALL_BUD
Small amethyst buds.- Since:
- 2.0.0
-
-
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
-
getBasePath
Returns this type's base identifier path.- Returns:
- The identifier path.
- Since:
- 2.0.0
-
getSize
public int getSize()Returns this type's cluster size.- Returns:
- The cluster size.
- Since:
- 2.0.0
-
getHeight
public int getHeight()Returns this type's cluster height.- Returns:
- The cluster height.
- Since:
- 2.0.0
-
getBlockTagKey
public net.minecraft.registry.tag.TagKey<net.minecraft.block.Block> getBlockTagKey()Returns this type's block tag key.- Returns:
- The block tag key.
- Since:
- 2.0.0
-
getItemTagKey
public net.minecraft.registry.tag.TagKey<net.minecraft.item.Item> getItemTagKey()Returns this type's item tag key.- Returns:
- The item tag key.
- Since:
- 2.0.0
-
getShape
public net.minecraft.util.shape.VoxelShape getShape(net.minecraft.util.math.Direction direction) Returns the block's shape in the current direction.- Parameters:
direction- The direction that the block is facing.- Returns:
- The shape of the block.
- Since:
- 2.0.0
-