Refractored Material into api

Signed-off-by: Waterpicker <Waterpicker@rocketmail.com>
Merge branch 'master' of https://github.com/Waterpicker/Vanilla.git