Dylan K. Taylor
a4ec2b7f2c
Removed copy-pasted code from Player
2017-08-17 19:50:17 +01:00
Dylan K. Taylor
9efd350e78
Return unhandled on desktop crafting instead of hitting errors
2017-08-17 18:34:21 +01:00
Dylan K. Taylor
be4f48a119
Updating submodules
2017-08-17 18:26:06 +01:00
Dylan K. Taylor
83f29e5639
Fixed tests failing since 83af4dcd
2017-08-17 17:02:13 +01:00
Dylan K. Taylor
e825ebd8fa
Added some wrapper methods to make data flags less of a pain in the ass to work with
2017-08-17 16:52:17 +01:00
Dylan K. Taylor
83af4dcd59
Block API typehints
2017-08-17 13:50:19 +01:00
Dylan K. Taylor
f6c31680f6
Fixed unknown blocks dropping themselves
2017-08-17 13:25:11 +01:00
Dylan K. Taylor
6320a63ca5
Use standard format for color hex, some minor name alteration
2017-08-17 13:08:18 +01:00
Dylan K. Taylor
9e02f3c4e3
Fixed redstone lamp light levels and hardness
2017-08-17 11:47:10 +01:00
Dylan K. Taylor
2cd05bf5b5
Removed redundant Block constructor overrides
2017-08-17 11:42:26 +01:00
Dylan K. Taylor
5b4035253b
Casting cleanup and removed some 32-bit string-int leftovers
2017-08-17 11:24:49 +01:00
Dylan K. Taylor
77376d3e33
No idea how this happened
2017-08-17 11:15:42 +01:00
Dylan K. Taylor
56e45a031b
Fixed missing returns for Player->switchLevel()
2017-08-17 11:15:22 +01:00
Dylan K. Taylor
21a1e0eb6b
Player API typehints
2017-08-17 11:08:54 +01:00
Dylan K. Taylor
670a9fe44f
Fix some crashy issues when incompatible players get disconnected
2017-08-17 10:29:12 +01:00
Dylan K. Taylor
6efa4343b1
Cleaned up fuel duration handling, fixed some fuel items not working in furnaces
2017-08-17 10:22:47 +01:00
Dylan K. Taylor
dc3f13cd30
Cleanup from previous commit
2017-08-17 09:42:00 +01:00
Dylan K. Taylor
b4c4005009
Some condition simplifications suggested by static analysis
2017-08-16 20:06:48 +01:00
Dylan K. Taylor
eebc52e00b
Added API method Entity->isClosed() and made Entity->closed protected
2017-08-16 19:30:23 +01:00
Dylan K. Taylor
20aa519f3a
Added capability to remove owners/target entities
2017-08-16 19:14:15 +01:00
Dylan K. Taylor
741394dab1
Typehinted up entity API
...
Did you guys think ALPHA7 changes were done?!
Sone stuff still needs some work, most notably data-properties can't be typed yet because they are just mushed into a couple of methods.
2017-08-16 19:04:30 +01:00
Dylan K. Taylor
ea414ea72d
Fixed MetadataStore
2017-08-16 17:09:03 +01:00
Dylan K. Taylor
696c67f541
Missed a couple
2017-08-16 14:43:18 +01:00
Dylan K. Taylor
021dbd65d7
Cleaned up some copy-pasted code for coloured blocks names
2017-08-16 14:38:41 +01:00
Dylan K. Taylor
8510be062c
Nether Reactor block is back
...
This should never have been removed, it exists as an unobtainable block in vanilla which drops iron and diamond.
2017-08-16 14:17:14 +01:00
Dylan K. Taylor
7b142d4742
Generated some TODO comments for blocks
2017-08-16 13:25:36 +01:00
Dylan K. Taylor
0257432afc
Fixed a typo in BlockIds
2017-08-16 13:17:22 +01:00
Dylan K. Taylor
4950157f1d
How did this escape notice?
2017-08-16 13:08:30 +01:00
Dylan K. Taylor
c4d8c28338
Some inspection fixes
2017-08-16 13:07:33 +01:00
Dylan K. Taylor
9a0b3a6e22
Updated RakLib submodule
2017-08-16 12:28:44 +01:00
Dylan K. Taylor
ebb71fc6c5
Typehints and docs for MemoryManager
2017-08-15 19:48:19 +01:00
Dylan K. Taylor
ae3a8a5493
Added capability to unblock addresses without a restart
2017-08-14 14:12:06 +01:00
Dylan K. Taylor
0c798222a4
... blame PhpStorm EAP
2017-08-10 18:04:44 +01:00
Dylan K. Taylor
e8bd0c3e09
add typehints to Metadatable interface and implementations, fix missing return for Block->hasMetadata() reported in #1285
2017-08-10 18:02:01 +01:00
Dylan K. Taylor
82fd3b540e
Fixed a mistake in Block->isBreakable() doc
2017-08-08 22:15:44 +01:00
Dylan K. Taylor
06083d6dc4
s/Item/Block
2017-08-07 16:26:27 +01:00
Dylan K. Taylor
2d8395f70e
Absorption should be a float. Fixed #1071
2017-08-07 16:09:10 +01:00
Dylan K. Taylor
6b5c0af161
Separation of effect handling from Entity, fixes #886
2017-08-07 16:03:54 +01:00
Dylan K. Taylor
c84218c55b
Remove overloaded parameter from GeneratorUnregisterTask construction
...
PhpStorm, pls tell me why you only found this _now_ and not back in January when I started using PhpStorm...
2017-08-07 15:46:57 +01:00
Dylan K. Taylor
6b7a382625
import cleanup and missing strict types declare
2017-08-07 15:42:46 +01:00
Dylan K. Taylor
54b6a5710e
Fixed entityBaseTickTimer doesn't cover child overrides
2017-08-07 14:21:06 +01:00
Dylan K. Taylor
44f1dedbf8
Give creative players carte blanche
...
Close #879 , close #431
This will be solved properly in 1.2 when creative transactions are
actually trackable. For now... HACK!
2017-08-06 21:16:08 +01:00
Dylan K. Taylor
23eb8600ab
Added methods for endian-flipping
2017-08-06 18:46:03 +01:00
Dylan K. Taylor
10ff2948ac
Fixed double wooden slab name inconsistency
2017-08-06 17:15:35 +01:00
Dylan K. Taylor
0d0df3390a
Added glazed terracotta
2017-08-06 17:10:06 +01:00
Dylan K. Taylor
e4a5cb6021
Changed NBT representation in JSON to hex, fix encoding problems with UTF-8
2017-08-06 14:50:18 +01:00
Dylan K. Taylor
71e354cf1d
Added chest open/close sounds and cleanup duplicated code
2017-08-06 12:48:46 +01:00
Muqsit Rayyan
7d3fca83f0
Tile NBT usage enhancements ( #1259 )
...
* Do not create new NBT objects on Tile::getSpawnCompound()
* PocketMine's string formatting
* Remove more useless array indices and create lesser new NBT objects.
* Remove unused imports and type-hint Sign::setText() params
* Do not mess with Sign::setText() params due to #1204
* Fix formatting
* Make getSpawnCompound() final and add abstract addAdditionalSpawnData()
* Make the same changes for Bed tile
* Fix a missing "->" and remove some unneeded int casting.
2017-08-06 12:35:37 +01:00
Dylan K. Taylor
3fdbcee10f
Add some typehints and documentation to MainLogger
2017-08-06 11:43:42 +01:00
Dylan K. Taylor
4e9af1ac45
Fixed several extremely stupid bugs in MainLogger
...
- Fixed log writes being blocking (these were executed on a thread, but IN A SYNCHRONIZED BLOCK - what the fuck shoghi?!)
- Fixed log file being open for reading as well as writing
- The logger will now be buffered for 25ms before writing to disk, as it should have been to begin with.
- Moved the log resource to a local variable (it's unsafe to try to access resources from different threads, this takes away the ability to do so)
- Fixed line endings to use PHP_EOL instead of hardcoded LF, fix viewing logs in Notepadi
2017-08-06 10:56:39 +01:00