use of net.minecraft.item.BlockItem in project Geolosys by oitsjustjose.
the class ModBlocks method registerItemBlocks.
public void registerItemBlocks(RegistryEvent.Register<Item> itemRegistryEvent) {
for (Types.Ores oreType : Types.Ores.values()) {
Item iBlock = new BlockItem(oreType.getBlock(), new Item.Properties().group(GeolosysGroup.getInstance())).setRegistryName(oreType.getBlock().getRegistryName());
itemRegistryEvent.getRegistry().register(iBlock);
}
for (Types.Ores oreType : Types.Ores.values()) {
Item iBlock = new BlockItem(oreType.getSample(), new Item.Properties().group(GeolosysGroup.getInstance())).setRegistryName(oreType.getSample().getRegistryName());
itemRegistryEvent.getRegistry().register(iBlock);
}
for (Block extra : extras) {
Item iBlock = new BlockItem(extra, new Item.Properties().group(GeolosysGroup.getInstance())).setRegistryName(extra.getRegistryName());
itemRegistryEvent.getRegistry().register(iBlock);
}
}
Aggregations