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

public static enum DyedAmethystClusterBlock.Type extends Enum<DyedAmethystClusterBlock.Type>
A variant of an amethyst cluster block.
Since:
2.0.0
  • Enum Constant Details

  • Method Details

    • values

      public static DyedAmethystClusterBlock.Type[] 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 DyedAmethystClusterBlock.Type 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
    • getBasePath

      public String 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