Class EntitySpectatorShaderManager

java.lang.Object
net.neoforged.neoforge.client.EntitySpectatorShaderManager

public final class EntitySpectatorShaderManager extends Object
Manager for entity spectator mode shaders.

Provides a lookup.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static Map<net.minecraft.world.entity.EntityType<?>,net.minecraft.resources.ResourceLocation>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.minecraft.resources.ResourceLocation
    get(net.minecraft.world.entity.EntityType<?> entityType)
    Finds the path to the spectator mode shader used for the specified entity type, or null if none is registered.
    static void
     

    Methods inherited from class java.lang.Object

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

    • SHADERS

      private static Map<net.minecraft.world.entity.EntityType<?>,net.minecraft.resources.ResourceLocation> SHADERS
  • Constructor Details

    • EntitySpectatorShaderManager

      private EntitySpectatorShaderManager()
  • Method Details

    • get

      @Nullable public static @Nullable net.minecraft.resources.ResourceLocation get(net.minecraft.world.entity.EntityType<?> entityType)
      Finds the path to the spectator mode shader used for the specified entity type, or null if none is registered.
    • init

      @Internal public static void init()