Class PlayerControlledMovement
java.lang.Object
com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
com.pixelmonmod.pixelmon.client.camera.movement.PlayerControlledMovement
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
camera, world
-
Constructor Summary
ConstructorDescriptionPlayerControlledMovement
(net.minecraft.world.level.Level world, CameraEntity entityCamera) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
handleMouseMovement
(double dx, double dy, int dwheel) static net.minecraft.world.phys.Vec3
multiply
(org.joml.Matrix3f matrix, net.minecraft.world.phys.Vec3 vector) void
void
static void
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.void
Methods inherited from class com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
canPosSee, handleKeyboardInput
-
Constructor Details
-
PlayerControlledMovement
-
-
Method Details
-
setRandomPosition
- Specified by:
setRandomPosition
in classCameraMovement
-
onLivingUpdate
public void onLivingUpdate()- Specified by:
onLivingUpdate
in classCameraMovement
-
updatePosition
public void updatePosition()- Overrides:
updatePosition
in classCameraMovement
-
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 classCameraMovement
-
handleMouseMovement
public void handleMouseMovement(double dx, double dy, int dwheel) - Overrides:
handleMouseMovement
in classCameraMovement
-
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.
-