v1.8.2
No files matched your search
@@ -59,7 +59,7 @@ public class LzxnoneTerrariaClient {
|
||||
event.registerSpriteSet(ModParticles.ZENITH_TRAIL_PARTICLE.get(), ZenithTrailParticle.Provider::new);
|
||||
});
|
||||
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 -> {
|
||||
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,
|
||||
double xSpeed, double ySpeed, double zSpeed,
|
||||
IronSparkParticleOptions options, SpriteSet spriteSet) {
|
||||
IronSparkParticleOptions options) {
|
||||
super(level, x, y, z, xSpeed, ySpeed, zSpeed);
|
||||
this.hasPhysics = false;
|
||||
|
||||
@@ -40,8 +40,6 @@ public class IronSparkParticle extends TextureSheetParticle {
|
||||
this.xd = velocity.x;
|
||||
this.yd = velocity.y;
|
||||
this.zd = velocity.z;
|
||||
|
||||
this.pickSprite(spriteSet);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -114,17 +112,11 @@ public class IronSparkParticle extends TextureSheetParticle {
|
||||
}
|
||||
|
||||
public static class Provider implements ParticleProvider<IronSparkParticleOptions> {
|
||||
private final SpriteSet spriteSet;
|
||||
|
||||
public Provider(SpriteSet spriteSet) {
|
||||
this.spriteSet = spriteSet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Particle createParticle(IronSparkParticleOptions type, ClientLevel level,
|
||||
double x, double y, double z,
|
||||
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
|
||||
public ParticleRenderType getRenderType() {
|
||||
return ParticleRenderType.PARTICLE_SHEET_OPAQUE;
|
||||
return ModParticleRenderTypes.EMISSIVE_BLOOM_PARTICLE;
|
||||
}
|
||||
|
||||
public static class Provider implements ParticleProvider<ZenithTrailParticleOptions> {
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"textures": [
|
||||
"lzxnoneterraria:iron_spark_particle"
|
||||
]
|
||||
}
|
||||
|
Before Width: | Height: | Size: 236 B |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 143 B |
|
Before Width: | Height: | Size: 249 B |
|
Before Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 311 B |
|
Before Width: | Height: | Size: 250 B |