Dylan K. Taylor
6d5620606e
Block->place() parameter refactor to make things clearer
2017-08-26 14:41:49 +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
1fec16f167
Fix Block::get() regression introduced in 02f42eba
2017-08-25 18:15:53 +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
cd7724d94a
Added concrete
2017-08-25 13:13:11 +01:00
Dylan K. Taylor
76e213ae73
Cleaned up shared rotation code, fixed quartz pillar rotation, added bone blocks
2017-08-25 13:06:16 +01:00
Dylan K. Taylor
8ce833bf74
Stripped redundant trailing commas
2017-08-25 12:41:49 +01:00
Dylan K. Taylor
ba27fff853
Fix formatting derp
2017-08-25 11:53:41 +01:00
Dylan K. Taylor
80f2519d7d
Fixed obsidian hardness, no more destroying obsidian with TNT
2017-08-25 11:52:46 +01:00
Dylan K. Taylor
ebda6ec19b
Cleaned up random-block-ticking registration
2017-08-25 11:47:38 +01:00
Dylan K. Taylor
2443a57234
Merge branch 'master' into mcpe-1.2
2017-08-24 11:57:41 +01:00
Dylan K. Taylor
d6266d19b6
Added correct friction factor for ice & packed-ice
2017-08-23 18:38:09 +01:00
Dylan K. Taylor
770616d4ab
Merge branch 'master' into mcpe-1.2
2017-08-22 20:48:32 +01:00
Dylan K. Taylor
0712979908
Fixed blastResistance array not being initialized
2017-08-22 19:45:53 +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
b8ade18888
Fixed double plants and beds sometimes dropping in creative
2017-08-21 19:25:04 +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
456ddd3fb3
Removed obsolete parameters from Entity->attack() and Entity->heal()
2017-08-21 13:25:11 +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
d1fd6aef44
add type doc
2017-08-20 14:04:02 +01:00
Dylan K. Taylor
cd02f1e4be
Minor performance improvement to explosions
...
This improves calculation time by 20-25% per explosion on flat terrain.
2017-08-20 13:28:31 +01:00
Dylan K. Taylor
eeedcf7332
Refactor Block->getResistance() -> Block->getBlastResistance() and added some documentation
2017-08-20 13:25:43 +01:00
Dylan K. Taylor
8475c63426
Remove redundant brackets from WoodenSlab
2017-08-20 11:02:34 +01:00
Dylan K. Taylor
f2ff0198cc
Fixed slab placement, close #145
2017-08-20 10:52:07 +01:00
Dylan K. Taylor
c394aea803
Replaced more literal ints with Vector3 constants
2017-08-20 10:43:48 +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
bed68a012d
Don't bother doing null checks for block copy
...
This will never be null if the block factory was initialized correctly. This will also cause a crash if bugs like e88053faf4
occur again in the future instead of silently causing unexpected behaviour.
2017-08-19 21:29:24 +01:00
Dylan K. Taylor
e88053faf4
...
2017-08-19 18:25:08 +01:00
Dylan K. Taylor
e51106e64c
Fixed bad overrides of getBoundingBox()
2017-08-19 17:16:22 +01:00
Dylan K. Taylor
0e24596aed
Changed block construction calls to Block::get()
2017-08-19 13:46:17 +01:00
Dylan K. Taylor
64f2e7587d
Some cleanup and added missing strict types declare for EndRod
2017-08-19 11:11:49 +01:00
Dylan K. Taylor
4a3f01703e
Removed redundant override method
2017-08-18 19:52:23 +01:00
Dylan K. Taylor
41c6cb6f97
Added Block->getVariantBitmask(0 to cut down on getDrops() boilerplate, fixed several blocks incorrectly retaining meta when broken
2017-08-18 19:49:28 +01:00
Dylan K. Taylor
384a4b3a09
Who put this here?
2017-08-18 18:59:34 +01:00
Dylan K. Taylor
e5e76d4c93
Merge branch 'master' into mcpe-1.2
2017-08-18 18:39:39 +01:00
Daniktheboss
a7ad26426f
Add stained glass and stained glass pane ( #1298 )
2017-08-18 18:30:03 +01:00
Dylan K. Taylor
f73d3d086e
Added some new blocks, fixed collisions not being detected when standing on top of a full block
2017-08-18 13:58:05 +01:00
Dylan K. Taylor
41f5cba971
Added End Rods, close #940
2017-08-18 13:05:39 +01:00
Dylan K. Taylor
d8f0dd6db8
Changed Block->getDrops() to return Item[]
2017-08-18 11:21:33 +01:00
Dylan K. Taylor
4f1302adf2
Merge branch 'master' into mcpe-1.2
2017-08-17 17:14:16 +01:00
Dylan K. Taylor
83af4dcd59
Block API typehints
2017-08-17 13:50:19 +01:00
Dylan K. Taylor
f6c31680f6
Fixed unknown blocks dropping themselves
2017-08-17 13:25:11 +01:00
Dylan K. Taylor
9e02f3c4e3
Fixed redstone lamp light levels and hardness
2017-08-17 11:47:10 +01:00
Dylan K. Taylor
2cd05bf5b5
Removed redundant Block constructor overrides
2017-08-17 11:42:26 +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
696c67f541
Missed a couple
2017-08-16 14:43:18 +01:00