b88a47929f
Modernize property declarations in src/world/*
2022-04-28 15:06:17 +01:00
aae5962f6a
Replace disallowed operators in src/world/
2022-01-20 19:05:23 +00:00
ed4978c31b
Added VanillaItems::AIR()
...
we don't usually add VanillaItems entries for blocks since they already exist in VanillaBlocks, but air has a special use case specifically as an itemstack, so we make an exception for this case.
2021-12-07 00:41:07 +00:00
2f408708f0
Explosion: fixed blocks with tiles not using said tiles for drop info
...
closes #4571
2021-11-14 16:27:47 +00:00
ace8841d5d
Explosion: allow the normal blockupdate mechanism to deal with explosions
...
in PM4, all blockupdates are buffered, so the old 7x performance penalty that used to be incurred by doing this is no longer a problem.
Also, this actually reduces the overhead of explosions themselves by moving the onNearbyBlockChange() burden off explodeB() and into the main world ticking function.
2021-09-12 15:45:02 +01:00
4111d92b98
Stop hardcoding chunk dimensions everywhere ( #4443 )
2021-09-10 16:13:25 +01:00
7fd712c1ff
Refactor Block & Tile: getPos() to getPosition() ( #4395 )
...
this also changes the name of the class property 'pos' to 'position' as well as Block->getPosOffset() to Block->getPositionOffset()
2021-08-23 14:01:32 +01:00
5e9ce92b55
Explosion: don't depend on air having stateID 0
2021-03-25 23:17:33 +00:00
73a8c90bee
Merge remote-tracking branch 'origin/stable'
...
# Conflicts:
# resources/vanilla
# src/world/Explosion.php
# tests/phpunit/item/ItemTest.php
# tests/phpunit/world/format/io/region/RegionLoaderTest.php
# tests/plugins/TesterPlugin/src/pmmp/TesterPlugin/tests/AsyncTaskMainLoggerTest.php
# tests/plugins/TesterPlugin/src/pmmp/TesterPlugin/tests/AsyncTaskMemoryLeakTest.php
2020-11-01 14:21:47 +00:00
ddda2d1e64
Remove $create parameter from ChunkManager::getChunk()
...
this restores SimpleChunkManager's behaviour to PM3, removing the need for GeneratorChunkManager (although I'm dubious whether SubChunkExplorer makes any sense in there any more now that we have morton in the mix).
2020-10-31 21:54:51 +00:00
31c2c3abb5
SubChunkExplorer::moveTo() now returns a status
...
this can be used by SubChunkExplorer subclasses to implement specialized logic.
2020-10-26 16:25:21 +00:00
c9d2edcb4d
Rename SubChunkIteratorManager -> SubChunkExplorer
2020-09-20 12:47:44 +01:00
62394811e3
Merge branch 'stable' into master
...
# Conflicts:
# resources/vanilla
# src/world/Explosion.php
2020-08-16 01:00:04 +01:00
670ad9eb9d
Position: rename getWorldNonNull() to getWorld(), remove original getWorld()
2020-06-29 21:19:46 +01:00
2a9586f6fd
Explosion: fixed assert failure on explodeB()
2020-06-27 23:17:27 +01:00
17054e1001
Merge commit '89521f166d8b43f2fd2af99f367888a34b44c492'
...
# Conflicts:
# resources/vanilla
# src/world/Explosion.php
2020-06-26 18:42:30 +01:00
a16de8747e
Explosion: stop using Vector3->setComponents()
...
this kills two birds with one stone: this inlined version of the logic should be faster than the vector-abusing version.
2020-06-20 22:19:37 +01:00
148228e360
update pocketmine/math, adapt to add() changes
2020-05-19 12:26:18 +01:00
13d784cd0c
Convert BlockFactory to singleton
2020-04-23 23:45:13 +01:00
86e051b7bf
Merge commit 'a2543ff80d2906bccda1a4e2fdbd9d8e7d147fb3'
2020-04-18 17:33:05 +01:00
fb1126797a
Merge branch 'stable'
2020-02-07 18:13:55 +00:00
0b423c5b96
Merge branch 'stable'
2020-01-22 15:16:10 +00:00
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
f7eea9bebb
Merge branch 'stable'
2019-12-13 18:23:01 +00:00
c85c1c3c3f
Merge commit '82d9e481d2a0a389fbbc6dfd3672fc366127febc'
2019-12-11 23:06:35 +00:00
9aab97578b
World: clean up lighting update API
2019-10-23 21:52:39 +01:00
6d24760174
Merge branch 'stable'
2019-10-20 21:25:39 +01:00
6a4ae4cb94
remove position parameters from BlockFactory::get() and BlockFactory::fromFullBlock()
2019-08-24 17:19:27 +01:00
2d4a32fc77
first look at separating Entity and Location
2019-08-19 17:20:34 +01:00
2b38098243
Explosion: fix pos refactor mess
2019-08-12 19:05:21 +01:00
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00
5ea31b57ce
First step to namespaces
2014-03-05 23:43:16 +01:00
23b8fc32ff
removed DocBlock header for logo
2014-03-05 11:15:47 +01:00
2bf3f0de73
Removed EntityAPI
2014-02-27 16:47:49 +01:00
b107191fdb
Renamed ExplosionPacket to ExplodePacket
2014-02-08 13:39:41 +01:00
083bfcc83c
More classes updated
2014-02-07 17:07:57 +01:00
95bff304e4
Changed all Player packets to new network
2014-02-07 16:44:10 +01:00
351ac0d7af
Fixed Event "entity.explosion"
...
The event don't listen to the handler
2013-12-16 19:42:35 -05:00
2d3ba111e0
Rewrote Generic Explosion drop
2013-11-26 12:28:05 +01:00
509e67bfb7
No More Silk Touch On Explosion
2013-11-25 19:28:59 -05:00
d41c30945b
Level optimizations
2013-09-09 10:44:50 +02:00
c4a5a9c849
Better explosion damage calculation
2013-09-08 01:35:48 +02:00
1abe7626bf
Using Vectors for explosions
2013-09-08 00:27:35 +02:00
df174d1b8e
Tuned power again xD
2013-09-07 13:35:32 +02:00
f56dd60708
Correct item drop related to explosion power
2013-09-07 12:37:04 +02:00
2271d0b6fc
Lowered TNT explosion force from 4 to 3
2013-09-07 12:28:18 +02:00
a00375b1a9
Perfect explosions
2013-09-07 11:40:22 +02:00
397b47d719
Added secondary explosions
2013-09-07 02:51:15 +02:00
0ddc48ca80
Vanilla-alike Explosions
2013-09-07 01:28:15 +02:00