Class Loaders

java.lang.Object
com.oliveryasuna.mc.rubric.neoforge.Loaders

public final class Loaders extends Object
Factory for loader-specific SPI implementations. Consumer code calls these factories instead of new NeoForgePlatform() directly so the Fabric/NeoForge variants can be swapped at the source-tree boundary — the fabric module ships a parallel Loaders that returns the Fabric implementations.
  • Method Details

    • platform

      public static com.oliveryasuna.mc.rubric.platform.Platform platform()
    • permissionGate

      public static com.oliveryasuna.mc.rubric.platform.PermissionGate permissionGate()
    • serverTransport

      public static com.oliveryasuna.mc.rubric.sync.NetworkTransport serverTransport()
    • clientTransport

      public static com.oliveryasuna.mc.rubric.sync.NetworkTransport clientTransport()
    • registerMcCodecs

      public static void registerMcCodecs(com.oliveryasuna.mc.rubric.value.CodecRegistry codecs)
      Registers MC-type codecs into codecs so consumer configs can declare ResourceLocation and UUID fields out of the box. Idempotent; later registerCustom calls win.