本文整理汇总了Java中cn.nukkit.math.Vector3f类的典型用法代码示例。如果您正苦于以下问题:Java Vector3f类的具体用法?Java Vector3f怎么用?Java Vector3f使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Vector3f类属于cn.nukkit.math包,在下文中一共展示了Vector3f类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.eid = this.getEntityRuntimeId();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getLFloat();
this.headYaw = this.getLFloat();
this.yaw = this.getLFloat();
this.mode = this.getByte();
this.onGround = this.getBoolean();
this.ridingEid = this.getEntityRuntimeId();
if (this.mode == MODE_TELEPORT) {
this.int1 = this.getLInt();
this.int2 = this.getLInt();
}
}
示例2: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.entityRuntimeId = this.getEntityRuntimeId();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getLFloat();
this.headYaw = this.getLFloat();
this.yaw = this.getLFloat();
this.mode = this.getByte();
this.onGround = this.getBoolean();
this.ridingEid = this.getEntityRuntimeId();
if (this.mode == MODE_TELEPORT) {
this.int1 = this.getLInt();
this.int2 = this.getLInt();
}
}
示例3: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
BlockVector3 v = this.getBlockCoords();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.interactBlockId = (int) this.getUnsignedVarInt();
this.face = this.getVarInt();
Vector3f faceVector3 = this.getVector3f();
this.fx = faceVector3.x;
this.fy = faceVector3.y;
this.fz = faceVector3.z;
Vector3f playerPos = this.getVector3f();
this.posX = playerPos.x;
this.posY = playerPos.y;
this.posZ = playerPos.z;
this.unknown = this.getByte();
this.item = this.getSlot();
}
示例4: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
BlockVector3 v = this.getBlockCoords();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.interactBlockId = (int) this.getUnsignedVarInt();
this.face = this.getVarInt();
Vector3f faceVector3 = this.getVector3f();
this.fx = faceVector3.x;
this.fy = faceVector3.y;
this.fz = faceVector3.z;
Vector3f playerPos = this.getVector3f();
this.posX = playerPos.x;
this.posY = playerPos.y;
this.posZ = playerPos.z;
this.slot = this.getByte();
this.item = this.getSlot();
}
示例5: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.eid = this.getVarLong();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getLFloat();
this.headYaw = this.getLFloat();
this.yaw = this.getLFloat();
this.mode = (byte) this.getByte();
this.onGround = this.getBoolean();
this.ridingEid = this.getVarLong();
if (this.mode == MODE_TELEPORT){
this.int1 = this.getLInt();
this.int2 = this.getLInt();
}
}
示例6: setData
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void setData(Vector3f data) {
if (data != null) {
this.x = data.x;
this.y = data.y;
this.z = data.z;
}
}
示例7: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.eid = this.getEntityRuntimeId();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getByte() * (360d / 256d);
this.headYaw = this.getByte() * (360d / 256d);
this.yaw = this.getByte() * (360d / 256d);
this.onGround = this.getBoolean();
this.teleport = this.getBoolean();
}
示例8: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.sound = this.getByte();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.extraData = this.getVarInt();
this.pitch = this.getVarInt();
this.isBabyMob = this.getBoolean();
this.isGlobal = this.getBoolean();
}
示例9: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
}
示例10: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.evid = this.getVarInt();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.data = this.getVarInt();
}
示例11: updateRiderPosition
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
protected void updateRiderPosition(float offset) {
// Messy unknown variables
if (updateRidden()) {
linkedEntity.setDataProperty(new Vector3fEntityData(DATA_RIDER_SEAT_POSITION,
new Vector3f(0, offset, 0)));
}
}
示例12: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.entityRuntimeId = this.getEntityRuntimeId();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getByte() * (360d / 256d);
this.headYaw = this.getByte() * (360d / 256d);
this.yaw = this.getByte() * (360d / 256d);
this.onGround = this.getBoolean();
this.teleport = this.getBoolean();
}
示例13: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.eid = this.getVarLong();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getByte() * (360d / 256d);
this.yaw = this.getByte() * (360d / 256d);
this.headYaw = this.getByte() * (360d / 256d);
}
示例14: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.type = (byte) this.getByte();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.extraData = this.getVarInt();
this.pitch = this.getVarInt();
this.unknownBool = this.getBoolean();
this.unknownBool2 = this.getBoolean();
}
示例15: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.eid = this.getVarLong();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.pitch = this.getLFloat();
this.headYaw = this.getLFloat();
this.yaw = this.getLFloat();
this.mode = (byte) this.getByte();
this.onGround = this.getBoolean();
}