当前位置: 首页>>代码示例>>Java>>正文


Java S27PacketExplosion.func_149149_c方法代码示例

本文整理汇总了Java中net.minecraft.network.play.server.S27PacketExplosion.func_149149_c方法的典型用法代码示例。如果您正苦于以下问题:Java S27PacketExplosion.func_149149_c方法的具体用法?Java S27PacketExplosion.func_149149_c怎么用?Java S27PacketExplosion.func_149149_c使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.network.play.server.S27PacketExplosion的用法示例。


在下文中一共展示了S27PacketExplosion.func_149149_c方法的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();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:NetHandlerPlayClient.java

示例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();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:14,代码来源:NetHandlerPlayClient.java

示例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();
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:NetHandlerPlayClient.java

示例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();
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:10,代码来源:NetHandlerPlayClient.java


注:本文中的net.minecraft.network.play.server.S27PacketExplosion.func_149149_c方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。