mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
22 lines
790 B
Diff
22 lines
790 B
Diff
--- a/net/minecraft/client/particle/Particle.java
|
|
+++ b/net/minecraft/client/particle/Particle.java
|
|
@@ -248,6 +_,18 @@
|
|
return Optional.empty();
|
|
}
|
|
|
|
+ /**
|
|
+ * Forge added method that controls if a particle should be culled to it's bounding box.
|
|
+ * Default behaviour is culling enabled
|
|
+ */
|
|
+ public boolean shouldCull() {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
+ public net.minecraft.world.phys.Vec3 getPos() {
|
|
+ return new net.minecraft.world.phys.Vec3(this.x, this.y, this.z);
|
|
+ }
|
|
+
|
|
@OnlyIn(Dist.CLIENT)
|
|
public record LifetimeAlpha(float startAlpha, float endAlpha, float startAtNormalizedAge, float endAtNormalizedAge) {
|
|
public static final Particle.LifetimeAlpha ALWAYS_OPAQUE = new Particle.LifetimeAlpha(1.0F, 1.0F, 0.0F, 1.0F);
|