Sandertv
2794df34ab
Basic implementation of banners, including API to modify them with ease. ( #1331 )
...
Banner crafting is NOT implemented yet.
2017-11-15 11:10:46 +00:00
Dylan K. Taylor
aa399a1109
migrate to new CompoundTag API ( #1515 )
2017-11-10 15:38:21 +00:00
Dylan K. Taylor
733e61f815
add return typehints for Item fluent methods
...
to prevent issues like a2d4baf8b98223839918081cd8a5981fd7bff05d happening again >.>
2017-11-07 09:54:08 +00:00
Dylan K. Taylor
a2d4baf8b9
Fixed ItemBlock->setDamage() not returning a value
2017-11-07 09:44:34 +00:00
Dylan K. Taylor
eab7b93483
Fixed misuse of kill() and close() when deleting entities ( #1490 )
2017-11-04 19:30:48 +00:00
Dylan K. Taylor
e95b1d4b00
look for item IDs in ItemIds instead of Item
...
Item is likely to be more polluted by other constants which aren't item IDs.
2017-11-03 12:42:51 +00:00
Dylan K. Taylor
8ad02c9a4e
Remove redundant condition from ItemFactory
...
it's unrealistic to have a numeric constant name, so this condition is pointless.
2017-11-03 12:41:24 +00:00
Dylan K. Taylor
d1db27016e
s/facePos/clickVector/
...
clickVector better describes this
2017-10-27 19:05:26 +01:00
Dylan K. Taylor
3765511317
rename WritableBook->swapPage() to swapPages()
2017-10-23 17:55:01 +01:00
Dylan K. Taylor
50be26958a
Added a helper function Entity->createBaseNBT() to cut down on boilerplate code
2017-10-19 17:36:51 +01:00
Dylan K. Taylor
5a353012de
Clean up some unused imports
2017-10-19 16:39:34 +01:00
Dylan K. Taylor
2db13bd114
added throwable eggs and refactor some projectile logic
...
close #1473
2017-10-19 14:12:50 +01:00
Dylan K. Taylor
584810780a
Moved projectile-related classes to their own namespace
2017-10-19 12:27:44 +01:00
Dylan K. Taylor
43be64baed
Register some more items
...
the item-blocks will allow their blocks to be placed, but they still won't work until the blocks themselves are added.
2017-10-18 19:52:19 +01:00
Dylan K. Taylor
292e462ea0
Remove nullable return types on CompoundTag getters
...
this doesn't make sense because there are default value parameters for this
2017-10-16 18:22:45 +01:00
Dylan K. Taylor
769a50faa5
Refactor confusing parameter names for Item->onActivate()
...
next: refactor the function itself
2017-10-16 13:30:36 +01:00
Dylan K. Taylor
1641183674
added some typehints to Item
2017-10-16 10:29:44 +01:00
Dylan K. Taylor
72531209bf
Added some constants for frequently-accessed item NBT tags
2017-10-16 10:24:32 +01:00
Dylan K. Taylor
8c6ab3e634
Some cleanup to item NBT handling
2017-10-16 10:15:41 +01:00
Dylan K. Taylor
a547e2cca8
Fixed sub-optimal code in WritableBook
2017-10-15 10:14:02 +01:00
Dylan K. Taylor
97dbf61236
Remove some no-longer-needed item classes
2017-10-09 12:31:57 +01:00
Dylan K. Taylor
2be8b576ef
Changed constructor of ItemBlock to allow handling blocks with different item IDs, added more doors
2017-10-09 11:58:58 +01:00
Dylan K. Taylor
6dbdefafdd
Add the long-awaited Enchantment::registerEnchantment() API method
...
api3/blocks users: I am sorry I kept you waiting so long
2017-10-09 11:40:53 +01:00
Dylan K. Taylor
aa91183504
Added Durable class, fixed some tools not breaking correctly, removed some boilerplate code
2017-10-08 15:54:31 +01:00
Dylan K. Taylor
ae5aa31e7b
Add Item->setNamedTagEntry() and Item->removeNamedTagEntry()
2017-10-08 15:06:30 +01:00
Dylan K. Taylor
8fafef2f7f
Added tagType parameter to ListTag constructor, remove some boilerplate code
2017-10-08 13:28:01 +01:00
Dylan K. Taylor
69e29236aa
Remove some redundant code for checking existence of creative items
...
getCreativeItemIndex() does basically the same thing anyway
2017-10-08 12:50:53 +01:00
Dylan K. Taylor
e8453b7872
Item->getNamedTag() now always returns a CompoundTag object, removed lots of boilerplate code
...
This change resulted from many complaints and ugly boilerplate code because getNamedTag() is only ever used when you want to read from the tag or modify it. If you have code that depends on this returning null, you should use hasCompoundTag() instead.
2017-10-08 12:41:57 +01:00
Dylan K. Taylor
00bf190e54
Make Item->getNamedTag() a bit less ugly
2017-10-08 12:17:18 +01:00
Sandertv
81dee2f9fc
Adding writable and written books. ( #1397 )
...
* Adding writable and written books.
* Added a PlayerEditBookEvent.
* Changed BookEditPacket field names.
2017-10-08 11:49:57 +01:00
Dylan K. Taylor
4dfd171af0
Add flint-steel light sound, close #1434
2017-10-03 19:39:01 +01:00
Dylan K. Taylor
7dc5dc3a9f
Restrict item meta values to max signed short value, closes #1101
2017-10-03 12:35:08 +01:00
Dylan K. Taylor
f7ee78233b
Item IDs should always be unsigned, treat them with appropriate measures ( fixes #1376 )
2017-10-03 12:28:50 +01:00
Matt
9cd7f39c03
Fixed typo on ProjectileItem class ( #1431 )
2017-09-30 16:17:22 +01:00
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