当前位置: 首页>>代码示例>>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;未经允许,请勿转载。