Optimized to be used with Optifine.