This commit is contained in:
LZX committed 2026-08-27 14:15:50 +08:00
1 parent 0a00e06d9c
commit 1c12de5c45
17 files changed
+4 -17

No files matched your search

@@ -59,7 +59,7 @@ public class LzxnoneTerrariaClient {
event.registerSpriteSet(ModParticles.ZENITH_TRAIL_PARTICLE.get(), ZenithTrailParticle.Provider::new); event.registerSpriteSet(ModParticles.ZENITH_TRAIL_PARTICLE.get(), ZenithTrailParticle.Provider::new);
}); });
modEventBus.addListener(RegisterParticleProvidersEvent.class, event -> { modEventBus.addListener(RegisterParticleProvidersEvent.class, event -> {
event.registerSpriteSet(ModParticles.IRON_SPARK_PARTICLE.get(), IronSparkParticle.Provider::new); event.registerSpecial(ModParticles.IRON_SPARK_PARTICLE.get(), new IronSparkParticle.Provider());
}); });
modEventBus.addListener(RegisterParticleProvidersEvent.class, event -> { modEventBus.addListener(RegisterParticleProvidersEvent.class, event -> {
event.registerSpriteSet(ModParticles.CIRCLE_PARTICLE.get(), CircleParticle.Provider::new); event.registerSpriteSet(ModParticles.CIRCLE_PARTICLE.get(), CircleParticle.Provider::new);
@@ -16,7 +16,7 @@ public class IronSparkParticle extends TextureSheetParticle {
protected IronSparkParticle(ClientLevel level, double x, double y, double z, protected IronSparkParticle(ClientLevel level, double x, double y, double z,
double xSpeed, double ySpeed, double zSpeed, double xSpeed, double ySpeed, double zSpeed,
IronSparkParticleOptions options, SpriteSet spriteSet) { IronSparkParticleOptions options) {
super(level, x, y, z, xSpeed, ySpeed, zSpeed); super(level, x, y, z, xSpeed, ySpeed, zSpeed);
this.hasPhysics = false; this.hasPhysics = false;
@@ -40,8 +40,6 @@ public class IronSparkParticle extends TextureSheetParticle {
this.xd = velocity.x; this.xd = velocity.x;
this.yd = velocity.y; this.yd = velocity.y;
this.zd = velocity.z; this.zd = velocity.z;
this.pickSprite(spriteSet);
} }
@Override @Override
@@ -114,17 +112,11 @@ public class IronSparkParticle extends TextureSheetParticle {
} }
public static class Provider implements ParticleProvider<IronSparkParticleOptions> { public static class Provider implements ParticleProvider<IronSparkParticleOptions> {
private final SpriteSet spriteSet;
public Provider(SpriteSet spriteSet) {
this.spriteSet = spriteSet;
}
@Override @Override
public Particle createParticle(IronSparkParticleOptions type, ClientLevel level, public Particle createParticle(IronSparkParticleOptions type, ClientLevel level,
double x, double y, double z, double x, double y, double z,
double xSpeed, double ySpeed, double zSpeed) { double xSpeed, double ySpeed, double zSpeed) {
return new IronSparkParticle(level, x, y, z, xSpeed, ySpeed, zSpeed, type, this.spriteSet); return new IronSparkParticle(level, x, y, z, xSpeed, ySpeed, zSpeed, type);
} }
} }
} }
@@ -143,7 +143,7 @@ public class ZenithTrailParticle extends TextureSheetParticle {
@Override @Override
public ParticleRenderType getRenderType() { public ParticleRenderType getRenderType() {
return ParticleRenderType.PARTICLE_SHEET_OPAQUE; return ModParticleRenderTypes.EMISSIVE_BLOOM_PARTICLE;
} }
public static class Provider implements ParticleProvider<ZenithTrailParticleOptions> { public static class Provider implements ParticleProvider<ZenithTrailParticleOptions> {
@@ -1,5 +0,0 @@
{
"textures": [
"lzxnoneterraria:iron_spark_particle"
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 250 B