All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.creoii.creoapi.impl.shader.GameRendererImpl Maven / Gradle / Ivy

The newest version!
package dev.creoii.creoapi.impl.shader;

import net.minecraft.class_279;
import net.minecraft.class_2960;
import net.minecraft.class_757;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class GameRendererImpl {
    public static class_2960 getCurrentPostProcessor(@Nullable class_279 postProcessor) {
        if (postProcessor == null)
            return null;
        return class_2960.method_12829(postProcessor.method_1260());
    }

    public static void setCurrentPostProcessor(class_757 gameRenderer, class_2960 id) {
        gameRenderer.method_3168(id);
    }

    public static void clearPostProcessors(class_757 gameRenderer) {
        gameRenderer.method_3207();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy