Commit graph

5838 commits

Author SHA1 Message Date
Lulu13022002
c6a426beda
warden AI 2024-12-13 21:36:11 +01:00
Nassim Jahnke
f73e864f18
Commands 2024-12-13 21:21:57 +01:00
Lulu13022002
2509faa08e
mob spawn settings 2024-12-13 21:07:56 +01:00
Nassim Jahnke
c3d5f253fe
Moar 2024-12-13 20:30:07 +01:00
Bjarne Koll
4091c6ac4d
Follow up on block entities 2024-12-13 20:17:16 +01:00
MiniDigger | Martin
b95e27be6c skip setupMacheSource on patch changes to save some time 2024-12-13 20:16:59 +01:00
Bjarne Koll
e0fae5ef02
Part of block entities 2024-12-13 20:11:23 +01:00
Nassim Jahnke
0135513d3d
More mobs 2024-12-13 20:01:24 +01:00
Nassim Jahnke
3ef3394311
More mobs 2024-12-13 19:25:16 +01:00
Noah van der Aa
7d42b87010
net/minecraft/world + Tadpole? 2024-12-13 19:17:03 +01:00
Noah van der Aa
18a25937bc
pathfinding, packet utils 2024-12-13 18:57:25 +01:00
Nassim Jahnke
e20952c643
Make Tadpole apply 2024-12-13 18:55:47 +01:00
Jake Potrebic
b97663fdf9
remove applied patches 2024-12-13 09:44:26 -08:00
Nassim Jahnke
aa998246f7
More work 2024-12-13 18:40:56 +01:00
Jake Potrebic
e9b739bc48
some more directories 2024-12-13 09:40:09 -08:00
Noah van der Aa
1ed5242f38
Ender dragon 2024-12-13 18:36:33 +01:00
Nassim Jahnke
83b7370131
Players directory 2024-12-13 18:06:27 +01:00
Owen1212055
a68b56a864
advancement stuff 2024-12-13 11:39:43 -05:00
Bjarne Koll
ee51737be6
More work 2024-12-13 17:24:35 +01:00
Bjarne Koll
92ef45d166
First attempt 2024-12-13 17:14:25 +01:00
Owen1212055
8324be321a
brig stuff 2024-12-13 11:02:13 -05:00
Nassim Jahnke
f2ff5966a6
First few files and initial rebuild 2024-12-13 16:52:45 +01:00
Nassim Jahnke
45ddf764d9
Move patches to unapplied 2024-12-12 12:30:31 +01:00
Jason Penilla
ff75689b08
Adjust build for config cache compat 2024-12-12 11:36:57 +01:00
Jason Penilla
8da8d2991f
Update dev bundle publishing 2024-12-12 11:36:57 +01:00
Jason Penilla
48c0f0ecd6
Fix commented sections of server build 2024-12-12 11:36:56 +01:00
Jason Penilla
d23702f449
Add back remapper for reobf testing and dev bundle 2024-12-12 11:36:56 +01:00
Jason Penilla
9368da77a9
Build updates 2024-12-12 11:36:55 +01:00
Jason Penilla
fe6dbf0377
Move paperweight use to -server 2024-12-12 11:36:44 +01:00
MiniDigger | Martin
40ec8fb606
Move to paperweight v2
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
2024-12-12 10:57:30 +01:00
Jake Potrebic
ca5499c7fa Switch Impl types to Holderable 2024-11-24 15:08:19 -08:00
Owen1212055
d300c94ec2 Properly resend entities
This resolves some issues which caused entities to not be resent correctly.
Entities that are interacted with need to be resent to the client, so we resend all the entity
data to the player whilst making sure not to clear dirty entries from the tracker. This makes
sure that values will be correctly updated to other players.

This also adds utilities to aid in further preventing entity desyncs.

This also also fixes the bug causing cancelling PlayerInteractEvent to cause items to continue
to be used despite being cancelled on the server.

For example, items being consumed but never finishing, shields being put up, etc.
The underlying issue of this is that the client modifies their synced data values,
and so we have to (forcibly) resend them in order for the client to reset their using item state.

See: https://github.com/PaperMC/Paper/pull/1896

