c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00
1eedac87b2
added missing @var property types (reported by phpstan)
2020-01-09 14:13:54 +00:00
9e1f6a2486
protocol: updated particle IDs
2019-12-13 10:52:09 +00:00
c10ce84035
fix invisible legacy skins which have empty geometry names
2019-12-07 10:02:22 +00:00
600e16d9f6
Fixed floatingtextparticle yet again
2019-11-21 13:54:00 -05:00
be9c413a9e
Added network components for skins, to collect instead of throw out data
2019-11-20 21:43:41 -05:00
49a9e0a880
Remove changes to FloatingTextParticle
2019-11-11 15:26:36 -05:00
fb23aade34
Clean up unused imports
2019-11-10 21:49:58 -05:00
e2fc7cdf88
Friendly BC skins (persona not supported)
2019-11-10 21:04:38 -05:00
7dec912d15
Fixed FloatingTextParticles
2019-11-06 23:22:41 -05:00
3fae57508b
update particle ids
2019-07-13 20:08:17 +01:00
c58a1bf9b7
Protocol changes for 1.12.0.28
2019-07-12 19:00:15 +01:00
4b9a142a5d
Import global functions and constants for enhanced performance
...
This is better for performance because these then don't need to be reevaluated every time they are called.
When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.
However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
ea9f9aa250
Update some non-critical protocol magic numbers
2018-12-20 19:59:42 +00:00
5e68858ebf
Merge branch 'release/3.2' into release/3.3
2018-10-21 18:16:59 +01:00
45c9caa38c
Fixup some formatting issues
2018-10-21 18:15:25 +01:00
839d5eab7b
Protocol changes for 1.7
...
there's also some new cases in stats, but we don't care about those anyway.
2018-10-16 17:13:52 +01:00
4bc0d850b1
Added Block->getRuntimeId(), clean up some mess
2018-09-19 16:16:10 +01:00
4a5ff32d2e
hacks for NPC and floating text
...
I didn't think mojang could break this fucking game any worse
2018-07-11 19:45:48 +01:00
d80c471ae1
Typehints on missed sound and particle APIs
2018-05-02 11:44:18 +01:00
646455f6e8
fixed painting particles, removed DestroyParticle
...
it didn't last long because they changed how this works... yuk
2018-04-09 16:26:15 +01:00
3134fa2744
Fixed FloatingTextParticle YET AGAIN
...
how many fucking ways can you break nametags Mojang???
2018-04-04 16:59:39 +01:00
5b7b2dd0e2
Merge changes from ALPHA11 for 1.2.13
2018-04-04 11:31:39 +01:00
5ce55bd3b0
duct tape for block ID remapping
2018-04-04 11:00:39 +01:00
a4c50d3204
Remove unused imports
2018-03-24 11:59:15 +00:00
a8a3eb3866
Added particles for snowballs and eggs
2018-03-09 11:35:07 +00:00
c1a2144f60
Particle: added some new constants
2018-03-09 10:42:59 +00:00
49a39fc7bd
Split DestroyBlockParticle into two classes
...
this level-event is not only used for blocks, it's also used for paintings.
2018-03-04 13:11:38 +00:00
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
b3b3ee7c56
Use transparent skin on FloatingTextParticle
2017-10-01 14:10:47 +01:00
53ef9b653a
Added some getters to FloatingTextParticle
2017-09-21 19:10:30 +01:00
030cc4afb0
FloatingTextParticle: import cleanup & typehints
2017-09-21 19:09:33 +01:00
9bd7f771d3
"Fixed" FloatingTextParticle yet again
...
- nametag visibility flags don't work properly, only players show them all the time
- invisibility overrides nametag visibility
- scale 0 triggers asserts on debug builds
..... how hard is it to NOT break these simple things each update Mojang?
closes #1205
2017-09-21 19:04:45 +01:00
10f6a0eef0
FloatingTextParticle: fixed incorrect parameter type doc
2017-09-21 18:31:12 +01:00
9be1b929a5
Added PhpDoc for packet field types and changed float x,y,z to Vector3
2017-08-13 20:02:07 +01:00
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +01:00
7c14ffbcfa
More type fixes
2017-06-07 12:54:12 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
4ba3a3af3d
fix FloatingTextParticle
2017-06-03 20:51:48 +01:00
8cc1003956
Fixed FloatingTextParticle
2017-05-24 07:37:11 +01:00
a9afad10bc
BinaryStream no longer extends stdClass, fixed a couple of minor bugs
...
Seems :shoghi: used stdClass to silence IDEs, which before ALPHA5 would complain about myriad undefined fields due to lack of type checking (switch based on packet id 🤦 )
2017-05-15 19:28:39 +01:00
0a4d62b405
Added encode and decode methods for more packets
2017-05-15 15:56:59 +01:00
13fd8b681e
Added some sounds, fixed DestroyBlockParticle wrong particles for blocks with different meta values
2017-05-04 16:50:13 +01:00
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
2930cf80b4
Merge branch 'master' into mcpe-1.0
2016-12-16 10:29:58 +00:00
5ce6c6227f
Fix a couple of particle constants
...
Thanks @thebigsmilexd for information
2016-12-15 23:05:26 +00:00
42b78cfba2
Some new particle IDs
2016-12-10 15:25:12 +00:00
7314aaf7f7
Particles for 0.16
...
Added BlockForceFieldParticle, removed LargeExplodeParticle and added HugeExplodeSeedParticle
2016-11-12 21:05:01 +00:00