Interface ScenePositioningStrategy
- All Known Implementing Classes:
AbstractPokemonScenePositioningStrategy,AbstractTrainerScenePositioningStrategy,AllyPokemonScenePositioningStrategy,AllyTrainerScenePositioningStrategy,AnimationEntityScenePositioningStrategy,OpponentPokemonScenePositioningStrategy,OpponentTrainerScenePositioningStrategy,PlayerPokemonScenePositioningStrategy,PlayerScenePositioningStrategy
public interface ScenePositioningStrategy
Applies one part of a battle scene's participant positioning.
-
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.static voidposition(BattleSceneClientLevel scene, net.minecraft.world.entity.Entity entity, BattleSceneMarker marker) Places an entity at a marker and records the original and scene positions for later effect remapping.static voidposition(net.minecraft.world.entity.Entity entity, BattleSceneMarker marker) Places an entity at a marker without recording scene mapping state.
-
Method Details
-
isApplicable
Checks whether this strategy can apply its placement responsibility to the current battle and scene.- Parameters:
scene- the active battle scenebattleManager- the current client battle state- Returns:
- true if this strategy has enough state and markers to apply
-
apply
Places the entities owned by this strategy.- Parameters:
scene- the active battle scenebattleManager- the current client battle state
-
position
static void position(BattleSceneClientLevel scene, net.minecraft.world.entity.Entity entity, BattleSceneMarker marker) Places an entity at a marker and records the original and scene positions for later effect remapping.- Parameters:
scene- the active battle sceneentity- the entity to placemarker- the target marker
-
position
Places an entity at a marker without recording scene mapping state.- Parameters:
entity- the entity to placemarker- the target marker
-