本文整理汇总了Java中net.minecraft.network.play.server.S14PacketEntity类的典型用法代码示例。如果您正苦于以下问题:Java S14PacketEntity类的具体用法?Java S14PacketEntity怎么用?Java S14PacketEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
S14PacketEntity类属于net.minecraft.network.play.server包,在下文中一共展示了S14PacketEntity类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handleEntityMovement
点赞 3
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
/**
* Updates the specified entity's position by the specified relative moment and absolute rotation. Note that
* subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs.
* rotation or both).
*/
public void handleEntityMovement(S14PacketEntity packetIn)
{
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
Entity entity = packetIn.getEntity(this.clientWorldController);
if (entity != null)
{
entity.serverPosX += packetIn.func_149062_c();
entity.serverPosY += packetIn.func_149061_d();
entity.serverPosZ += packetIn.func_149064_e();
double d0 = (double)entity.serverPosX / 32.0D;
double d1 = (double)entity.serverPosY / 32.0D;
double d2 = (double)entity.serverPosZ / 32.0D;
float f = packetIn.func_149060_h() ? (float)(packetIn.func_149066_f() * 360) / 256.0F : entity.rotationYaw;
float f1 = packetIn.func_149060_h() ? (float)(packetIn.func_149063_g() * 360) / 256.0F : entity.rotationPitch;
entity.setPositionAndRotation2(d0, d1, d2, f, f1, 3, false);
entity.onGround = packetIn.getOnGround();
}
}
开发者ID:Notoh,
项目名称:DecompiledMinecraft,
代码行数:25,
代码来源:NetHandlerPlayClient.java
示例2: handleEntityMovement
点赞 3
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
/**
* Updates the specified entity's position by the specified relative moment and
* absolute rotation. Note that subclassing of the packet allows for the
* specification of a subset of this data (e.g. only rel. position, abs.
* rotation or both).
*/
public void handleEntityMovement(S14PacketEntity packetIn) {
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
Entity entity = packetIn.getEntity(this.clientWorldController);
if (entity != null) {
entity.serverPosX += packetIn.func_149062_c();
entity.serverPosY += packetIn.func_149061_d();
entity.serverPosZ += packetIn.func_149064_e();
double d0 = (double) entity.serverPosX / 32.0D;
double d1 = (double) entity.serverPosY / 32.0D;
double d2 = (double) entity.serverPosZ / 32.0D;
float f = packetIn.func_149060_h() ? (float) (packetIn.func_149066_f() * 360) / 256.0F : entity.rotationYaw;
float f1 = packetIn.func_149060_h() ? (float) (packetIn.func_149063_g() * 360) / 256.0F
: entity.rotationPitch;
entity.setPositionAndRotation2(d0, d1, d2, f, f1, 3, false);
entity.onGround = packetIn.getOnGround();
}
}
开发者ID:SkidJava,
项目名称:BaseClient,
代码行数:25,
代码来源:NetHandlerPlayClient.java
示例3: handleEntityMovement
点赞 3
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
/**
* Updates the specified entity's position by the specified relative moment and absolute rotation. Note that
* subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs.
* rotation or both).
*/
public void handleEntityMovement(S14PacketEntity p_147259_1_)
{
Entity var2 = p_147259_1_.func_149065_a(this.clientWorldController);
if (var2 != null)
{
var2.serverPosX += p_147259_1_.func_149062_c();
var2.serverPosY += p_147259_1_.func_149061_d();
var2.serverPosZ += p_147259_1_.func_149064_e();
double var3 = (double)var2.serverPosX / 32.0D;
double var5 = (double)var2.serverPosY / 32.0D;
double var7 = (double)var2.serverPosZ / 32.0D;
float var9 = p_147259_1_.func_149060_h() ? (float)(p_147259_1_.func_149066_f() * 360) / 256.0F : var2.rotationYaw;
float var10 = p_147259_1_.func_149060_h() ? (float)(p_147259_1_.func_149063_g() * 360) / 256.0F : var2.rotationPitch;
var2.setPositionAndRotation2(var3, var5, var7, var9, var10, 3);
}
}
开发者ID:MinecraftModdedClients,
项目名称:Resilience-Client-Source,
代码行数:23,
代码来源:NetHandlerPlayClient.java
示例4: handleEntityMovement
点赞 3
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
public void handleEntityMovement(S14PacketEntity p_147259_1_)
{
Entity entity = p_147259_1_.func_149065_a(this.clientWorldController);
if (entity != null)
{
entity.serverPosX += p_147259_1_.func_149062_c();
entity.serverPosY += p_147259_1_.func_149061_d();
entity.serverPosZ += p_147259_1_.func_149064_e();
double d0 = (double)entity.serverPosX / 32.0D;
double d1 = (double)entity.serverPosY / 32.0D;
double d2 = (double)entity.serverPosZ / 32.0D;
float f = p_147259_1_.func_149060_h() ? (float)(p_147259_1_.func_149066_f() * 360) / 256.0F : entity.rotationYaw;
float f1 = p_147259_1_.func_149060_h() ? (float)(p_147259_1_.func_149063_g() * 360) / 256.0F : entity.rotationPitch;
entity.setPositionAndRotation2(d0, d1, d2, f, f1, 3);
}
}
开发者ID:xtrafrancyz,
项目名称:Cauldron,
代码行数:18,
代码来源:NetHandlerPlayClient.java
示例5: handleEntityMovement
点赞 1
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
/**
* Updates the specified entity's position by the specified relative moment and absolute rotation. Note that
* subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs.
* rotation or both).
*/
void handleEntityMovement(S14PacketEntity packetIn);
开发者ID:Notoh,
项目名称:DecompiledMinecraft,
代码行数:7,
代码来源:INetHandlerPlayClient.java
示例6: handleEntityMovement
点赞 1
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
/**
* Updates the specified entity's position by the specified relative moment and absolute rotation. Note that
* subclassing of the packet allows for the specification of a subset of this data (e.g. only rel. position, abs.
* rotation or both).
*/
void handleEntityMovement(S14PacketEntity var1);
开发者ID:MinecraftModdedClients,
项目名称:Resilience-Client-Source,
代码行数:7,
代码来源:INetHandlerPlayClient.java
示例7: handleEntityMovement
点赞 1
import net.minecraft.network.play.server.S14PacketEntity; //导入依赖的package包/类
void handleEntityMovement(S14PacketEntity p_147259_1_);
开发者ID:xtrafrancyz,
项目名称:Cauldron,
代码行数:2,
代码来源:INetHandlerPlayClient.java