Dylan K. Taylor
b21572774a
Tool: cleanup durability handling, closes #379
...
long overdue... this isn't quite as extensible as the original api3/blocks system was, but this is primarily intended to replace Item->useOn(). If plugins want to use it it can be extended later on.
2018-05-10 19:48:51 +01:00
Dylan K. Taylor
3095eb544d
Item: removed isTool()
...
this should be replaced with `instanceof Tool`.
2018-05-01 20:05:53 +01:00
Dylan K. Taylor
98b36fd73e
Enchantment: Implemented Efficiency
...
This is only needed server-side for block-break animation times.
2018-01-11 20:13:57 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
b903161a5d
Refactored tool efficiency handling
...
This fixes lots of bugs with things like wool, cobwebs, swords.
2017-12-12 13:55:36 +00:00
Dylan K. Taylor
58327d0514
Change block tool types to bitflags
...
This allows specification of multiple tool types for a block, such as cobwebs.
2017-12-12 13:51:33 +00:00
Dylan K. Taylor
55d0684565
Move block-breaking tool-type constants to a BlockToolType interface
2017-12-12 13:45:52 +00:00
Dylan K. Taylor
2088a43c56
Refactored tool hierarchy
2017-12-12 13:45:51 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00: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
697ea55fb7
Another typehint
2017-08-27 20:01:38 +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
44dd7c2222
Removed some redundant item classes
2017-08-25 14:07:50 +01:00
Dylan K. Taylor
7ff143c793
Some minor tool cleanup
2017-08-25 13:19:21 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
PEMapModder
329a525ea1
Implemented food and hunger
2016-02-10 22:49:48 +08:00
Shoghi Cervantes
7f8b39a63c
Renamed NBT tags to have Tag in the name
2015-08-23 00:25:29 +02:00
Shoghi Cervantes
b3efb733a2
Improved block breaking timing, added faster block breaking with swords
2015-08-08 00:33:52 +02:00
Shoghi Cervantes
02cb9d69a9
Save items properly on several places, added NBT::getItemHelper() and NBT::putItemHelper()
2015-08-06 21:44:00 +02:00
Shoghi Cervantes
f3c46b12c5
Block breaking part 1
2015-07-27 20:31:55 +02:00
Shoghi Cervantes
fbbe02a3bc
Fixed some issues related to new indexes
2015-05-16 22:36:55 +02:00
Shoghi Cervantes
747f7685e7
Fix formatting issues due to bad IDE settings
2014-12-07 16:30:04 +01:00
Shoghi Cervantes
7506f01302
Improved Item property handling
2014-12-07 15:51:00 +01:00
Shoghi Cervantes
a98da3bab1
Renamed old getID() calls to getId()
2014-12-07 15:21:32 +01:00
Shoghi Cervantes
dda9c598f1
Added new Tool type selection constants
2014-10-07 10:16:05 +02:00
Shoghi Cervantes
eab86f5f90
Replaced array() with []
2014-08-28 17:04:22 +02:00
Shoghi Cervantes
279a438ae6
Fixed spawning of Tile entities via chunk packets
2014-06-22 18:05:42 +02:00
Shoghi Cervantes
f073a5b837
Fixed a few things
2014-06-17 18:46:16 +02:00
Shoghi Cervantes
778ec96d72
Added Hardened Clay and Stained Clay
2014-06-16 16:02:01 +02:00
Shoghi Cervantes
7cd29f0fcf
Added block updates, correct block placing
2014-04-02 05:36:45 +02:00
Shoghi Cervantes
9a5ffbe56c
Added Tool for Items, new items
2014-04-02 04:26:53 +02:00