Skip to content

Instantly share code, notes, and snippets.

@Barteks2x
Created December 20, 2017 17:35
Show Gist options
  • Save Barteks2x/9d222434aa87b3529fadb72df3c7ebda to your computer and use it in GitHub Desktop.
Save Barteks2x/9d222434aa87b3529fadb72df3c7ebda to your computer and use it in GitHub Desktop.
stdin
Set<IBlockState> blockStates = new HashSet<IBlockState>();
Block.REGISTRY.forEach(block -> {
if (!block.hasTileEntity(block.getDefaultState())) {
blockStates.add(block.getDefaultState());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment