Package moe.caramel.daydream.player
Interface InteractManager
플레이어의 상호작용을 제어합니다.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint기본 초(second) 당 상호작용 횟수 제한을 가져옵니다.int기본 Swap Key(기본 F)의 딜레이를 가져옵니다.boolean플레이어가GameMode.ADVENTURE상태일 때,InteractManager.Key.LEFT_CLICK상호작용 시 엔티티를 무시하고 상호작용할 지의 여부를 가져옵니다.voidinteractCanIgnoreEntityInAdventure(boolean ignore) 플레이어가GameMode.ADVENTURE상태일 때,InteractManager.Key.LEFT_CLICK상호작용 시 엔티티를 무시하고 상호작용할 지의 여부를 설정합니다.int초(second) 당 상호작용 횟수 제한을 가져옵니다.voidmaxInteractsPerSecond(InteractManager.Key key, int max) 초(second) 당 상호작용 횟수를 제한합니다.intSwap Key(기본 F)의 딜레이를 가져옵니다.voidswapKeyDelay(int delay) Swap Key(기본 F)의 딜레이를 설정합니다.
-
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
초(second) 당 상호작용 횟수를 제한합니다.- Parameters:
key- 제한할InteractManager.Keymax- 최대 횟수 (0 이하일 경우 비활성화)
-
maxInteractsPerSecond
초(second) 당 상호작용 횟수 제한을 가져옵니다.- Parameters:
key- 가져올InteractManager.Key- Returns:
- 제한된 횟수 (0 이하일 경우 비활성화)
-
defaultMaxInteractsPerSecond
기본 초(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 이하일 경우 비활성화)
-