Interface InteractManager


@NullMarked public interface InteractManager
플레이어의 상호작용을 제어합니다.
  • Method Details

    • interactCanIgnoreEntityInAdventure

      boolean interactCanIgnoreEntityInAdventure()
      플레이어가 GameMode.ADVENTURE 상태일 때, InteractManager.Key.LEFT_CLICK 상호작용 시 엔티티를 무시하고 상호작용할 지의 여부를 가져옵니다.
      Returns:
      true인 경우 플레이어가 InteractManager.Key.LEFT_CLICK 상호작용 시에도 앞에 있는 엔티티를 통과하여 상호작용을 수행합니다.
    • interactCanIgnoreEntityInAdventure

      void interactCanIgnoreEntityInAdventure(boolean ignore)
      플레이어가 GameMode.ADVENTURE 상태일 때, InteractManager.Key.LEFT_CLICK 상호작용 시 엔티티를 무시하고 상호작용할 지의 여부를 설정합니다.
      Parameters:
      ignore - true인 경우 플레이어가 InteractManager.Key.LEFT_CLICK 상호작용 시에도 앞에 있는 엔티티를 통과하여 상호작용을 수행합니다.
    • maxInteractsPerSecond

      void maxInteractsPerSecond(InteractManager.Key key, int max)
      초(second) 당 상호작용 횟수를 제한합니다.
      Parameters:
      key - 제한할 InteractManager.Key
      max - 최대 횟수 (0 이하일 경우 비활성화)
    • maxInteractsPerSecond

      int maxInteractsPerSecond(InteractManager.Key key)
      초(second) 당 상호작용 횟수 제한을 가져옵니다.
      Parameters:
      key - 가져올 InteractManager.Key
      Returns:
      제한된 횟수 (0 이하일 경우 비활성화)
    • defaultMaxInteractsPerSecond

      int defaultMaxInteractsPerSecond(InteractManager.Key key)
      기본 초(second) 당 상호작용 횟수 제한을 가져옵니다.
      Parameters:
      key - 가져올 InteractManager.Key
      Returns:
      기본 제한 횟수 (0 이하일 경우 비활성화)
    • swapKeyDelay

      void swapKeyDelay(int delay)
      Swap Key(기본 F)의 딜레이를 설정합니다.
      Parameters:
      delay - 딜레이 (0 이하일 경우 비활성화)
    • swapKeyDelay

      int swapKeyDelay()
      Swap Key(기본 F)의 딜레이를 가져옵니다.
      Returns:
      딜레이 (0 이하일 경우 비활성화)
    • defaultSwapKeyDelay

      int defaultSwapKeyDelay()
      기본 Swap Key(기본 F)의 딜레이를 가져옵니다.
      Returns:
      기본 딜레이 (0 이하일 경우 비활성화)