Class CameraMovement

java.lang.Object
com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
Direct Known Subclasses:
PlayerControlledMovement, PositionedMovement

public abstract class CameraMovement extends Object
  • Field Details

    • world

      protected net.minecraft.world.level.Level world
    • camera

      protected CameraEntity camera
  • Constructor Details

    • CameraMovement

      public CameraMovement(net.minecraft.world.level.Level worldObj, CameraEntity camera)
  • Method Details

    • canPosSee

      protected boolean canPosSee(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2)
      Checks if a position is visible from another position.
      Parameters:
      pos1 - The origin position.
      pos2 - The target position.
      Returns:
      Whether the second position is visible from the first position.
    • handleKeyboardInput

      public void handleKeyboardInput()
    • updatePosition

      public void updatePosition()
    • handleMouseMovement

      public void handleMouseMovement(double dx, double dy, int dwheel)