本文整理汇总了Java中net.minecraft.network.play.server.S27PacketExplosion.func_149147_e方法的典型用法代码示例。如果您正苦于以下问题:Java S27PacketExplosion.func_149147_e方法的具体用法?Java S27PacketExplosion.func_149147_e怎么用?Java S27PacketExplosion.func_149147_e使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.network.play.server.S27PacketExplosion
的用法示例。
在下文中一共展示了S27PacketExplosion.func_149147_e方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleExplosion
import net.minecraft.network.play.server.S27PacketExplosion; //导入方法依赖的package包/类
/**
* Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.
*/
public void handleExplosion(S27PacketExplosion packetIn)
{
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
Explosion explosion = new Explosion(this.gameController.theWorld, (Entity)null, packetIn.getX(), packetIn.getY(), packetIn.getZ(), packetIn.getStrength(), packetIn.getAffectedBlockPositions());
explosion.doExplosionB(true);
this.gameController.thePlayer.motionX += (double)packetIn.func_149149_c();
this.gameController.thePlayer.motionY += (double)packetIn.func_149144_d();
this.gameController.thePlayer.motionZ += (double)packetIn.func_149147_e();
}
示例2: handleExplosion
import net.minecraft.network.play.server.S27PacketExplosion; //导入方法依赖的package包/类
/**
* Initiates a new explosion (sound, particles, drop spawn) for the affected
* blocks indicated by the packet.
*/
public void handleExplosion(S27PacketExplosion packetIn) {
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
Explosion explosion = new Explosion(this.gameController.theWorld, (Entity) null, packetIn.getX(),
packetIn.getY(), packetIn.getZ(), packetIn.getStrength(), packetIn.getAffectedBlockPositions());
explosion.doExplosionB(true);
this.gameController.thePlayer.motionX += (double) packetIn.func_149149_c();
this.gameController.thePlayer.motionY += (double) packetIn.func_149144_d();
this.gameController.thePlayer.motionZ += (double) packetIn.func_149147_e();
}
示例3: handleExplosion
import net.minecraft.network.play.server.S27PacketExplosion; //导入方法依赖的package包/类
/**
* Initiates a new explosion (sound, particles, drop spawn) for the affected blocks indicated by the packet.
*/
public void handleExplosion(S27PacketExplosion p_147283_1_)
{
Explosion var2 = new Explosion(this.gameController.theWorld, (Entity)null, p_147283_1_.func_149148_f(), p_147283_1_.func_149143_g(), p_147283_1_.func_149145_h(), p_147283_1_.func_149146_i());
var2.affectedBlockPositions = p_147283_1_.func_149150_j();
var2.doExplosionB(true);
this.gameController.thePlayer.motionX += (double)p_147283_1_.func_149149_c();
this.gameController.thePlayer.motionY += (double)p_147283_1_.func_149144_d();
this.gameController.thePlayer.motionZ += (double)p_147283_1_.func_149147_e();
}
示例4: handleExplosion
import net.minecraft.network.play.server.S27PacketExplosion; //导入方法依赖的package包/类
public void handleExplosion(S27PacketExplosion p_147283_1_)
{
Explosion explosion = new Explosion(this.gameController.theWorld, (Entity)null, p_147283_1_.func_149148_f(), p_147283_1_.func_149143_g(), p_147283_1_.func_149145_h(), p_147283_1_.func_149146_i());
explosion.affectedBlockPositions = p_147283_1_.func_149150_j();
explosion.doExplosionB(true);
this.gameController.thePlayer.motionX += (double)p_147283_1_.func_149149_c();
this.gameController.thePlayer.motionY += (double)p_147283_1_.func_149144_d();
this.gameController.thePlayer.motionZ += (double)p_147283_1_.func_149147_e();
}