#1267: Add more lightning API

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot
2023-10-03 07:32:55 +11:00
parent 4556ae0f4b
commit 851acb6496
2 changed files with 38 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/world/entity/EntityLightning.java
+++ b/net/minecraft/world/entity/EntityLightning.java
@@ -29,6 +29,10 @@
@@ -29,14 +29,18 @@
import net.minecraft.world.phys.AxisAlignedBB;
import net.minecraft.world.phys.Vec3D;
@@ -11,6 +11,16 @@
public class EntityLightning extends Entity {
private static final int START_LIFE = 2;
private static final double DAMAGE_RADIUS = 3.0D;
private static final double DETECTION_RADIUS = 15.0D;
- private int life;
+ public int life; // PAIL private -> public
public long seed;
- private int flashes;
+ public int flashes; // PAIL private -> public
public boolean visualOnly;
@Nullable
private EntityPlayer cause;
@@ -129,7 +133,7 @@
}
}