Commit Graph
13 Commits
Author SHA1 Message Date
JRoy 302525c73b Add EntityLoadCrossbowEvent 2020-10-07 12:04:17 -04:00
JRoy cbfe48b1cc Add PlayerShearBlockEvent 2020-08-27 12:32:35 -04:00
JRoy 110071a0e6 Add additional open container api to HumanEntity 2020-08-26 02:11:58 -04:00
JRoy 5b74f31a52 Potential bed API
Adds a new method to fetch the location of a player's bed without generating any sync loads.

getPotentialBedLocation - Gets the last known location of a player's bed. This does not preform any check if the bed is still valid and does not load any chunks.
2020-05-10 23:06:41 -04:00
Josh Roy 933e2e1efa Remove CraftItemStack#setAmount null assignment
This creates a problem with Paper's item serialization
api where deserialized items, which are internally
created as a CraftItemStack, will be completely lost if
#setAmount(0) is invoked (since the underlying handle
is set to null), while a regular Bukkit ItemStack
simply sets the amount field to zero, retaining the
item's data.

Vanilla treats items with zero amounts the same as items
with less than zero amounts, so this code doesn't create
a problem with operations on the vanilla ItemStack.
2023-01-23 19:19:01 -05:00
JRoy e793c7d8be Add EntityLoadCrossbowEvent 2020-10-07 12:04:01 -04:00
JRoy 661fc1e52e Add PlayerShearBlockEvent 2020-08-27 15:02:48 -04:00
JRoy 963cd88791 Add additional open container api to HumanEntity
== AT ==
public net/minecraft/world/level/block/state/BlockBehaviour getMenuProvider(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/MenuProvider;
2020-08-26 02:12:31 -04:00
JRoy 88335d97a8 Fix hex colors not working in some kick messages 2020-08-27 16:57:25 -04:00
JRoy 6a6851c040 Add PlayerRecipeBookClickEvent 2020-06-05 18:24:06 -04:00
JRoy 7be16c7ef0 Potential bed API
Adds a new method to fetch the location of a player's bed without generating any sync loads.

getPotentialBedLocation - Gets the last known location of a player's bed. This does not preform any check if the bed is still valid and does not load any chunks.
2020-05-10 23:06:30 -04:00
JRoy 167f0e69c8 Expose MinecraftServer#isRunning
This allows for plugins to detect if the server is actually turning off in onDisable rather than just plugins reloading.
2020-04-10 21:24:12 -04:00
JRoy a690b2a859 Expose MinecraftServer#isRunning
This allows for plugins to detect if the server is actually turning off in onDisable rather than just plugins reloading.
2020-04-10 21:24:35 -04:00