Enum Class MinePhase

java.lang.Object
java.lang.Enum<MinePhase>
me.hackware.api.mining.MinePhase
All Implemented Interfaces:
Serializable, Comparable<MinePhase>, Constable

public enum MinePhase extends Enum<MinePhase>
Where a tracked block currently sits in SilentMine's two-slot pipeline.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The active/secondary slot: the block whose timer is currently aging toward the break line.
    The delayed-destroy slot: the server ages this block on its own tick and completes it at 100% progress (VANILLA's visible-swap primary, GRIM_V2's parked block).
    Waiting in a queue; mining has not started.
    The block already broke and the slot stays armed on its position, popping anything re-placed there near-instantly.
  • Method Summary

    Modifier and Type
    Method
    Description
    static MinePhase
    Returns the enum constant of this class with the specified name.
    static MinePhase[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PRIMARY

      public static final MinePhase PRIMARY
      The delayed-destroy slot: the server ages this block on its own tick and completes it at 100% progress (VANILLA's visible-swap primary, GRIM_V2's parked block).
    • DOUBLE_MINE

      public static final MinePhase DOUBLE_MINE
      The active/secondary slot: the block whose timer is currently aging toward the break line. Under GRIM_V2 every actively-mined block passes through this phase, even with the Double Mine setting off.
    • REBREAK_ARMED

      public static final MinePhase REBREAK_ARMED
      The block already broke and the slot stays armed on its position, popping anything re-placed there near-instantly.
    • QUEUED

      public static final MinePhase QUEUED
      Waiting in a queue; mining has not started.
  • Method Details

    • values

      public static MinePhase[] 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 MinePhase 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