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


Java EntityWitherSkull.setInvulnerable方法代码示例

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


在下文中一共展示了EntityWitherSkull.setInvulnerable方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: launchWitherSkullToCoords

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
/**
 * Launches a Wither skull toward (par2, par4, par6)
 */
private void launchWitherSkullToCoords(int p_82209_1_, double x, double y, double z, boolean invulnerable)
{
    this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1014, new BlockPos(this), 0);
    double d0 = this.func_82214_u(p_82209_1_);
    double d1 = this.func_82208_v(p_82209_1_);
    double d2 = this.func_82213_w(p_82209_1_);
    double d3 = x - d0;
    double d4 = y - d1;
    double d5 = z - d2;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.worldObj, this, d3, d4, d5);

    if (invulnerable)
    {
        entitywitherskull.setInvulnerable(true);
    }

    entitywitherskull.posY = d1;
    entitywitherskull.posX = d0;
    entitywitherskull.posZ = d2;
    this.worldObj.spawnEntityInWorld(entitywitherskull);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:25,代码来源:EntityWither.java

示例2: launchWitherSkullToCoords

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
/**
 * Launches a Wither skull toward (par2, par4, par6)
 */
private void launchWitherSkullToCoords(int p_82209_1_, double x, double y, double z, boolean invulnerable)
{
    this.world.playEvent((EntityPlayer)null, 1024, new BlockPos(this), 0);
    double d0 = this.getHeadX(p_82209_1_);
    double d1 = this.getHeadY(p_82209_1_);
    double d2 = this.getHeadZ(p_82209_1_);
    double d3 = x - d0;
    double d4 = y - d1;
    double d5 = z - d2;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.world, this, d3, d4, d5);

    if (invulnerable)
    {
        entitywitherskull.setInvulnerable(true);
    }

    entitywitherskull.posY = d1;
    entitywitherskull.posX = d0;
    entitywitherskull.posZ = d2;
    this.world.spawnEntityInWorld(entitywitherskull);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:25,代码来源:EntityWither.java

示例3: launchWitherSkullToCoords

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
/**
 * Launches a Wither skull toward (par2, par4, par6)
 */
private void launchWitherSkullToCoords(int p_82209_1_, double x, double y, double z, boolean invulnerable)
{
    this.worldObj.playEvent((EntityPlayer)null, 1024, new BlockPos(this), 0);
    double d0 = this.getHeadX(p_82209_1_);
    double d1 = this.getHeadY(p_82209_1_);
    double d2 = this.getHeadZ(p_82209_1_);
    double d3 = x - d0;
    double d4 = y - d1;
    double d5 = z - d2;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.worldObj, this, d3, d4, d5);

    if (invulnerable)
    {
        entitywitherskull.setInvulnerable(true);
    }

    entitywitherskull.posY = d1;
    entitywitherskull.posX = d0;
    entitywitherskull.posZ = d2;
    this.worldObj.spawnEntityInWorld(entitywitherskull);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:25,代码来源:EntityWither.java

示例4: func_82209_a

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
private void func_82209_a(int par1, double par2, double par4, double par6, boolean par8)
{
    this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1014, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
    double var9 = this.func_82214_u(par1);
    double var11 = this.func_82208_v(par1);
    double var13 = this.func_82213_w(par1);
    double var15 = par2 - var9;
    double var17 = par4 - var11;
    double var19 = par6 - var13;
    EntityWitherSkull var21 = new EntityWitherSkull(this.worldObj, this, var15, var17, var19);

    if (par8)
    {
        var21.setInvulnerable(true);
    }

    var21.posY = var11;
    var21.posX = var9;
    var21.posZ = var13;
    this.worldObj.spawnEntityInWorld(var21);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:22,代码来源:EntityWither.java

示例5: func_82209_a

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
private void func_82209_a(int par1, double par2, double par4, double par6, boolean par8) {
	world.playEvent((EntityPlayer)null, 1014, new BlockPos(posX, posY, posZ), 0);
	double d3 = func_82214_u(par1);
	double d4 = func_82208_v(par1);
	double d5 = func_82213_w(par1);
	double d6 = par2 - d3;
	double d7 = par4 - d4;
	double d8 = par6 - d5;
	EntityWitherSkull entitywitherskull = new EntityWitherSkull(world, this, d6, d7, d8);
	if (par8)
		entitywitherskull.setInvulnerable(true);
	entitywitherskull.posY = d4;
	entitywitherskull.posX = d3;
	entitywitherskull.posZ = d5;
	world.spawnEntity(entitywitherskull);
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:17,代码来源:EntityJzahar.java

示例6: func_82209_a

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
private void func_82209_a(int p_82209_1_, double p_82209_2_, double p_82209_4_, double p_82209_6_, boolean p_82209_8_)
{
    this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1014, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
    double d3 = this.func_82214_u(p_82209_1_);
    double d4 = this.func_82208_v(p_82209_1_);
    double d5 = this.func_82213_w(p_82209_1_);
    double d6 = p_82209_2_ - d3;
    double d7 = p_82209_4_ - d4;
    double d8 = p_82209_6_ - d5;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.worldObj, this, d6, d7, d8);

    if (p_82209_8_)
    {
        entitywitherskull.setInvulnerable(true);
    }

    entitywitherskull.posY = d4;
    entitywitherskull.posX = d3;
    entitywitherskull.posZ = d5;
    this.worldObj.spawnEntityInWorld(entitywitherskull);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:22,代码来源:EntityWither.java

示例7: func_82209_a

import net.minecraft.entity.projectile.EntityWitherSkull; //导入方法依赖的package包/类
private void func_82209_a(int par1, double par2, double par4, double par6, boolean par8)
{
    this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1014, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
    double d3 = this.func_82214_u(par1);
    double d4 = this.func_82208_v(par1);
    double d5 = this.func_82213_w(par1);
    double d6 = par2 - d3;
    double d7 = par4 - d4;
    double d8 = par6 - d5;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.worldObj, this, d6, d7, d8);

    if (par8)
    {
        entitywitherskull.setInvulnerable(true);
    }

    entitywitherskull.posY = d4;
    entitywitherskull.posX = d3;
    entitywitherskull.posZ = d5;
    this.worldObj.spawnEntityInWorld(entitywitherskull);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:22,代码来源:EntityWither.java


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