Interface ModPlatform


public interface ModPlatform
  • Method Details

    • get

      static ModPlatform get()
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
    • isFabric

      boolean isFabric()
    • isForge

      boolean isForge()
    • isForgeLike

      boolean isForgeLike()
    • isModLoaded

      boolean isModLoaded(String modId)
    • getGameFolder

      Path getGameFolder()
    • getConfigFolder

      Path getConfigFolder()
    • isClient

      boolean isClient()
    • isFakePlayer

      boolean isFakePlayer(net.minecraft.world.entity.player.Player player)
    • getModName

      Optional<String> getModName(String modId)
      The mod's display name, if it's loaded.
    • readModIcon

      Optional<byte[]> readModIcon(String modId)
      The bytes of the mod's icon image (its logo on Forge), if it has one.