721 Commits

Author SHA1 Message Date
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 e88053faf452df60262aad3e40c83dfed7f5dfa3 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
Dylan K. Taylor
021dbd65d7 Cleaned up some copy-pasted code for coloured blocks names 2017-08-16 14:38:41 +01:00
Dylan K. Taylor
8510be062c Nether Reactor block is back
This should never have been removed, it exists as an unobtainable block in vanilla which drops iron and diamond.
2017-08-16 14:17:14 +01:00
Dylan K. Taylor
7b142d4742 Generated some TODO comments for blocks 2017-08-16 13:25:36 +01:00
Dylan K. Taylor
643e10037c Merge branch 'master' into mcpe-1.2 2017-08-16 13:19:37 +01:00
Dylan K. Taylor
0257432afc Fixed a typo in BlockIds 2017-08-16 13:17:22 +01:00
Dylan K. Taylor
4950157f1d How did this escape notice? 2017-08-16 13:08:30 +01:00
Dylan K. Taylor
c4d8c28338 Some inspection fixes 2017-08-16 13:07:33 +01:00
Dylan K. Taylor
fbe2567e58 Merge branch 'master' into mcpe-1.2 2017-08-16 12:31:12 +01:00
Dylan K. Taylor
0c798222a4 ... blame PhpStorm EAP 2017-08-10 18:04:44 +01:00
Dylan K. Taylor
e8bd0c3e09 add typehints to Metadatable interface and implementations, fix missing return for Block->hasMetadata() reported in #1285 2017-08-10 18:02:01 +01:00
Dylan K. Taylor
82fd3b540e Fixed a mistake in Block->isBreakable() doc 2017-08-08 22:15:44 +01:00
Dylan K. Taylor
1d0f0a2999 Merge branch 'master' into mcpe-1.2 2017-08-08 10:23:19 +01:00
Dylan K. Taylor
06083d6dc4 s/Item/Block 2017-08-07 16:26:27 +01:00
Dylan K. Taylor
6b5c0af161 Separation of effect handling from Entity, fixes #886 2017-08-07 16:03:54 +01:00
Dylan K. Taylor
6b7a382625 import cleanup and missing strict types declare 2017-08-07 15:42:46 +01:00
Dylan K. Taylor
711d62b5eb Updated block & item IDs from 1.2.0.7
Note to self: these may need updating again later in the beta.
2017-08-06 17:21:52 +01:00
Dylan K. Taylor
10ff2948ac Fixed double wooden slab name inconsistency 2017-08-06 17:15:35 +01:00
Dylan K. Taylor
0d0df3390a Added glazed terracotta 2017-08-06 17:10:06 +01:00
Dylan K. Taylor
d5f6966ce3 Fixed server freeze due to bad light filter values 2017-08-05 23:22:33 +01:00
Dylan K. Taylor
2103c981a9 Replaced literal ints with Vector3 constants for Block->getSide() calls 2017-08-04 13:33:23 +01:00
Dylan K. Taylor
3188f1c053 Removed redundant override 2017-08-04 13:23:46 +01:00
Dylan K. Taylor
fdf71841e1 Added missing strict type declares 2017-08-04 13:17:59 +01:00
Dylan K. Taylor
11fae493a5 Added Nether Wart 2017-08-04 13:17:53 +01:00
Dylan K. Taylor
3135fe3c69 Added API method Block->getItemId(), cleaned up excess wooden stairs and fence-gate classes, added more wooden door types 2017-08-04 13:02:24 +01:00