A248 and GitHub
a9e06eab79
Change thread pool type
...
Replace cached thread pool (Executors.newCachedThreadPool()) with single thread pool (Executors.newSingleThreadExecutor()). The single thread executor is more efficient for lazy asynchronous operations.
2019-11-23 11:07:18 -05:00
A248 and GitHub
f2bc472f6f
Implement proper multi-threading
...
Replace raw Thread instantiation with a thread pool.
2019-11-23 10:56:28 -05:00
A248 and GitHub
b5621816cb
Update ChunkListener to fix a minor NPE bug
...
Fixes a NullPointerException at the root of the problem. Bukkit.getPlayer(UUID) can return a null value, so a simple null check will do the trick.
2019-11-06 19:00:04 -05:00
A248 and GitHub
47d3417606
Updated NPCBase to with NPC#getState(NPCState)
...
Implemented net.jitse.npclib.api.NPC#getState(NPCState) to return a boolean indicating whether a state is toggled or not.
2019-10-31 20:14:46 -04:00
A248 and GitHub
73df32172e
Add getState(NPCState)
...
Adds NPC#getState(NPCState) to return a boolean indicating whether the NPC in question has a specific state.
2019-10-31 20:10:20 -04:00
A248 and GitHub
b97361516c
Make NPCBase.java compliant with updated NPC.java
...
Makes NPCBase compliant with net.jitse.npclib.api.NPC.
Implements NPC#getText() to return List<String> and NPC#getSlot(NPCSlot slot) to return ItemStack.
2019-10-31 19:57:04 -04:00
A248 and GitHub
d7144e445e
Update NPC.java with getText() and getItem()
...
Adds these methods to the NPC interface.
2019-10-31 19:50:46 -04:00