public abstract class CameraMovement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CameraEntity |
camera |
protected net.minecraft.world.World |
world |
Constructor and Description |
---|
CameraMovement(net.minecraft.world.World worldObj,
CameraEntity camera) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canPosSee(net.minecraft.util.math.BlockPos pos1,
net.minecraft.util.math.BlockPos pos2)
Checks if a position is visible from another position.
|
abstract void |
generatePositions() |
void |
handleKeyboardInput() |
void |
handleMouseMovement(double dx,
double dy,
int dwheel) |
abstract void |
onLivingUpdate() |
abstract void |
setRandomPosition(CameraTarget t) |
void |
updatePosition() |
void |
updatePositionAndRotation() |
protected net.minecraft.world.World world
protected CameraEntity camera
public CameraMovement(net.minecraft.world.World worldObj, CameraEntity camera)
protected boolean canPosSee(net.minecraft.util.math.BlockPos pos1, net.minecraft.util.math.BlockPos pos2)
pos1
- The origin position.pos2
- The target position.public abstract void setRandomPosition(CameraTarget t)
public abstract void onLivingUpdate()
public abstract void generatePositions()
public void handleKeyboardInput()
public void updatePosition()
public void updatePositionAndRotation()
public void handleMouseMovement(double dx, double dy, int dwheel)