Class WorldMaterial

java.lang.Object
com.render.api.world.WorldMaterial

public final class WorldMaterial extends Object
Immutable material state shared by retained and immediate commands.
  • Field Details

  • Method Details

    • builder

      public static WorldMaterial.Builder builder()
    • toBuilder

      public WorldMaterial.Builder toBuilder()
    • paint

      public WorldPaint paint()
    • texture

      public net.minecraft.resources.Identifier texture()
    • depthMode

      public WorldDepthMode depthMode()
    • blendMode

      public WorldBlendMode blendMode()
    • cullMode

      public WorldCullMode cullMode()
    • lighting

      public WorldLighting lighting()
    • opacity

      public float opacity()
    • doubleSided

      public boolean doubleSided()
    • vfx

      public WorldVfxMaterial vfx()
    • renderOrder

      public int renderOrder()
      Explicit priority inside an opaque/translucent phase; lower values render first, equal values use distance.
    • portableFallback

      public WorldMaterial portableFallback()
      Returns the selected graph's portable surface. Extracted model commands retain the nonwinning model layers, owner animation and instance color on this surface as well as on the direct surface; shared graph bindings and the authored fallback remain immutable.
    • translucent

      public boolean translucent()