SPIGOT-6992: Add LimitedLife/LifeTicks/Bound APIs to Vex

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2022-04-21 06:45:42 +10:00
parent 94eb19b9fc
commit ed0354be30
2 changed files with 48 additions and 0 deletions

View File

@@ -1,5 +1,16 @@
--- a/net/minecraft/world/entity/monster/EntityVex.java
+++ b/net/minecraft/world/entity/monster/EntityVex.java
@@ -49,8 +49,8 @@
EntityInsentient owner;
@Nullable
private BlockPosition boundOrigin;
- private boolean hasLimitedLife;
- private int limitedLifeTicks;
+ public boolean hasLimitedLife; // CraftBukkit - PAIL, private -> public
+ public int limitedLifeTicks; // CraftBukkit - PAIL, private -> public
public EntityVex(EntityTypes<? extends EntityVex> entitytypes, World world) {
super(entitytypes, world);
@@ -368,7 +368,7 @@
@Override