|
1 | 1 | --- a/net/minecraft/server/level/ServerPlayer.java |
2 | 2 | +++ b/net/minecraft/server/level/ServerPlayer.java |
3 | | -@@ -204,8 +_,9 @@ |
| 3 | +@@ -202,10 +_,12 @@ |
| 4 | + import net.minecraft.world.scores.Team; |
| 5 | + import net.minecraft.world.scores.TeamColor; |
4 | 6 | import net.minecraft.world.scores.criteria.ObjectiveCriteria; |
| 7 | ++import org.bukkit.craftbukkit.entity.CraftPlayer; |
5 | 8 | import org.jspecify.annotations.Nullable; |
6 | 9 | import org.slf4j.Logger; |
7 | 10 | +import org.teneted.neotenet.injection.server.level.ServerPlayerInjection; |
|
55 | 58 | ServerPlayer.this.connection.send(new ClientboundContainerSetDataPacket(container.containerId, id, value)); |
56 | 59 | } |
57 | 60 |
|
58 | | -@@ -362,10 +_,17 @@ |
| 61 | +@@ -362,10 +_,32 @@ |
59 | 62 | public void sendSystemMessage(Component message) { |
60 | 63 | ServerPlayer.this.sendSystemMessage(message); |
61 | 64 | } |
|
70 | 73 | public boolean wonGame; |
71 | 74 | + // Neo: Used to track partial TIME_SINCE_REST increases for dimensions in which clocks move at different speeds. No need to persist, at most Phantoms will spawn one tick too early for each save/load cycle. |
72 | 75 | + private float partialTimeSinceRestTick; |
| 76 | ++ // CraftBukkit start |
| 77 | ++ public CraftPlayer.TransferCookieConnection transferCookieConnection; |
| 78 | ++ public String displayName; |
| 79 | ++ public Component listName; |
| 80 | ++ public int listOrder = 0; |
| 81 | ++ public org.bukkit.Location compassTarget; |
| 82 | ++ public int newExp = 0; |
| 83 | ++ public int newLevel = 0; |
| 84 | ++ public int newTotalExp = 0; |
| 85 | ++ public boolean keepLevel = false; |
| 86 | ++ public double maxHealthCache; |
| 87 | ++ public boolean joining = true; |
| 88 | ++ public boolean sentListPacket = false; |
| 89 | ++ public String kickLeaveMessage = null; // SPIGOT-3034: Forward leave message to PlayerQuitEvent |
| 90 | ++ // CraftBukkit end |
73 | 91 |
|
74 | 92 | public ServerPlayer(MinecraftServer server, ServerLevel level, GameProfile gameProfile, ClientInformation clientInformation) { |
75 | 93 | super(level, gameProfile); |
|
0 commit comments