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
    • tryShriek

      void tryShriek(@Nullable @Nullable Player player)
      Simulates a player causing a vibration.
      Parameters:
      player - the player that "caused" the shriek