af2435f199
Removed redundant checks from ItemFactory::init() and BlockFactory::init()
...
These are never called accidentally, or at least it's highly unlikely to do so. It might be reasonable to throw exceptions for this, but for the meantime they are redundant - extra indentation for no good reason.
This also removes the $force parameter from BlockFactory::init().
2018-02-15 17:42:03 +00:00
a84aba5517
Replaced some bad usages of Vector3 get*() with their respective getFloor*()
2018-02-14 18:45:10 +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
686e1c4470
Implement ender chest ( #1462 )
2017-11-22 14:25:21 +00:00
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
5c92c8a9d3
added red sandstone and red sandstone stairs
2017-10-18 19:42:12 +01:00
d2dc49cd9c
Refactor Slab logic away from WoodenSlab, added StoneSlab2 and its double
2017-10-18 19:27:54 +01:00
eeea4fa06a
Added some new blocks
2017-10-13 11:51:38 +01:00
3eb73ab468
Abstracted Fence code away from wooden fences
2017-10-12 17:04:49 +01:00
d8b1757ebc
added some nullable and void typehints to Block API
2017-10-11 18:45:40 +01:00
2be8b576ef
Changed constructor of ItemBlock to allow handling blocks with different item IDs, added more doors
2017-10-09 11:58:58 +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
f5b0cbb337
Generated some TODOs for BlockFactory & ItemFactory
2017-09-26 16:15:35 +01:00
5aba87b250
Added brown and red mushroom blocks
2017-09-21 14:07:51 +01:00
07268e4b37
Added API methods to determine if a block or item is already registered
2017-09-11 16:22:55 +01:00
6abef6b22d
Made block and item factory lists private to stop people doing stupid things with them
2017-08-29 10:53:01 +01:00
37b050f864
Return an UnknownBlock if the BlockFactory hasn't been initialized yet
2017-08-28 17:07:39 +01:00
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
1fec16f167
Fix Block::get() regression introduced in 02f42eba
2017-08-25 18:15:53 +01:00
cd7724d94a
Added concrete
2017-08-25 13:13:11 +01:00
76e213ae73
Cleaned up shared rotation code, fixed quartz pillar rotation, added bone blocks
2017-08-25 13:06:16 +01:00
0712979908
Fixed blastResistance array not being initialized
2017-08-22 19:45:53 +01:00
8a35b9da29
Added some documentation
2017-08-22 10:28:43 +01:00
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00