Conversation
Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
Outdated
Show resolved
Hide resolved
Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java
Outdated
Show resolved
Hide resolved
|
Do all these new classes/fields exist in 1.19.4? We still technically target it for support in P2 I believe? |
Seems to be the case
|
|
I think I should look at the PR again, as there are seemingly string constants for entity types in the code, which obviously weren't caught by the newer paper api |
|
I'm not gonna touch the ReplicatingEntityWrapper (required for plot clear as it seems?). That would need a whole refactor for maaany things (and potentially a migration to just storing the entities as NBT - but that's something that has to be discussed). |
Does it need a refactor though? What needs refactoring? |
Well, without looking further, the first things I noticed:
I guess I could add the named ones, but it would be really great to get to java 21 to use type pattern matching in the switch-cases (though, blocked by SpigotMC atm) |
Perhaps just minimal work for 1.21.4 and we can revisit this later? I don't see much issue with using strings - multi-version support is tricky otherwise. |
|
Looks good enough for now to me |
Overview
Not tested yet, checked IDs against minecraft wiki and seems to work out.