Dylan K. Taylor
1c9b4f3e21
Fixed ItemBlocks retaining Level references after being placed, close #1395
2017-09-27 12:04:56 +01:00
Dylan K. Taylor
48d2d7e422
Remove unused import from FoodSource
2017-09-27 12:01:55 +01:00
Dylan K. Taylor
c47f1f572c
Added API method Item->pop()
2017-09-27 10:56:04 +01:00
Dylan K. Taylor
f5b0cbb337
Generated some TODOs for BlockFactory & ItemFactory
2017-09-26 16:15:35 +01:00
Dylan K. Taylor
18777a9041
Remove useless EntityEventPacket
...
vanilla doesn't send this, and it doesn't do anything if we _do_ send it.
2017-09-26 12:50:36 +01:00
Dylan K. Taylor
8811188e71
Split FoodSource up into two interfaces
2017-09-26 11:48:47 +01:00
Dylan K. Taylor
bd64172750
Added API method Item->equalsExact() and removed some boilerplate code
2017-09-15 16:48:46 +01:00
Dylan K. Taylor
6b34c47c96
Merge branch 'master' into mcpe-1.2
2017-09-14 18:16:45 +01:00
Dylan K. Taylor
130a60f2b2
Fixed ItemFactory::isRegistered() returns false for blocks
2017-09-11 18:23:26 +01:00
Dylan K. Taylor
07268e4b37
Added API methods to determine if a block or item is already registered
2017-09-11 16:22:55 +01:00
Dylan K. Taylor
16cb75ef38
Merge branch 'master' into mcpe-1.2
2017-09-09 21:58:30 +01:00
Dylan K. Taylor
78d49f8e66
Merge branch 'php/7.0' into mcpe-1.2
2017-09-03 15:02:41 +01:00
Dylan K. Taylor
de6ebc5791
Merge branch 'php/7.0'
2017-09-03 15:00:29 +01:00
Dylan K. Taylor
815c697767
Fixed sticks being useless as furnace fuel
2017-09-03 14:59:04 +01:00
Dylan K. Taylor
231617b9d0
fuel time should be ticks here, not seconds
2017-09-03 14:27:17 +01:00
Dylan K. Taylor
90cb3c010f
Added some new items (the basic ones)
2017-09-03 14:24:21 +01:00
Dylan K. Taylor
89f5567476
Use Entity->getDirectionVector() more
2017-09-03 12:08:40 +01:00
Dylan K. Taylor
4df261b75a
Made some variable names in Bucket less confusing
2017-09-03 12:00:24 +01:00
Dylan K. Taylor
75e32b11b7
Merge branch 'php/7.0' into mcpe-1.2
2017-09-02 18:29:53 +01:00
Dylan K. Taylor
1c02c747ca
Merge branch 'php/7.0'
2017-09-02 13:13:54 +01:00
Dylan K. Taylor
b071ce9c5a
Refactored projectile handling, added Item->onClickAir()
2017-09-02 11:57:26 +01:00
Dylan K. Taylor
5d75d3d5b6
Merge branch 'php/7.0' into mcpe-1.2
2017-09-01 23:10:58 +01:00
Dylan K. Taylor
00e4fff259
Fixed Item fromString() crash on PHP 7.2
2017-09-01 20:05:04 +01:00
Dylan K. Taylor
14ea76ecd7
Fixed PlayerBucketEmptyEvent never called, close #1339
2017-09-01 19:36:57 +01:00
Dylan K. Taylor
6abef6b22d
Made block and item factory lists private to stop people doing stupid things with them
2017-08-29 10:53:01 +01:00
Dylan K. Taylor
b5d2402c9b
Merge branch 'master' into mcpe-1.2
2017-08-28 18:02:09 +01:00
Dylan K. Taylor
d07b5ba1e1
Added missing return to Bow, fixed #1329
2017-08-27 20:40:30 +01:00
Dylan K. Taylor
697ea55fb7
Another typehint
2017-08-27 20:01:38 +01:00
Dylan K. Taylor
c7fd3eb725
Merge branch 'master' into mcpe-1.2
2017-08-27 16:09:23 +01:00
Dylan K. Taylor
a5f5502380
Moved bow functionality out of Player
2017-08-26 19:04:04 +01:00
Dylan K. Taylor
13187e1749
Removed damage-table mess and added API methods Item->getAttackPoints() and Item->getDefensePoints()
2017-08-26 12:59:03 +01:00
Dylan K. Taylor
9e142655ea
Removed redundant count parameter from item constructors, added some documentation and tightened safety checks
...
the count parameter is useless since Item ctor should now only be used for constructing item _types_, not actual items. All item creations for inventories etc, should go through the ItemFactory.
2017-08-25 19:06:23 +01:00
Dylan K. Taylor
4ab286a142
Generated some Item TODOs
2017-08-25 14:35:50 +01:00
Dylan K. Taylor
44dd7c2222
Removed some redundant item classes
2017-08-25 14:07:50 +01:00
Dylan K. Taylor
97911aa9cf
Fix undetected collision of nether brick block and nether brick item
2017-08-25 13:36:36 +01:00
Dylan K. Taylor
7ff143c793
Some minor tool cleanup
2017-08-25 13:19:21 +01:00
Dylan K. Taylor
17518195d1
Be more smart about json-serializing items
...
Don't include nbt_hex if we don't have a NBT tag
Don't include damage unless it's non-zero
Don't include count unless it's non-1
2017-08-24 12:02:03 +01:00
Dylan K. Taylor
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
Dylan K. Taylor
8a35b9da29
Added some documentation
2017-08-22 10:28:43 +01:00
Dylan K. Taylor
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
Dylan K. Taylor
604d11a8fd
import cleanup and fixed an inspection
2017-08-21 17:39:02 +01:00
Dylan K. Taylor
d2ace6bdd2
added some typedocs
...
shut up PhpStorm
2017-08-21 17:17:47 +01:00
Dylan K. Taylor
1f70a7830e
Branch merge
2017-08-20 21:07:19 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
e1d894057c
Changed face position floating-point params to Vector3s
2017-08-20 10:23:34 +01:00
Dylan K. Taylor
159b2e3d5e
Merge branch 'master' into mcpe-1.2
2017-08-19 21:42:33 +01:00
Dylan K. Taylor
0e24596aed
Changed block construction calls to Block::get()
2017-08-19 13:46:17 +01:00
Dylan K. Taylor
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +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
b4c4005009
Some condition simplifications suggested by static analysis
2017-08-16 20:06:48 +01:00