Class StareDownFaceCameraMovement
java.lang.Object
com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
com.pixelmonmod.pixelmon.client.camera.movement.StareDownFaceCameraMovement
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
camera, world
-
Constructor Summary
ConstructorsConstructorDescriptionStareDownFaceCameraMovement
(net.minecraft.world.level.Level level, CameraEntity camera, double radius) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPosSee
(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) Checks if a position is visible from another position.void
void
handleMouseMovement
(double dx, double dy, int dwheel) void
-
Constructor Details
-
StareDownFaceCameraMovement
public StareDownFaceCameraMovement(net.minecraft.world.level.Level level, CameraEntity camera, double radius)
-
-
Method Details
-
canPosSee
protected boolean canPosSee(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2) Description copied from class:CameraMovement
Checks if a position is visible from another position.- Overrides:
canPosSee
in classCameraMovement
- Parameters:
pos1
- The origin position.pos2
- The target position.- Returns:
- Whether the second position is visible from the first position.
-
handleKeyboardInput
public void handleKeyboardInput()- Overrides:
handleKeyboardInput
in classCameraMovement
-
updatePosition
public void updatePosition()- Overrides:
updatePosition
in classCameraMovement
-
handleMouseMovement
public void handleMouseMovement(double dx, double dy, int dwheel) - Overrides:
handleMouseMovement
in classCameraMovement
-