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 Details

    • isApplicable

      boolean isApplicable(BattleSceneClientLevel scene, ClientBattleManager battleManager)
      Checks whether this strategy can apply its placement responsibility to the current battle and scene.
      Parameters:
      scene - the active battle scene
      battleManager - the current client battle state
      Returns:
      true if this strategy has enough state and markers to apply
    • apply

      void apply(BattleSceneClientLevel scene, ClientBattleManager battleManager)
      Places the entities owned by this strategy.
      Parameters:
      scene - the active battle scene
      battleManager - 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 scene
      entity - the entity to place
      marker - the target marker
    • position

      static void position(net.minecraft.world.entity.Entity entity, BattleSceneMarker marker)
      Places an entity at a marker without recording scene mapping state.
      Parameters:
      entity - the entity to place
      marker - the target marker