Dylan K. Taylor
9e993aa83f
ClosureTask: drop requirement for void return type
...
this creates unnecessary boilerplate for many inline usages.
2019-07-01 17:19:19 +01:00
Dylan K. Taylor
fab12707ae
Merge branch 'stable' into next-minor
2019-07-01 17:18:20 +01:00
Dylan K. Taylor
b1ef1026ee
WorldManager: Use the world's own logger to report tick overload
2019-07-01 15:24:45 +01:00
Dylan K. Taylor
1156d5bdba
batch optimize imports
2019-06-30 14:51:44 +01:00
Dylan K. Taylor
5e5f43242e
Extract a HandlerListManager unit from HandlerList
2019-06-30 14:49:09 +01:00
Dylan K. Taylor
68bff6cf69
moved RegisteredListener to event namespace
2019-06-30 14:31:53 +01:00
Dylan K. Taylor
80d4eeaa3c
fix some occurrences of terrain truncation during generation
2019-06-29 11:14:34 +01:00
Dylan K. Taylor
0d769aab48
Removed anti-noclip checks
2019-06-29 11:10:20 +01:00
Dylan K. Taylor
44a205b1cc
Remove MainLogger singleton and remaining MainLogger hard-dependencies
2019-06-28 16:36:17 +01:00
Dylan K. Taylor
a4b50e57a4
move player arm swing processing to server side
2019-06-28 15:08:51 +01:00
Dylan K. Taylor
e7733718b6
divide network\mcpe namespace into more subnamespaces
2019-06-27 19:39:59 +01:00
Dylan K. Taylor
872b6ed708
Switch back to using fast-serialize for chunk send prepare
...
network serialize on the main thread is 3-5x more expensive than fast-serialize right now.
2019-06-27 19:28:47 +01:00
Dylan K. Taylor
0e4966dfdf
Split ProcessLoginTask into two tasks: 1) verify, 2) server handshake
2019-06-27 18:09:43 +01:00
Dylan K. Taylor
193a41566d
NetworkSession: Show the correct name on the player list
2019-06-27 17:04:36 +01:00
Dylan K. Taylor
1749b57a83
ChunkManager: drop light-related methods
...
these were added in 2017 with the intent of async'ifying light updates. However, light updates now use an optimized code path which bypasses these functions completely, rendering them useless.
2019-06-27 16:56:46 +01:00
Dylan K. Taylor
6da2bd4bb3
SimpleChunkManager: implement last-access performance optimization
...
this improves performance of writing blocks by ~30%.
2019-06-27 16:53:24 +01:00
Dylan K. Taylor
45f5f112dd
SubChunkIteratorManager now accepts $create as a moveTo() parameter instead of in the constructor
2019-06-27 16:22:56 +01:00
Dylan K. Taylor
6f087190f4
SimpleChunkManager: added $create parameter
2019-06-27 16:13:14 +01:00
Dylan K. Taylor
a279648c68
FastChunkSerializer: optimize palette writing
2019-06-27 15:42:10 +01:00
Dylan K. Taylor
6838a1e07a
BossEventPacket: fix crash in ::unknown6()
2019-06-27 15:16:06 +01:00
Dylan K. Taylor
f3882dd658
Entity: remove more useless classes
...
these were slated for removal some time ago, but it never happened because they were used in the API. This is no longer the case on 4.0, so these classes are now entirely useless.
2019-06-27 14:23:24 +01:00
Dylan K. Taylor
2ba76bd97d
Convert UPnP into network interface
...
closes #2710 , closes #2751
2019-06-27 13:41:58 +01:00
Dylan K. Taylor
7f56f27505
some cleanup to held item handling
2019-06-26 19:40:40 +01:00
Dylan K. Taylor
61d443bf4e
Living: remove sendPotionEffects() network crap
2019-06-26 19:17:38 +01:00
Dylan K. Taylor
9fe073fa73
move RakLib-specific components to mcpe\raklib namespace
2019-06-26 18:36:42 +01:00
Dylan K. Taylor
3f9493bcd0
Remove another NetworkSession <-> NetworkInterface cyclic dependency
2019-06-26 18:22:32 +01:00
Dylan K. Taylor
7eaca6bbaa
Separate packet-sender functionality from NetworkInterface, break cyclic dependency between NetworkInterface and NetworkSession
2019-06-26 18:19:29 +01:00
Dylan K. Taylor
9cedfeb2b2
Use the appropriate synchronization for held item rollbacks
2019-06-26 17:56:39 +01:00
Dylan K. Taylor
f62d9cbb99
Player: rename equipItem() to selectHotbarSlot()
2019-06-26 15:52:01 +01:00
Dylan K. Taylor
7bdb99ae8b
Player: fixed consumable relying on undefined network behaviour to set using-item flags
2019-06-26 15:47:16 +01:00
Dylan K. Taylor
eee039a490
Player: don't fire events on equipItem() when sending the same slot
2019-06-26 15:32:57 +01:00
Dylan K. Taylor
ee72680f44
Removing "metadata": overengineered useless Bukkit copy-pasta
...
the intentions of this are good, but the usability is terrible and it's not fit for purpose. Since there are a total of zero plugins on Poggit which use this garbage, it makes more sense to eliminate the technical debt. See #2766 for discussion about replacing this.
2019-06-26 14:43:21 +01:00
Dylan K. Taylor
26178b4435
InventoryManager: remove redundant cyclic dependency
2019-06-26 13:57:52 +01:00
Dylan K. Taylor
9bebc6c69d
PreSpawnPacketHandler: drop useless sending time
...
this is already sent in StartGamePacket.
2019-06-26 13:46:53 +01:00
Dylan K. Taylor
4448919a8b
Consider unknown chunk formats as corrupted
...
the reasoning for this is that the world version number should have accounted for a chunk format change. If it didn't, then we assume any chunk with a wrong version number is corrupted, since the handling of unknown formats is the same as that of corrupted chunks.
2019-06-26 13:22:45 +01:00
Dylan K. Taylor
42b1c45fa5
Player: remove deprecated parameter from sendPopup()
2019-06-25 19:41:00 +01:00
Dylan K. Taylor
a6395c9ac7
allow use of any iterable for enum initialization
...
this allows possible use of generators
2019-06-25 19:37:31 +01:00
Dylan K. Taylor
44b7239847
SetDefaultGameTypePacket: added ::create()
...
not using this yet, but it was in my workspace and it might come in useful
2019-06-25 19:28:30 +01:00
Dylan K. Taylor
e8d9acb59f
added NoteSound and NoteInstrument enum
2019-06-25 19:26:18 +01:00
Dylan K. Taylor
73938486fc
added PaintingPlaceSound
2019-06-25 18:39:02 +01:00
Dylan K. Taylor
6bbae4b2df
SetDifficultyPacket: added create()
2019-06-25 18:34:12 +01:00
Dylan K. Taylor
ec25a71396
Merge branch 'stable'
2019-06-25 18:16:36 +01:00
Dylan K. Taylor
15fa1056b7
added make-release script
2019-06-25 18:03:48 +01:00
Dylan K. Taylor
ff55f5e9ac
Make BlockInventory non-abstract
2019-06-25 17:45:07 +01:00
Dylan K. Taylor
8c2ca098e1
updated BedrockData submodule
2019-06-25 17:31:10 +01:00
Dylan K. Taylor
f152ae9cbf
EntityFactory: Allow registering entities without legacy numeric IDs associated
...
this shit really ought to be broken up into factories for each world format.
2019-06-25 17:23:41 +01:00
Dylan K. Taylor
c19c42a934
PlayerBlockPickEvent: pre-cancel the event when picking would fail in survival
2019-06-25 16:30:07 +01:00
Dylan K. Taylor
edccce1419
added ChunkListenerNoOpTrait to reduce chunklistener boilerplate
2019-06-25 16:23:43 +01:00
Dylan K. Taylor
d85a27c5b2
BanList: remove useless Server dependency
2019-06-25 15:54:26 +01:00
Dylan K. Taylor
8ec25b59a3
Remove useless $items parameter from inventory constructors
2019-06-25 15:43:55 +01:00