c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00
86eee429bb
Block: Split onUpdate() into several functions, removed Level::BLOCK_UPDATE_* constants
...
This allows the removal of lots of ugly code, and also exposes lots of similarities with how this update type was handled. This can be further improved in the future to more generically handle cases.
I realized in the process of changing this, that it might actually be simpler to treat to treat scheduled updates and neighbour updates as one and the same. They use the same mechanism for being saved on chunks (TileTicks),
and doing that would make updating only require one queue instead of two.
RedstoneOre: use onActivate() to trigger glowing
this is not technically correct behaviour, but this preserves the current behaviour.
2018-03-13 17:29:46 +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
50be26958a
Added a helper function Entity->createBaseNBT() to cut down on boilerplate code
2017-10-19 17:36:51 +01:00
a33be643c4
Fixed falling blocks not falling when placed above fire, close #1425
...
yes, hardcoding this is not a nice solution - PC also does this, want to fight?
2017-09-29 14:53:23 +01:00
c79a5509f6
Implemented concrete powder
...
this is a little buggy with water updating due to a hack for liquids to fix a CPU leak (210bdc2436
), but everything works fine when a block nearby gets updated.
2017-09-26 18:56:43 +01:00
8ce833bf74
Stripped redundant trailing commas
2017-08-25 12:41:49 +01:00
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
83af4dcd59
Block API typehints
2017-08-17 13:50:19 +01:00
a4b8dd43e6
Removed useless confusing array indices in CompoundTag constructors ( #1116 )
2017-06-20 12:11:24 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
49eb0eb050
Fixed falling sand glitching on landing, minor logic improvements
2017-05-04 17:48:39 +01:00
c21197ef17
Removed entanglement between chunks and providers. WARNING: BREAKING API CHANGES.
...
- All entity and tile constructors now require a \pocketmine\level\Level instead of a \pocketmine\level\format\Chunk.
- Chunk->getProvider() and Chunk->setProvider() have been removed.
- Chunk::__construct() has had the $provider parameter removed.
- Chunk->unload() has had the unused $save parameter removed.
- ChunkEvents now take a Level parameter instead of going through the Chunk
API bump to 3.0.0-ALPHA4
2017-02-21 17:08:45 +00:00
9004417456
Fixed file headers ( #255 )
2017-01-13 16:57:05 +00:00
aa8a13c4a3
Fix a bunch of block update bugs due to ancient code
2016-12-16 17:08:38 +00:00
0380c78926
Remove redundant override in Fallable
2016-12-16 16:33:31 +00:00
6fc435da0e
Imports rearrangement
2016-10-03 00:43:46 +08:00
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
0380e9009a
Added block break tool type, fixed falling sand, fixed duplicated jungle leaves
2015-07-27 20:31:55 +02:00
b1edfd7631
Improved Falling blocks physics, entity kill, chunk unserialize, fixed flat generator color, fixed nbt tags __toString(), fixed explosion offsets, fixed increased player interaction range in creative
2015-05-13 12:18:59 +02:00
9ec609d025
Improved Player flight detection after setMotion(), other method improvement
2015-05-03 13:42:54 +02:00
a98da3bab1
Renamed old getID() calls to getId()
2014-12-07 15:21:32 +01:00
a0d4bff385
Block creating and property handling rewrite, part1
2014-12-07 01:53:27 +01:00
78f8d0280d
Removed unused imports
2014-10-29 01:14:09 +01:00
b6f7ee20fc
Added Error -> Exception handling
2014-10-28 20:43:36 +01:00
0fce83c671
Fixed #2189
2014-10-28 13:27:30 +01:00
34ae760def
New way to spawn entities/tiles using a global register table, allow overriding default entity/tile classes via classes
2014-10-28 13:09:27 +01:00
8e7077ff4b
Update FallingBlock to new Anvil formats, possible fix for #2189
...
I don't have time to test yet, so I am not sure if it does fix it.
2014-10-25 12:26:57 +08:00
883f93cc8c
Improved item drop spawning
2014-10-13 22:45:04 +02:00
62af784d37
Removed unused imports
2014-10-08 17:00:23 +02:00
582c165479
Implemented Explosion and PrimedTNT, closes #2139
2014-10-07 17:46:01 +02:00
31bb6d1a68
Changed base block classes to abstract, closes #2159
2014-10-06 09:27:44 +02:00
5db45222c6
Deprecated Level->getChunkAt() in favor of Level->getChunk()
2014-09-26 10:31:32 +02:00
98e0583f34
Implemented Falling Sand
2014-09-05 10:50:06 +02:00
049103ab7a
Improved Block selection and construction performance
2014-08-25 16:39:47 +02:00
c1546aac9c
Updated Position to use Weak / strong references for Level objects
2014-05-22 04:14:06 +02:00
7cd29f0fcf
Added block updates, correct block placing
2014-04-02 05:36:45 +02:00
dd17652aca
Fixed wrong paths
2014-04-01 05:06:12 +02:00