Class PlayerControlledMovement

java.lang.Object
com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
com.pixelmonmod.pixelmon.client.camera.movement.PlayerControlledMovement

public class PlayerControlledMovement extends CameraMovement
  • Constructor Details

    • PlayerControlledMovement

      public PlayerControlledMovement(net.minecraft.world.level.Level world, CameraEntity entityCamera)
  • Method Details

    • setRandomPosition

      public void setRandomPosition(CameraTarget t)
      Specified by:
      setRandomPosition in class CameraMovement
    • onLivingUpdate

      public void onLivingUpdate()
      Specified by:
      onLivingUpdate in class CameraMovement
    • updatePosition

      public void updatePosition()
      Overrides:
      updatePosition in class CameraMovement
    • multiply

      public static net.minecraft.world.phys.Vec3 multiply(org.joml.Matrix3f matrix, net.minecraft.world.phys.Vec3 vector)
    • generateSphere

      public void generateSphere()
    • generatePositions

      public void generatePositions()
      Specified by:
      generatePositions in class CameraMovement
    • handleMouseMovement

      public void handleMouseMovement(double dx, double dy, int dwheel)
      Overrides:
      handleMouseMovement in class CameraMovement
    • switchBetweenViewEntities

      public static void switchBetweenViewEntities()
      Function to handle when the battle camera switches between the overhead default camera, the perspective of the player, or the perspective of (one of) the player's Pokémon.