Class PlatformGetter

java.lang.Object
net.dillon.dillonlib.platform.PlatformGetter

public class PlatformGetter extends Object
The main platform getter for DillonLib. You need to make your own platform getter for your mod that is linked to your mod id!
See Also:
  • Constructor Details

    • PlatformGetter

      public PlatformGetter()
  • Method Details

    • getDillonLibPlatform

      public static ModPlatform getDillonLibPlatform()
      The mod's multi-loader platform. In this example we provide a platform helper which provides information about what platform the mod is running on. For example this can be used to check if the code is running on Forge vs Fabric, or to ask the ModLoader if another mod is loaded.
      Returns:
      the main platform, specifically for DillonLib. You should create your own get method to get the correct platform for your mod.