Class CustomAnimationHandlerSession.SessionInfo
java.lang.Object
de.marcely.bedwars.api.cosmetics.animation.custom.CustomAnimationHandlerSession.SessionInfo
- Enclosing class:
CustomAnimationHandlerSession
Contains all the information neccessary for the handler to do its thing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ArenagetArena()Get the arena in which the arena is played in.Get the configs set in the animation's file for this handler.Get the position at which the animation shall play at.<T> TDeprecated.Ignore this!The main subject related to the animation.The related subject for the animation.
-
Constructor Details
-
SessionInfo
public SessionInfo()
-
-
Method Details
-
getArena
Get the arena in which the arena is played in.The animation may not leave the boundaries of the arena!
- Returns:
- The animation in which the animation had started. May be
nullif it has been started using a command
-
getLocation
Get the position at which the animation shall play at.Automatically considers offsets and other user configurations. Just use this one. It may change over time, just call it again with upcoming ticks.
- Returns:
- The current location at which the animation shall be held
-
getPlayer
The main subject related to the animation.- Returns:
- The main player
-
getRelatedPlayer
The related subject for the animation.May be equal to
getPlayer().- Returns:
- The related player of the animation
-
getConfigs
Get the configs set in the animation's file for this handler.- Returns:
- The configs you can use
-
getNative
Deprecated.Ignore this!Ignore this! For internal usage.- Type Parameters:
T- Ignore this!- Returns:
- Ignore this!
-