Class ToucanGuiLayers

java.lang.Object
com.jvn.toucanlib.neoforge.client.ToucanGuiLayers

public final class ToucanGuiLayers extends Object
Convenience wrappers for registering NeoForge GUI layers with ToucanLib-style ids.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
    registerAbove(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, net.minecraft.resources.ResourceLocation other, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
    Registers a GUI layer above another layer.
    static net.minecraft.resources.ResourceLocation
    registerAboveAll(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
    Registers a GUI layer above all others.
    static net.minecraft.resources.ResourceLocation
    registerBelow(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, net.minecraft.resources.ResourceLocation other, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
    Registers a GUI layer below another layer.
    static net.minecraft.resources.ResourceLocation
    registerBelowAll(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
    Registers a GUI layer below all others.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerBelowAll

      public static net.minecraft.resources.ResourceLocation registerBelowAll(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
      Registers a GUI layer below all others.
    • registerBelow

      public static net.minecraft.resources.ResourceLocation registerBelow(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, net.minecraft.resources.ResourceLocation other, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
      Registers a GUI layer below another layer.
    • registerAbove

      public static net.minecraft.resources.ResourceLocation registerAbove(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, net.minecraft.resources.ResourceLocation other, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
      Registers a GUI layer above another layer.
    • registerAboveAll

      public static net.minecraft.resources.ResourceLocation registerAboveAll(net.neoforged.neoforge.client.event.RegisterGuiLayersEvent event, String modId, String path, net.minecraft.client.gui.LayeredDraw.Layer layer)
      Registers a GUI layer above all others.