Class AbstractTrainerScenePositioningStrategy
java.lang.Object
com.pixelmonmod.pixelmon.client.render.battle.positioning.AbstractTrainerScenePositioningStrategy
- All Implemented Interfaces:
ScenePositioningStrategy
- Direct Known Subclasses:
AllyTrainerScenePositioningStrategy,OpponentTrainerScenePositioningStrategy
public abstract class AbstractTrainerScenePositioningStrategy
extends Object
implements ScenePositioningStrategy
Base strategy for placing participant owner entities, such as players or NPC trainers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(BattleSceneClientLevel scene, ClientBattleManager battleManager) Places the entities owned by this strategy.booleanisApplicable(BattleSceneClientLevel scene, ClientBattleManager battleManager) Checks whether this strategy can apply its placement responsibility to the current battle and scene.protected abstract PixelmonClientData[]pokemon(ClientBattleManager battleManager) protected abstract Stringside()
-
Constructor Details
-
AbstractTrainerScenePositioningStrategy
public AbstractTrainerScenePositioningStrategy()
-
-
Method Details
-
isApplicable
Description copied from interface:ScenePositioningStrategyChecks whether this strategy can apply its placement responsibility to the current battle and scene.- Specified by:
isApplicablein interfaceScenePositioningStrategy- Parameters:
scene- the active battle scenebattleManager- the current client battle state- Returns:
- true if this strategy has enough state and markers to apply
-
apply
Description copied from interface:ScenePositioningStrategyPlaces the entities owned by this strategy.- Specified by:
applyin interfaceScenePositioningStrategy- Parameters:
scene- the active battle scenebattleManager- the current client battle state
-
pokemon
-
side
-