类 Camera
java.lang.Object
net.minecraft.client.Camera
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final BlockPos.MutableBlockPos
private boolean
private Entity
private float
private float
static final float
private final org.joml.Vector3f
private boolean
private final org.joml.Vector3f
private BlockGetter
private Vec3
private final org.joml.Quaternionf
private final org.joml.Vector3f
private float
private float
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final org.joml.Vector3f
final org.joml.Vector3f
private double
getMaxZoom
(double pStartingDistance) final org.joml.Vector3f
float
getXRot()
float
getYRot()
boolean
boolean
protected void
move
(double pDistanceOffset, double pVerticalOffset, double pHorizontalOffset) void
reset()
org.joml.Quaternionf
rotation()
void
setAnglesInternal
(float yaw, float pitch) protected void
setPosition
(double pX, double pY, double pZ) protected void
setPosition
(Vec3 pPos) protected void
setRotation
(float pYRot, float pXRot) void
setup
(BlockGetter pLevel, Entity pEntity, boolean pDetached, boolean pThirdPersonReverse, float pPartialTick) void
tick()
-
字段详细资料
-
initialized
private boolean initialized -
level
-
entity
-
position
-
blockPosition
-
forwards
private final org.joml.Vector3f forwards -
up
private final org.joml.Vector3f up -
left
private final org.joml.Vector3f left -
xRot
private float xRot -
yRot
private float yRot -
rotation
private final org.joml.Quaternionf rotation -
detached
private boolean detached -
eyeHeight
private float eyeHeight -
eyeHeightOld
private float eyeHeightOld -
FOG_DISTANCE_SCALE
public static final float FOG_DISTANCE_SCALE- 另请参阅:
-
-
构造器详细资料
-
Camera
public Camera()
-
-
方法详细资料
-
setup
public void setup(BlockGetter pLevel, Entity pEntity, boolean pDetached, boolean pThirdPersonReverse, float pPartialTick) -
tick
public void tick() -
getMaxZoom
private double getMaxZoom(double pStartingDistance) -
move
protected void move(double pDistanceOffset, double pVerticalOffset, double pHorizontalOffset) -
setRotation
protected void setRotation(float pYRot, float pXRot) -
setPosition
protected void setPosition(double pX, double pY, double pZ) -
setPosition
-
getPosition
-
getBlockPosition
-
getXRot
public float getXRot() -
getYRot
public float getYRot() -
rotation
public org.joml.Quaternionf rotation() -
getEntity
-
isInitialized
public boolean isInitialized() -
isDetached
public boolean isDetached() -
getNearPlane
-
getFluidInCamera
-
getLookVector
public final org.joml.Vector3f getLookVector() -
getUpVector
public final org.joml.Vector3f getUpVector() -
getLeftVector
public final org.joml.Vector3f getLeftVector() -
reset
public void reset() -
setAnglesInternal
public void setAnglesInternal(float yaw, float pitch) -
getBlockAtCamera
-