Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
for (int i = 1; i < 32767; i++) {
Item item = Item.getItemById(i);
Block block = Block.getBlockFromItem(item);
ArrayList<Block> block_list = new ArrayList<Block>();
ArrayList<Item> item_list = new ArrayList<Item>();
if (item != null)
if (block != Blocks.air)
block_list.add(block);
else
item_list.add(item);
}
List<Block> blockList = Lists.newArrayList(Block.blockRegistry.iterator()); //Блоки
List<Item> itemList = Lists.newArrayList(Item.itemRegistry.iterator()); //Предметы
Item[] items = Iterators.toArray(Iterators.filter(Iterators.forArray(Item.itemList), Predicates.notNull()), Item.class); //Предметы
Block[] blocks = Iterators.toArray(Iterators.filter(Iterators.forArray(Block.blockList), Predicates.notNull()), Block.class); //Блоки