本文整理汇总了Java中net.minecraft.client.particle.EntityReddustFX类的典型用法代码示例。如果您正苦于以下问题:Java EntityReddustFX类的具体用法?Java EntityReddustFX怎么用?Java EntityReddustFX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityReddustFX类属于net.minecraft.client.particle包,在下文中一共展示了EntityReddustFX类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doParticle
import net.minecraft.client.particle.EntityReddustFX; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
private void doParticle()
{
Pos3D pos = new Pos3D(posX + (rand.nextFloat()*.6 - 0.3), posY - 0.8 + (rand.nextFloat()*.6 - 0.3), posZ + (rand.nextFloat()*.6 - 0.3));
EntityFX fx = new EntityReddustFX(worldObj, pos.xPos, pos.yPos, pos.zPos, 1, 0, 0, 0);
fx.setRBGColorF(color.getColor(0), color.getColor(1), color.getColor(2));
Minecraft.getMinecraft().effectRenderer.addEffect(fx);
}
示例2: glowRandomDisplayTick
import net.minecraft.client.particle.EntityReddustFX; //导入依赖的package包/类
@Override
public void glowRandomDisplayTick(World world, int x, int y, int z, Random rand) {
FarragoMod.GLOW.setBlockBoundsBasedOnState(world, x, y, z);
float x1 = (float) FarragoMod.GLOW.getBlockBoundsMinX();
float y1 = (float) FarragoMod.GLOW.getBlockBoundsMinY();
float z1 = (float) FarragoMod.GLOW.getBlockBoundsMinZ();
float x2 = (float) FarragoMod.GLOW.getBlockBoundsMaxX();
float y2 = (float) FarragoMod.GLOW.getBlockBoundsMaxY();
float z2 = (float) FarragoMod.GLOW.getBlockBoundsMaxZ();
for (int i = 0; i < rand.nextInt(10)+5; i++) {
Minecraft.getMinecraft().effectRenderer.addEffect(new EntityReddustFX(world, x+(x1+(rand.nextFloat()*(x2-x1))),
y+(y1+(rand.nextFloat()*(y2-y1))), z+(z1+(rand.nextFloat()*(z2-z1))), 0.6f, 1.0f, 1.0f, 0.0f));
}
}