3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 21:10:10 +01:00
Paper/src/main/java/org/bukkit/craftbukkit
Wesley Wolfe 05e889f346 Queue tasks from secondary threads. Fixes BUKKIT-2546 and BUKKIT-2600
This change affects the old chat compatibility layer from an
implementation only standpoint. It does not queue the 'event' to fire,
but rather queues a runnable that allows the calling thread to wait for
execution to finish.

The other effect of this change is that rcon connects now have their
commands queued to be run on next server tick using the same
implementation.

The internal implementation is in org.bukkit.craftbukkit.util.Waitable.
It is very similar to a Future<T> task, but only contains minimal
implementation with object.wait() and object.notify() calls
under the hood of waitable.get() and waitable.run().

PlayerPreLoginEvent now properly implements thread-safe event execution
by queuing the events similar to chat and rcon. This is still a poor way
albeit proper way to implement thread-safety; PlayerPreLoginEvent will
stay deprecated.
2012-10-14 17:26:53 -05:00
..
block Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
command Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
conversations [Bleeding] Added ConversationAbandonedEvent and supporting infrastructure. Whenever a conversation exits, the ConversationAbandonedEvent is triggered with details about how the conversation ended and what, if anything caused it to end. Fixes BUKKIT-986 2012-03-08 01:29:49 -05:00
enchantments Implemented Enchantment.conflictsWith(). Addresses BUKKIT-1159 2012-03-13 22:23:33 -04:00
entity Ensure entity isn't destroyed when trying to show it. Fixes BUKKIT-2038 2012-10-13 15:27:45 -05:00
event Apply setLastDamageCause after processing events and the event has not been canceled. Fixes BUKKIT-1881 2012-07-02 22:22:03 -05:00
generator Update CraftBukkit to Minecraft 1.3.1 2012-08-02 04:58:50 -05:00
help Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
inventory Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
map Deprecation cleanup. 2012-02-18 13:06:12 -05:00
metadata [Bleeding] Implement Metadata framework for Entities, Blocks, and Worlds 2012-02-29 19:21:25 +01:00
potion Updated to rename revision 02 2012-03-01 01:12:41 +00:00
scheduler Implement new scheduler API. Adds BUKKIT-836 2012-10-14 01:21:58 -05:00
updater Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
util Queue tasks from secondary threads. Fixes BUKKIT-2546 and BUKKIT-2600 2012-10-14 17:26:53 -05:00
ChunkCompressionThread.java Update CraftBukkit to Minecraft 1.3.1 2012-08-02 04:58:50 -05:00
CraftArt.java Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
CraftChunk.java Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
CraftChunkSnapshot.java Implemented snapshot support for 1.2. 2012-03-02 00:47:21 -05:00
CraftCrashReport.java Add information about async tasks to CrashReports. Addresses BUKKIT-2491 2012-09-09 00:34:41 -05:00
CraftEffect.java Implementation of richer playEffect methods. Addresses BUKKIT-857 2012-02-29 14:59:27 -05:00
CraftOfflinePlayer.java Update CraftBukkit to Minecraft 1.3.1 2012-08-02 04:58:50 -05:00
CraftServer.java [Bleeding] Add autosave interval setting in bukkit.yml. Adds BUKKIT-2507 2012-09-12 22:05:52 -04:00
CraftSound.java Map org.bukkit.Sound to String values for sending to client. 2012-09-26 19:02:05 -04:00
CraftWorld.java Map org.bukkit.Sound to String values for sending to client. 2012-09-26 19:02:05 -04:00
LoggerOutputStream.java Fix formatting. 2012-01-15 10:54:57 +01:00
Main.java Change local jline checks to not use String literals. Fixes BUKKIT-2455. 2012-09-09 17:02:48 -05:00
PortalTravelAgent.java Put forceChunkLoad back to its original value. 2012-08-05 20:03:12 -05:00
TextWrapper.java Bulk pending cleanup. 2012-09-09 23:19:28 -05:00
TrigMath.java Fix formatting. 2012-01-15 10:54:57 +01:00