mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
Finish migrate to vanilla particle sys
This commit is contained in:
1 parent
f0993c20a4
commit
b4e0a076e7
74 files changed
+455
-475
No files matched your search
@@ -72,7 +72,7 @@ import vazkii.botania.api.lexicon.multiblock.MultiblockSet;
|
||||
import vazkii.botania.api.lexicon.multiblock.component.MultiblockComponent;
|
||||
import vazkii.botania.client.core.handler.BossBarHandler;
|
||||
import vazkii.botania.client.core.helper.ShaderHelper;
|
||||
import vazkii.botania.client.fx.ParticleData;
|
||||
import vazkii.botania.client.fx.WispParticleData;
|
||||
import vazkii.botania.common.Botania;
|
||||
import vazkii.botania.common.advancements.DopplegangerNoArmorTrigger;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
@@ -299,7 +299,7 @@ public class EntityDoppleganger extends MobEntity implements IBotaniaBoss, IEnti
|
||||
}
|
||||
|
||||
private static void warnInvalidBlocks(World world, Iterable<BlockPos> invalidPositions) {
|
||||
ParticleData data = ParticleData.wisp(0.5F, 1, 0.2F, 0.2F, 8, false);
|
||||
WispParticleData data = WispParticleData.wisp(0.5F, 1, 0.2F, 0.2F, 8, false);
|
||||
for(BlockPos pos_ : invalidPositions) {
|
||||
world.addParticle(data, pos_.getX() + 0.5, pos_.getY() + 0.5, pos_.getZ() + 0.5, 0, 0, 0);
|
||||
}
|
||||
@@ -532,7 +532,7 @@ public class EntityDoppleganger extends MobEntity implements IBotaniaBoss, IEnti
|
||||
double y = source.getY() + 0.5;
|
||||
double z = source.getZ() + 0.5 - Math.sin(rad) * ARENA_RANGE;
|
||||
|
||||
ParticleData data = ParticleData.wisp(0.5F, r, g, b);
|
||||
WispParticleData data = WispParticleData.wisp(0.5F, r, g, b);
|
||||
world.addParticle(data, x, y, z, (float) (Math.random() - 0.5F) * m, (float) (Math.random() - 0.5F) * mv, (float) (Math.random() - 0.5F) * m);
|
||||
}
|
||||
|
||||
@@ -554,9 +554,9 @@ public class EntityDoppleganger extends MobEntity implements IBotaniaBoss, IEnti
|
||||
float g = (float) Math.random() * 0.3F;
|
||||
float b = 0.7F + (float) Math.random() * 0.3F;
|
||||
|
||||
ParticleData data = ParticleData.wisp(0.25F + (float) Math.random() * 0.1F, r, g, b, 1);
|
||||
WispParticleData data = WispParticleData.wisp(0.25F + (float) Math.random() * 0.1F, r, g, b, 1);
|
||||
world.addParticle(data, partPos.x, partPos.y, partPos.z, 0, -(-0.075F - (float) Math.random() * 0.015F), 0);
|
||||
ParticleData data1 = ParticleData.wisp(0.4F, r, g, b);
|
||||
WispParticleData data1 = WispParticleData.wisp(0.4F, r, g, b);
|
||||
world.addParticle(data1, partPos.x, partPos.y, partPos.z, (float) mot.x, (float) mot.y, (float) mot.z);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user