[ci skip] Fix annotation fields used in NMS getBukkitEntity (#12120)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
private int value;
|
||||
private int max = 100;
|
||||
+ // CraftBukkit start
|
||||
+ private org.bukkit.boss.KeyedBossBar bossBar;
|
||||
+ private @javax.annotation.Nullable org.bukkit.boss.KeyedBossBar bossBar;
|
||||
+
|
||||
+ public org.bukkit.boss.KeyedBossBar getBukkitEntity() {
|
||||
+ if (this.bossBar == null) {
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
+ // Paper end - Share random for entities to make them more random
|
||||
+ public org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason spawnReason; // Paper - Entity#getEntitySpawnReason
|
||||
+
|
||||
+ private org.bukkit.craftbukkit.entity.CraftEntity bukkitEntity;
|
||||
+ private @Nullable org.bukkit.craftbukkit.entity.CraftEntity bukkitEntity;
|
||||
+
|
||||
+ public org.bukkit.craftbukkit.entity.CraftEntity getBukkitEntity() {
|
||||
+ if (this.bukkitEntity == null) {
|
||||
@@ -101,7 +101,7 @@
|
||||
+ return this.bukkitEntity;
|
||||
+ }
|
||||
+ // Paper start
|
||||
+ public org.bukkit.craftbukkit.entity.CraftEntity getBukkitEntityRaw() {
|
||||
+ public @Nullable org.bukkit.craftbukkit.entity.CraftEntity getBukkitEntityRaw() {
|
||||
+ return this.bukkitEntity;
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
||||
Reference in New Issue
Block a user