7aa263d320
PermissionParser: add emitPermissions()
2019-02-20 16:21:25 +00:00
efc2d72d5f
Move permission parsing to dedicated PermissionParser class
2019-02-20 16:20:48 +00:00
58cafc853f
s/level/world (strings only)
...
we should look at doing this for code too, but for now I'm not planning to break everyone's plugins.
2019-02-20 15:33:46 +00:00
9354929cad
added a whole bunch of tests for enchantment handling
2019-02-20 14:43:57 +00:00
7170d9009d
Enchantment: more static getters, firehose magic numbers
...
This is similar in nature to 646fea5a4e
.
On a side note: Migrating this way is a pain in the ass due to lack of types. What the heck is int supposed to mean?!?!?!?! At least if we wanted to go _back_ to magic numbers, it would be easy to locate everything with an Enchantment typehint...
2019-02-20 13:45:50 +00:00
646fea5a4e
Effect: Introduce a bunch of static getters, change a bunch of API to use objects
...
This introduces static getters for every currently-known effect type. At some point in the near future, the magic number constants (which are really network IDs, by the way) will disappear.
Migrating:
- If you used constants (like any sensible person would): for the most part it's just a case of adding a () anywhere you used an Effect constant.
- If you hardcoded magic numbers: ... well, have fun fixing your code, and I reserve the right to say "I told you so" :)
This achieves multiple goals:
1) creating an EffectInstance for application is much less verbose (see diff for examples, especially the Potion class)
2) plugin devs cannot use magic numbers to apply effects anymore and are forced to use type-safe objects. :)
This is a warning shot for plugin devs who use magic numbers. More changes like this are coming in the not-too-distant future.
2019-02-20 12:05:17 +00:00
15d4201c3a
Fixed tests broken by 88c4b836f0
2019-02-20 11:16:08 +00:00
2c8a065b94
Standardise SNAKE_CASE for surrogate enums
2019-02-20 11:14:07 +00:00
36e9db4c07
Generate methods for surrogate enums, nip stupidity in the bud
...
this also allows changing the internal implementation later without breaking plugins.
2019-02-20 11:09:22 +00:00
88c4b836f0
Make factory register methods less verbose
2019-02-20 10:24:44 +00:00
f351a86653
Flatten double slabs into Slab pseudo-variant
2019-02-19 11:14:06 +00:00
18f765338c
Slab: fixed replacing $blockReplace not creating double slab when not clicking on the replaced block itself
2019-02-19 11:09:11 +00:00
bf71ddb0b5
Snow layers now fall as expected
2019-02-19 10:01:57 +00:00
a4c3ee20b2
Extract Fallable into trait + interface
...
Traits are inferior to components in pretty much every aspect imaginable :(
2019-02-19 09:58:10 +00:00
6174f1e0ae
Pumpkin: fix BC issue, fix lit pumpkin rotation
2019-02-18 20:02:23 +00:00
6f4cec6465
add some blocks introduced in 1.9
2019-02-18 20:01:50 +00:00
a95ecb3ff9
FenceGate: implement in-wall checks
2019-02-18 19:00:58 +00:00
6f7c63e2a8
ItemFrame: add has-map bit
...
this makes the frame appear to cover the full block instead of the usual size.
2019-02-18 17:41:15 +00:00
8f26c3a2d4
Fix bonemeal count not reduced by CocoaBlock ( #2773 )
2019-02-18 16:31:07 +00:00
12dd6adfcc
Block: Derive light filter level based on isTransparent() return
...
this might be dynamic.
2019-02-18 13:27:22 +00:00
6cdd716c34
Merge branch '3.6'
2019-02-18 13:12:29 +00:00
6b51bf4a80
Merge branch '3.5' into 3.6
2019-02-18 13:11:16 +00:00
cba8d86c4f
Fixed Fire Aspect not working on TNT
2019-02-18 13:11:08 +00:00
b8adfd6948
edu: implement coloured and underwater torches
2019-02-18 11:37:57 +00:00
cd733c658b
Implement hard glass & hard glass pane
2019-02-18 10:50:29 +00:00
ab58d46a7f
Merge branch '3.6'
2019-02-17 16:12:21 -05:00
2e834c8f5c
Merge branch '3.5' into 3.6
2019-02-17 16:10:47 -05:00
f9873e9108
ItemFrame: fixed hardness
2019-02-17 16:10:21 -05:00
00b92eaa40
BlockFactory: Sort entries lexicographically ascending
2019-02-17 19:44:48 +00:00
1bc6483608
Fixed Dockerfile permission issues
2019-02-17 18:10:40 +00:00
9b372f8435
Merge branch 'master' of https://github.com/pmmp/pocketmine-mp
2019-02-17 17:09:13 +00:00
3bbc0b5d5f
Merge branch '3.6'
2019-02-17 17:08:44 +00:00
074baf7e1c
Merge branch '3.5' into 3.6
2019-02-17 17:08:15 +00:00
2e0dd574e0
Set default health attribute value when changing max health, closes #2771
2019-02-17 17:06:32 +00:00
9137eb0757
Added Dockerfile
2019-02-18 00:52:52 +08:00
c2735286ab
Merge branch '3.6'
2019-02-17 11:35:07 +00:00
e16d8e31af
Merge branch '3.5' into 3.6
2019-02-17 11:33:46 +00:00
3c93a57397
Entity: add a hack to prevent client-side movement when entity is not moving
...
this fixes #2227 .
2019-02-17 11:33:34 +00:00
7ea1f4fc91
Sign: fixed merge leftovers from 6424dc9c82
2019-02-17 11:10:17 +00:00
84cf7c11e6
Fixed some overlooked returns from dce08b4e88
2019-02-17 06:01:08 -05:00
22a21ecfd6
BlockTransaction: Take world in constructor
2019-02-16 19:57:55 +00:00
0794c94b4b
Rename BlockWriteBatch -> BlockTransaction
2019-02-16 19:53:15 +00:00
b252be1c7a
Added ItemFactory::air() sugar
...
This makes it easier to create air stacks without accidents, and also reduces the amount of throwaway air objects which get created.
2019-02-16 12:19:54 +00:00
0ac7164b16
Inventory: remove dropContents(), remove circular dependency
2019-02-16 12:19:46 +00:00
f49d590794
Level: remove getTiles(), more removal of tiles from user interface
2019-02-15 16:27:00 +00:00
65ce1a7581
Block: fixed correct-type tiles getting overwritten
...
this manifested by crashing the server whenever someone used a furnace.
2019-02-15 13:37:57 +00:00
01255c5368
Updated RakLib to get ITC efficiency enhancements
2019-02-15 12:29:16 +00:00
19f0d7f336
NetworkSession: Don't apply handlers to a disconnected session
...
closes #2756
2019-02-15 10:11:31 +00:00
dce08b4e88
Introduce Item use results - can be success, fail or none
...
closes #2693 , closes #2705 , closes #2734
2019-02-14 19:21:29 +00:00
d9bbe99b83
Merge branch '3.6'
2019-02-14 17:25:21 +00:00