dev.creoii.creoapi.impl.shader.GameRendererImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of creo-shader-interaction-api Show documentation
Show all versions of creo-shader-interaction-api Show documentation
Interaction with vanilla shaders.
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();
}
}