當前位置: 首頁>>代碼示例>>Java>>正文


Java EnumParticleTypes.SMOKE_NORMAL屬性代碼示例

本文整理匯總了Java中net.minecraft.util.EnumParticleTypes.SMOKE_NORMAL屬性的典型用法代碼示例。如果您正苦於以下問題:Java EnumParticleTypes.SMOKE_NORMAL屬性的具體用法?Java EnumParticleTypes.SMOKE_NORMAL怎麽用?Java EnumParticleTypes.SMOKE_NORMAL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在net.minecraft.util.EnumParticleTypes的用法示例。


在下文中一共展示了EnumParticleTypes.SMOKE_NORMAL屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: playTameEffect

/**
 * Play the taming effect, will either be hearts or smoke depending on status
 */
protected void playTameEffect(boolean play)
{
    EnumParticleTypes enumparticletypes = EnumParticleTypes.HEART;

    if (!play)
    {
        enumparticletypes = EnumParticleTypes.SMOKE_NORMAL;
    }

    for (int i = 0; i < 7; ++i)
    {
        double d0 = this.rand.nextGaussian() * 0.02D;
        double d1 = this.rand.nextGaussian() * 0.02D;
        double d2 = this.rand.nextGaussian() * 0.02D;
        this.worldObj.spawnParticle(enumparticletypes, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2, new int[0]);
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:20,代碼來源:EntityTameable.java

示例2: playTameEffect

/**
 * Play the taming effect, will either be hearts or smoke depending on status
 */
protected void playTameEffect(boolean play)
{
    EnumParticleTypes enumparticletypes = EnumParticleTypes.HEART;

    if (!play)
    {
        enumparticletypes = EnumParticleTypes.SMOKE_NORMAL;
    }

    for (int i = 0; i < 7; ++i)
    {
        double d0 = this.rand.nextGaussian() * 0.02D;
        double d1 = this.rand.nextGaussian() * 0.02D;
        double d2 = this.rand.nextGaussian() * 0.02D;
        this.world.spawnParticle(enumparticletypes, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2, new int[0]);
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:20,代碼來源:EntityTameable.java

示例3: spawnHorseParticles

/**
 * "Spawns particles for the horse entity. par1 tells whether to spawn hearts. If it is false, it spawns smoke."
 */
protected void spawnHorseParticles(boolean p_110216_1_)
{
    EnumParticleTypes enumparticletypes = p_110216_1_ ? EnumParticleTypes.HEART : EnumParticleTypes.SMOKE_NORMAL;

    for (int i = 0; i < 7; ++i)
    {
        double d0 = this.rand.nextGaussian() * 0.02D;
        double d1 = this.rand.nextGaussian() * 0.02D;
        double d2 = this.rand.nextGaussian() * 0.02D;
        this.worldObj.spawnParticle(enumparticletypes, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2, new int[0]);
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:15,代碼來源:EntityHorse.java

示例4: playTameEffect

protected void playTameEffect(boolean play) {
	EnumParticleTypes enumparticletypes = EnumParticleTypes.HEART;

	if (!play) {
		enumparticletypes = EnumParticleTypes.SMOKE_NORMAL;
	}

	for (int i = 0; i < 7; ++i) {
		double d0 = rand.nextGaussian() * 0.02D;
		double d1 = rand.nextGaussian() * 0.02D;
		double d2 = rand.nextGaussian() * 0.02D;
		EasyMappings.world(this).spawnParticle(enumparticletypes, posX + rand.nextFloat() * width * 2.0F - width, posY + 0.5D + rand.nextFloat() * height, posZ + rand.nextFloat() * width * 2.0F - width, d0, d1, d2, new int[0]);
	}
}
 
開發者ID:p455w0rd,項目名稱:EndermanEvolution,代碼行數:14,代碼來源:EntityFrienderman.java

示例5: spawnHorseParticles

/**
 * "Spawns particles for the horse entity. par1 tells whether to spawn hearts. If it is false, it spawns smoke."
 */
protected void spawnHorseParticles(boolean p_110216_1_)
{
    EnumParticleTypes enumparticletypes = p_110216_1_ ? EnumParticleTypes.HEART : EnumParticleTypes.SMOKE_NORMAL;

    for (int i = 0; i < 7; ++i)
    {
        double d0 = this.rand.nextGaussian() * 0.02D;
        double d1 = this.rand.nextGaussian() * 0.02D;
        double d2 = this.rand.nextGaussian() * 0.02D;
        this.world.spawnParticle(enumparticletypes, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2, new int[0]);
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:15,代碼來源:AbstractHorse.java

示例6: spawnHorseParticles

/**
 * "Spawns particles for the horse entity. par1 tells whether to spawn hearts. If it is false, it spawns smoke."
 */
@SideOnly(Side.CLIENT)
protected void spawnHorseParticles(boolean p_110216_1_)
{
    EnumParticleTypes enumparticletypes = p_110216_1_ ? EnumParticleTypes.HEART : EnumParticleTypes.SMOKE_NORMAL;

    for (int i = 0; i < 7; ++i)
    {
        double d0 = this.rand.nextGaussian() * 0.02D;
        double d1 = this.rand.nextGaussian() * 0.02D;
        double d2 = this.rand.nextGaussian() * 0.02D;
        this.worldObj.spawnParticle(enumparticletypes, this.posX + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, this.posY + 0.5D + (double)(this.rand.nextFloat() * this.height), this.posZ + (double)(this.rand.nextFloat() * this.width * 2.0F) - (double)this.width, d0, d1, d2, new int[0]);
    }
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:16,代碼來源:EntityHorse.java

示例7: getParticleType

protected EnumParticleTypes getParticleType()
{
    return EnumParticleTypes.SMOKE_NORMAL;
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:4,代碼來源:EntityFireball.java


注:本文中的net.minecraft.util.EnumParticleTypes.SMOKE_NORMAL屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。