本文整理汇总了Java中cn.nukkit.math.Vector3f类的典型用法代码示例。如果您正苦于以下问题:Java Vector3f类的具体用法?Java Vector3f怎么用?Java Vector3f使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Vector3f类属于cn.nukkit.math包,在下文中一共展示了Vector3f类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:19,代码来源:MovePlayerPacket.java
示例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();
}
}
开发者ID:JupiterDevelopmentTeam,项目名称:Jupiter,代码行数:19,代码来源:MovePlayerPacket.java
示例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();
}
开发者ID:FrontierDevs,项目名称:Jenisys3,代码行数:20,代码来源:UseItemPacket.java
示例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();
}
开发者ID:CoreXDevelopment,项目名称:CoreX,代码行数:20,代码来源:UseItemPacket.java
示例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();
}
}
开发者ID:CoreXDevelopment,项目名称:CoreX,代码行数:19,代码来源:MovePlayerPacket.java
示例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;
}
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:9,代码来源:Vector3fEntityData.java
示例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();
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:14,代码来源:MoveEntityPacket.java
示例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();
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:13,代码来源:LevelSoundEventPacket.java
示例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;
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:8,代码来源:RespawnPacket.java
示例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();
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:10,代码来源:LevelEventPacket.java
示例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)));
}
}
开发者ID:JupiterDevelopmentTeam,项目名称:Jupiter,代码行数:8,代码来源:Entity.java
示例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();
}
开发者ID:JupiterDevelopmentTeam,项目名称:Jupiter,代码行数:14,代码来源:MoveEntityPacket.java
示例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);
}
开发者ID:FrontierDevs,项目名称:Jenisys3,代码行数:12,代码来源:MoveEntityPacket.java
示例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();
}
开发者ID:FrontierDevs,项目名称:Jenisys3,代码行数:13,代码来源:LevelSoundEventPacket.java
示例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();
}
开发者ID:FrontierDevs,项目名称:Jenisys3,代码行数:14,代码来源:MovePlayerPacket.java
示例16: 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.headYaw = this.getByte() * (360d / 256d);
this.yaw = this.getByte() * (360d / 256d);
this.onGround = this.getBoolean();
this.teleport = this.getBoolean();
}
开发者ID:CoreXDevelopment,项目名称:CoreX,代码行数:14,代码来源:MoveEntityPacket.java
示例17: 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.unknownBool = this.getBoolean();
this.disableRelativeVolume = this.getBoolean();
}
开发者ID:CoreXDevelopment,项目名称:CoreX,代码行数:13,代码来源:LevelSoundEventPacket.java
示例18: decode
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
@Override
public void decode() {
this.type = this.getVarInt();
Vector3f v = this.getVector3f();
this.x = v.x;
this.y = v.y;
this.z = v.z;
this.case1 = this.getVarInt();
this.case2 = this.getVarInt();
this.unknownBool = this.getBoolean();
this.unknownBool2 = this.getBoolean();
}
开发者ID:NycuRO,项目名称:Apollo-OLD,代码行数:13,代码来源:LevelSoundEventPacket.java
示例19: Vector3fEntityData
import cn.nukkit.math.Vector3f; //导入依赖的package包/类
public Vector3fEntityData(int id, Vector3f pos) {
this(id, pos.x, pos.y, pos.z);
}
开发者ID:Rsplwe,项目名称:Nukkit-Java9,代码行数:4,代码来源:Vector3fEntityData.java
注:本文中的cn.nukkit.math.Vector3f类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论