Interface SculkShrieker

All Superinterfaces:
BlockState, Metadatable, PersistentDataHolder, TileState

public interface SculkShrieker extends TileState
Represents a captured state of a sculk shrieker.
  • Method Details

    • getWarningLevel

      int getWarningLevel()
      Gets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.
      Returns:
      current warning level
    • setWarningLevel

      void setWarningLevel(int level)
      Sets the most recent warning level of this block. When the warning level reaches 4, the shrieker will attempt to spawn a Warden.
      Parameters:
      level - new warning level