== AT ==
public net.minecraft.server.level.ChunkMap$TrackedEntity serverEntity
2022-12-07 17:25:19 -05:00
Rick
ea24e2c6aa Fix incorrect command serialization by creating new Command
Fixes #11649 - As noted in the issue, when CommandNodes are serialized
they are used as the key in a Map. Their equals()/hashcode() should only
match if they are equal nodes (name & command), but due to the erasure of the command field pre-serialization, nodes with different commands can be mapped onto the same value. This causes the client to interpret both nodes as the same, causing suggestions where they should not.

This is fixed by creating a different no-op command for the
erasure, instead of them holding the same lambda.
2024-11-26 20:45:52 +01:00
96DarkCode96
2837612191 Fix Player.setPlayerListOrder to send update to clients 2024-12-10 15:45:47 +01:00
Intybyte
24f63384b2 Expand scoreboard tag count validation to API set 2024-10-21 01:41:04 +02:00
Owen1212055
25c25923e9 DataComponent API
Exposes the data component logic used by vanilla ItemStack to API
consumers as a version-specific API.
The types and methods introduced by this patch do not follow the general
API deprecation contracts and will be adapted to each new minecraft
release without backwards compatibility measures.

== AT ==
public net/minecraft/world/item/component/ItemContainerContents MAX_SIZE
public net/minecraft/world/item/component/ItemContainerContents items
2024-04-28 19:53:01 -04:00
Nassim Jahnke
2a20fde332 Add feature patch hook for overrides 2024-12-05 13:00:22 +01:00
Jake Potrebic
193eebecdf Tag Lifecycle Events
== AT ==
public net/minecraft/tags/TagEntry id
public net/minecraft/tags/TagEntry tag
public net/minecraft/tags/TagEntry required
2024-06-20 09:40:57 -07:00
Bjarne Koll
45d04f9749 Add registry entry and builders 2024-06-13 23:45:32 +02:00
Jake Potrebic
a1b891dd88 Registry Modification API
== AT ==
public net.minecraft.core.MappedRegistry validateWrite(Lnet/minecraft/resources/ResourceKey;)V
public net.minecraft.resources.RegistryOps lookupProvider
public net.minecraft.resources.RegistryOps$HolderLookupAdapter
2023-02-27 18:28:39 -08:00
MrPowerGamerBR
463f952cd4 Only attempt to find spawn position if there isn't a fixed spawn position set 2024-11-28 15:20:25 -03:00
kokiriglade
4bae091802 Expanded Art API 2024-11-23 18:58:49 +00:00
Kevin Raneri
b2d8133382 Configurable Entity Despawn Time 2024-09-30 09:50:55 -07:00
Abel
7294ae3022 API to allow/disallow tick sleeping 2024-11-12 22:25:20 +01:00
Abel
b4c394a1c6 API to check if the server is sleeping 2024-11-10 16:32:34 +01:00
Lulu13022002
7b83e91bb7 Fix NPE when EntityResurrectEvent is uncancelled 2024-11-18 20:27:58 +01:00
Bjarne Koll
c7c3d8a9cb Fix incorrect invulnerability damage reduction
Fixes incorrect spigot handling of the invulnerability damage
reduction applied when an already invulnerable entity is damaged with a
larger damage amount than the initial damage.
Vanilla still damages entities even if invulnerable if the damage to be
applied is larger than the previous damage taken. In that case, vanilla
applies the difference between the previous damage taken and the
proposed damage.

Spigot's damage modifier API takes over the computation of damage
reducing effects, however spigot invokes this handling with the initial
damage before computing the difference to the previous damage amount.
This leads to the reduction values to generally be larger than expected,
as they are computed on the not-yet-reduced value.
Spigot applies these reductions after calling the EntityDamageEvent and
*then* subtracts the previous damage point, leading to the final damage
amount being smaller than expected.

This patch cannot simply call the EntityDamageEvent with the reduced
damage, as that would lead to EntityDamageEvent#getDamage() returning
the already reduced damage, which breaks its method contract.
Instead, this patch makes use of the DamageModifier API, implementing
the last-damage-reduction as a DamageModifier.
2024-11-11 21:35:27 +01:00
Barnaby
318f7b2014 Reduce work done in CraftMapCanvas.drawImage by limiting size of image and using System.arraycopy instead of for loops and use bitwise operations to do bounds checks. 2024-06-29 12:06:51 +01:00
Jake Potrebic
9467a08b36 Improve performance of RecipeMap#removeRecipe 2024-10-31 20:36:41 -07:00
Gero
7acf73ce66 Call CraftPlayer#onEntityRemove for all online players 2024-11-09 22:27:58 +01:00