6098 Commits

Author SHA1 Message Date
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
Dylan K. Taylor
475066c9f5 Removed minor code duplication in MainLogger 2017-08-06 08:55:46 +01:00
Dylan K. Taylor
d5f6966ce3 Fixed server freeze due to bad light filter values 2017-08-05 23:22:33 +01:00
Dylan K. Taylor
0ad4a59d5a Added test for light filter levels (must always be >= 1) 2017-08-05 23:03:13 +01:00
Dylan K. Taylor
5f6dc25c9f Fixed EnchantCommand being retarded, close #1012 2017-08-05 21:27:57 +01:00
Dylan K. Taylor
3b7fc21839 Enchantment API changes, understandable constant names 2017-08-05 21:27:57 +01:00
Dylan K. Taylor
ecba80fd63 Fixed some trailing whitespace
$ shopt -s globstar
 $ sed -i 's/[ \t]*$//' src/pocketmine/*/**.php

:P
2017-08-05 21:07:21 +01:00
PMMPFTW
fb59b57bdf Improve item enchantment API and fix some bugs (#512) 2017-08-05 20:50:28 +01:00
hmy2001
2b4e303f52 Fix client-side translation for gamemode change 2017-08-05 12:05:35 +01:00
Dylan K. Taylor
2103c981a9 Replaced literal ints with Vector3 constants for Block->getSide() calls 2017-08-04 13:33:23 +01:00
Dylan K. Taylor
3188f1c053 Removed redundant override 2017-08-04 13:23:46 +01:00
Dylan K. Taylor
fdf71841e1 Added missing strict type declares 2017-08-04 13:17:59 +01:00
Dylan K. Taylor
11fae493a5 Added Nether Wart 2017-08-04 13:17:53 +01:00
Dylan K. Taylor
3135fe3c69 Added API method Block->getItemId(), cleaned up excess wooden stairs and fence-gate classes, added more wooden door types 2017-08-04 13:02:24 +01:00
Dylan K. Taylor
561d8e7a39 Regenerated block/item id lists and refactored some names for consistency with MCPE 2017-08-04 12:17:24 +01:00
SOFe
3048a3b39b Added precision and mode arguments to Vector3::round() (#1256)
If the precision is positive (i.e. there are numbers after the decimal point), the results should be floating-point numbers rather than integers, hence the additional check.

Even if the precision is negative or zero, the $mode parameter may still be useful.
2017-08-04 09:56:42 +01:00
Dylan K. Taylor
63c12440dc Fixed items ordering 2017-08-03 17:48:56 +01:00
Dylan K. Taylor
b912b9173c Changed how blocks are registered, add API to allow registering custom blocks 2017-08-03 16:46:48 +01:00
Dylan K. Taylor
ca3cf3e067 Fixed ordering of blocks list and duplicated RedstoneTorch registration 2017-08-03 15:27:46 +01:00
Dylan K. Taylor
8a02dbb15a fix crash when var_dumping packets 2017-08-03 08:47:10 +01:00
xFlare
f0b4a33e2e www.pocketmine.net -> update.pmmp.io (#1263) 2017-07-31 22:44:02 +01:00
Dylan K. Taylor
306bf7be5f Moved dimension id constants to their own interface (PHP needs enums) 2017-07-31 16:38:01 +01:00
Dylan K. Taylor
0b47324fe3 Add some constants to AnimatePacket 2017-07-31 16:03:45 +01:00
Dylan K. Taylor
17be06a56d Rough implementation of double plants, fixes #882 2017-07-31 08:14:01 +01:00
Dylan K. Taylor
caff686827 Fixed grass growth and death, close #436
way too fast to grow back though :S
2017-07-31 08:00:03 +01:00