Class CameraMovement
java.lang.Object
com.pixelmonmod.pixelmon.client.camera.movement.CameraMovement
- Direct Known Subclasses:
PlayerControlledMovement
,PositionedMovement
-
Field Summary
Modifier and TypeFieldDescriptionprotected CameraEntity
protected net.minecraft.world.level.Level
-
Constructor Summary
ConstructorDescriptionCameraMovement
(net.minecraft.world.level.Level worldObj, CameraEntity camera) -
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
-
Field Details
-
world
protected net.minecraft.world.level.Level world -
camera
-
-
Constructor Details
-
CameraMovement
-
-
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)
-