You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate as raid instances are not tied to an id until the server
actually starts tracking them.
Best attempt at keeping compat by passing the id to the raid instance
once tracked, prior the API will return -1.
Copy file name to clipboardexpand all lines: paper-server/patches/sources/net/minecraft/world/entity/raid/Raid.java.patch
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
--- a/net/minecraft/world/entity/raid/Raid.java
2
2
+++ b/net/minecraft/world/entity/raid/Raid.java
3
-
@@ -59,6 +_,11 @@
3
+
@@ -59,6 +_,12 @@
4
4
import net.minecraft.world.phys.Vec3;
5
5
6
6
public class Raid {
7
7
+ // Paper start
8
8
+ private static final String PDC_NBT_KEY = "BukkitValues";
9
9
+ private static final org.bukkit.craftbukkit.persistence.CraftPersistentDataTypeRegistry PDC_TYPE_REGISTRY = new org.bukkit.craftbukkit.persistence.CraftPersistentDataTypeRegistry();
10
10
+ public final org.bukkit.craftbukkit.persistence.CraftPersistentDataContainer persistentDataContainer;
11
+
+ public int idOrNegativeOne = -1;
11
12
+ // Paper end
12
13
public static final SpawnPlacementType RAVAGER_SPAWN_PLACEMENT_TYPE = SpawnPlacements.getPlacementType(EntityType.RAVAGER);
13
14
public static final MapCodec<Raid> MAP_CODEC = RecordCodecBuilder.mapCodec(
0 commit comments