Creoii Mod Documentation & Wiki
Creo API
Creo API
  • Overview
  • Setup
  • Packages
    • Block API
    • Block Injection API
    • Content Modification API
    • Convention Tags
    • Entity Attributes
    • Entity-Block Collision API
    • Events
    • Food Component API
    • Item API
    • Mod Compatibility API
    • Registry API
    • Shader Interaction API
    • Worldgen
Powered by GitBook
On this page
  • Setup
  • Shader Interactions
  1. Packages

Shader Interaction API

Interaction with vanilla shaders.

Setup

repositories {
    mavenCentral()
}

dependencies {
    modImplementation 'dev.creoii.creoapi:creo-shader-interaction-api:<VERSION>'
}
repositories {
    mavenCentral()
}

dependencies {
    modImplementation("dev.creoii.creoapi:creo-shader-interaction-api:<VERSION>")
}

Shader Interactions

// Get the Identifier of the current post processor.
public static Identifier getCurrentPostProcessor();

// Set the current post processor.
public static void setCurrentPostProcessor(Identifier id);

// Clear all post processors from the screen.
public static void clearPostProcessors();

This API also includes Shaders.java which stores Identifier references to all built-in post-processors provided by the vanilla game.

PreviousRegistry APINextWorldgen

Last updated 1 year ago