本文整理汇总了Java中net.minecraft.client.particle.EntityFlameFX类的典型用法代码示例。如果您正苦于以下问题:Java EntityFlameFX类的具体用法?Java EntityFlameFX怎么用?Java EntityFlameFX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityFlameFX类属于net.minecraft.client.particle包,在下文中一共展示了EntityFlameFX类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doTheThing
import net.minecraft.client.particle.EntityFlameFX; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
private void doTheThing(double x, double y, double z, double radius, int xzquality, int rarity, int element){
Random r = new Random();
for(int t = 0; t < 360; t++){
if((t % xzquality == 0) && (r.nextInt(rarity) == 0)){
double spawnX = x + (radius * Math.cos(Math.toRadians(t)));
double spawnY = y;
double spawnZ = z + (radius * Math.sin(Math.toRadians(t)));
if(element == 0){
if(r.nextInt(2) == 0){
Minecraft.getMinecraft().effectRenderer.addEffect(new EntityCloudFX(Minecraft.getMinecraft().theWorld, spawnX, spawnY, spawnZ, 0, 0, 0));
}
else{
Minecraft.getMinecraft().effectRenderer.addEffect(new EntitySmokeFX(Minecraft.getMinecraft().theWorld, spawnX, spawnY, spawnZ, 0, 0, 0));
}
}
if(element == 1){
if(r.nextInt(7) == 0){
Minecraft.getMinecraft().effectRenderer.addEffect(new EntityAvatarBubbleFX(Minecraft.getMinecraft().theWorld, spawnX, spawnY, spawnZ, 0, 0, 0));
}
else{
Minecraft.getMinecraft().effectRenderer.addEffect(new EntitySplashFX(Minecraft.getMinecraft().theWorld, spawnX, spawnY, spawnZ, 0, 0, 0));
}
}
if(element == 2) Minecraft.getMinecraft().effectRenderer.addEffect(new EntityFlameFX(Minecraft.getMinecraft().theWorld, spawnX, spawnY, spawnZ, 0, 0, 0));
}
}
}