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


Java EntityFX類代碼示例

本文整理匯總了Java中net.minecraft.client.particle.EntityFX的典型用法代碼示例。如果您正苦於以下問題:Java EntityFX類的具體用法?Java EntityFX怎麽用?Java EntityFX使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: updateReddustFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
    if (redstoneColors != null)
    {
        IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
        int i = getRedstoneLevel(iblockstate, 15);
        int j = redstoneColors.getColor(i);
        int k = j >> 16 & 255;
        int l = j >> 8 & 255;
        int i1 = j & 255;
        float f = (float)k / 255.0F;
        float f1 = (float)l / 255.0F;
        float f2 = (float)i1 / 255.0F;
        p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:17,代碼來源:CustomColors.java

示例2: updateReddustFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
    if (redstoneColors != null)
    {
        IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
        int i = getRedstoneLevel(iblockstate, 15);
        int j = getRedstoneColor(i);

        if (j != -1)
        {
            int k = j >> 16 & 255;
            int l = j >> 8 & 255;
            int i1 = j & 255;
            float f = (float)k / 255.0F;
            float f1 = (float)l / 255.0F;
            float f2 = (float)i1 / 255.0F;
            p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
        }
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:21,代碼來源:CustomColorizer.java

示例3: updateWaterFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
    if (waterColors != null)
    {
        int i = getFluidColor(Blocks.water, p_updateWaterFX_1_, new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_));
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;

        if (particleWaterColor >= 0)
        {
            int i1 = particleWaterColor >> 16 & 255;
            int j1 = particleWaterColor >> 8 & 255;
            int k1 = particleWaterColor & 255;
            f *= (float)i1 / 255.0F;
            f1 *= (float)j1 / 255.0F;
            f2 *= (float)k1 / 255.0F;
        }

        p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:26,代碼來源:CustomColorizer.java

示例4: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityFX particles;
	float a;
	float b;
	float c;
	
	world = Minecraft.getMinecraft().theWorld;
	for (int i = 0; i < 50; i++)
       {
		for (int j = 0; j < 50; j++)
        {
			world.spawnParticle("flame", x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0);
			if (world.rand.nextInt(2) == 0)
				world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:20,代碼來源:Wildswing_1.java

示例5: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityFX particles;
	float a;
	float b;
	float c;
	float rayon;
	
	b = 0;
	world = Minecraft.getMinecraft().theWorld;
	for (int pi = 0; pi < 360; pi++)
       {
		for (int longueur = 0; longueur < 10; longueur++)
		{
			rayon = 1 + longueur / 5.0f;
			a = rayon * MathHelper.cos(pi);
			c = rayon * MathHelper.sin(pi);

    		world.spawnParticle("flame", x, y, z, a / 16.0f, (b + 10 - longueur) / 16.0f, c / 16.0f);
		}
       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:24,代碼來源:Rendweapon.java

示例6: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityPlayer player;
	EntityFX particles;
	float a;
	float c;
	world = Minecraft.getMinecraft().theWorld;
   	player = Minecraft.getMinecraft().thePlayer;
	for (int i = 0; i < 250; i++)
       {
		a = world.rand.nextFloat() / 20.0f;
		c = world.rand.nextFloat() / 20.0f;
		if (world.rand.nextInt(2) == 0)
			a = - a;
		if (world.rand.nextInt(2) == 0)
			c = - c;
   		world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, -0.25f, c * 5);
   		world.spawnParticle("fireworksSpark", x, y + 1, z, a * 5, 0.25f, c * 5);
   		world.spawnParticle("fireworksSpark", x, y + 1, z, a, -0.25f, c);
   		world.spawnParticle("fireworksSpark", x, y - 1, z, a, 0.25f, c);
       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:24,代碼來源:Heal_2.java

示例7: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityPlayer player;
	EntityFX particles;
	float a;
	float b;
	float c;

	world = Minecraft.getMinecraft().theWorld;
	player = Minecraft.getMinecraft().thePlayer;
	a = 0;
	for (int i = 0; i < 200; i++)
	{
		a = MathHelper.cos(i) / 4.0f;
		b = (float) Math.tan(i);
		c = MathHelper.sin(i) / 2.0f;
		
   		world.spawnParticle("fireworksSpark", x, y, z, 0, b, c);
   		world.spawnParticle("fireworksSpark", x, y, z, a, b, 0);

       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:24,代碼來源:HolyExplosion_7.java

示例8: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityFX particles;
	float a;
	float b;
	float c;
	
	world = Minecraft.getMinecraft().theWorld;
	for (int i = 0; i < 50; i++)
       {
		for (int j = 0; j < 50; j++)
        {
    		particles = new EntityFX_Colored(world,x - 25 + i, y - 2, z - 25 + j, 0, 0.2f, 0, 1.0f, 0.5f, 5.0f, 0.0f);
    		Minecraft.getMinecraft().effectRenderer.addEffect(particles);

    		if (world.rand.nextInt(2) == 0)
				world.spawnParticle("smoke", x - 25 + i, y - 1, z - 25 + j, 0, 0.2f, 0);
        }
       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:22,代碼來源:Necromancy_6.java

示例9: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityPlayer player;
	EntityFX particles;
	double x1;
	double y1;
	double z1;
	float a;
	float c;
	
	world = Minecraft.getMinecraft().theWorld;
   	player = Minecraft.getMinecraft().thePlayer;
	for (int i = 0; i < 100; i++)
       {
		x1 = (world.rand.nextInt(2) == 0) ? x + 3 : x - 3;
		y1 = y + world.rand.nextInt(3);
		z1 = (world.rand.nextInt(2) == 0) ? z + 3 : z - 3;

		a = (float) (x - x1) / 3;
		c = (float) (z - z1) / 3;
		
		particles = new EntityFX_Colored(world, x1, y1, z1, a, 0.1f, c, 2.0f, 1, 1, 1);
   		Minecraft.getMinecraft().effectRenderer.addEffect(particles);
       }
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:27,代碼來源:Grab_4.java

示例10: playEffect

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void playEffect(double x, double y, double z)
{
	World world;
	EntityFX particles;
	float a;
	float b;
	float c;
	int rayon;
	
	
	world = Minecraft.getMinecraft().theWorld;
	rayon = 12;
	for (int teta = 0; teta < 360; teta++)
	{
		for (float hauteur = 0; hauteur < 12; hauteur += 0.5f)
		{
			a = rayon * MathHelper.cos(teta);
			b = hauteur;
			c = rayon * MathHelper.sin(teta);
			
			world.spawnParticle("fireworksSpark", x + a - 1, y + b - 4, z + c - 1, 0, 0, 0);
			particles = new EntityFX_Colored(world, x + a, y + b - 2, z + c, 0, 0, 0, 2.0f, 1.5f, 1.5f, 0.0f);
			Minecraft.getMinecraft().effectRenderer.addEffect(particles);
		}
	}
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:27,代碼來源:Arena_6.java

示例11: spawnEntityFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
private EntityFX spawnEntityFX(int p_174974_1_, boolean ignoreRange, double p_174974_3_, double p_174974_5_, double p_174974_7_, double p_174974_9_, double p_174974_11_, double p_174974_13_, int... p_174974_15_)
{
    if (this.mc != null && this.mc.getRenderViewEntity() != null && this.mc.effectRenderer != null)
    {
        int i = this.mc.gameSettings.particleSetting;

        if (i == 1 && this.theWorld.rand.nextInt(3) == 0)
        {
            i = 2;
        }

        double d0 = this.mc.getRenderViewEntity().posX - p_174974_3_;
        double d1 = this.mc.getRenderViewEntity().posY - p_174974_5_;
        double d2 = this.mc.getRenderViewEntity().posZ - p_174974_7_;

        if (ignoreRange)
        {
            return this.mc.effectRenderer.spawnEffectParticle(p_174974_1_, p_174974_3_, p_174974_5_, p_174974_7_, p_174974_9_, p_174974_11_, p_174974_13_, p_174974_15_);
        }
        else
        {
            double d3 = 16.0D;
            return d0 * d0 + d1 * d1 + d2 * d2 > 256.0D ? null : (i > 1 ? null : this.mc.effectRenderer.spawnEffectParticle(p_174974_1_, p_174974_3_, p_174974_5_, p_174974_7_, p_174974_9_, p_174974_11_, p_174974_13_, p_174974_15_));
        }
    }
    else
    {
        return null;
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:31,代碼來源:RenderGlobal.java

示例12: updatePortalFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updatePortalFX(EntityFX p_updatePortalFX_0_)
{
    if (particlePortalColor >= 0)
    {
        int i = particlePortalColor;
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;
        p_updatePortalFX_0_.setRBGColorF(f, f1, f2);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:15,代碼來源:CustomColors.java

示例13: updateMyceliumFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updateMyceliumFX(EntityFX p_updateMyceliumFX_0_)
{
    if (myceliumParticleColors != null)
    {
        int i = myceliumParticleColors.getColorRandom();
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;
        p_updateMyceliumFX_0_.setRBGColorF(f, f1, f2);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:15,代碼來源:CustomColors.java

示例14: updateWaterFX

import net.minecraft.client.particle.EntityFX; //導入依賴的package包/類
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
    if (waterColors != null || blockColormaps != null)
    {
        BlockPos blockpos = new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_);
        RenderEnv renderenv = RenderEnv.getInstance(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos);
        int i = getFluidColor(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos, renderenv);
        int j = i >> 16 & 255;
        int k = i >> 8 & 255;
        int l = i & 255;
        float f = (float)j / 255.0F;
        float f1 = (float)k / 255.0F;
        float f2 = (float)l / 255.0F;

        if (particleWaterColor >= 0)
        {
            int i1 = particleWaterColor >> 16 & 255;
            int j1 = particleWaterColor >> 8 & 255;
            int k1 = particleWaterColor & 255;
            f *= (float)i1 / 255.0F;
            f1 *= (float)j1 / 255.0F;
            f2 *= (float)k1 / 255.0F;
        }

        p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
    }
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:28,代碼來源:CustomColors.java


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