Clean-up some misc. parts of the code

This commit is contained in:
Kenzie Togami
2019-05-23 22:19:25 -07:00
committed by Matthew Miller
parent dc21b4df58
commit 8c17aab9c5
6 changed files with 26 additions and 12 deletions

View File

@ -65,7 +65,7 @@ public class BlockState implements BlockStateHolder<BlockState> {
this.values = new LinkedHashMap<>();
this.emptyBaseBlock = new BaseBlock(this);
}
BlockState initializeId(BlockRegistry registry) {
this.internalId = registry.getInternalBlockStateId(this);
return this;

View File

@ -73,5 +73,6 @@ public interface BlockRegistry {
* @param id The internal ID
* @return the block state, if available
*/
@Nullable
BlockState getBlockStateByInternalId(int id);
}