Class BattleAnimationDebug
java.lang.Object
com.pixelmonmod.pixelmon.api.battles.animation.BattleAnimationDebug
Utility methods for optional battle animation debug logging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final org.slf4j.Logger -
Method Summary
Modifier and TypeMethodDescriptionstatic StringactionName(BattleAnimationAction action) Returns a readable action name for debug output.static booleanenabled()Returns whether battle animation debug logging is enabled.static booleanisBattleUiChannel(String channel) Checks whether a channel name targets battle UI animation state.static voidLogs a debug message when debug logging is enabled.static StringShortens an optional UUID for compact debug output.static StringShortens a UUID for compact debug output.static StringshortIds(Collection<UUID> ids) Shortens a collection of UUIDs for compact debug output.
-
Field Details
-
BATTLE_ANIMATION_DEBUG
public static final boolean BATTLE_ANIMATION_DEBUG -
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Method Details
-
enabled
public static boolean enabled()Returns whether battle animation debug logging is enabled.- Returns:
truewhen debug logging is enabled
-
isBattleUiChannel
Checks whether a channel name targets battle UI animation state.- Parameters:
channel- the animation channel- Returns:
truefor the battle UI channel or one of its scoped children
-
log
Logs a debug message when debug logging is enabled.- Parameters:
message- the SLF4J message patternargs- the message arguments
-
actionName
Returns a readable action name for debug output.- Parameters:
action- the animation action- Returns:
- the action's simple class name, or
"null"
-
shortId
Shortens a UUID for compact debug output.- Parameters:
id- the UUID to shorten- Returns:
- the first eight UUID characters, or
"-"when absent
-
shortId
Shortens an optional UUID for compact debug output.- Parameters:
id- the optional UUID to shorten- Returns:
- the first eight UUID characters, or
"-"when absent
-
shortIds
Shortens a collection of UUIDs for compact debug output.- Parameters:
ids- the UUIDs to shorten- Returns:
- a comma-separated list of shortened UUIDs
-