Implemented getRenderType.
This commit is contained in:
@ -3,6 +3,7 @@ package dev.micle.firefly_bush_backport.particle;
|
|||||||
import net.minecraft.client.multiplayer.ClientLevel;
|
import net.minecraft.client.multiplayer.ClientLevel;
|
||||||
import net.minecraft.client.particle.ParticleRenderType;
|
import net.minecraft.client.particle.ParticleRenderType;
|
||||||
import net.minecraft.client.particle.TextureSheetParticle;
|
import net.minecraft.client.particle.TextureSheetParticle;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class FireflyParticle extends TextureSheetParticle {
|
public class FireflyParticle extends TextureSheetParticle {
|
||||||
private static final float PARTICLE_FADE_OUT_LIGHT_TIME = 0.3F;
|
private static final float PARTICLE_FADE_OUT_LIGHT_TIME = 0.3F;
|
||||||
@ -23,7 +24,7 @@ public class FireflyParticle extends TextureSheetParticle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ParticleRenderType getRenderType() {
|
public @NotNull ParticleRenderType getRenderType() {
|
||||||
return null;
|
return ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user