Interface ModPlatform
public interface ModPlatform
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModPlatformget()getModName(String modId) The mod's display name, if it's loaded.booleanisClient()booleanbooleanisFabric()booleanisFakePlayer(net.minecraft.world.entity.player.Player player) booleanisForge()booleanbooleanisModLoaded(String modId) booleanOptional<byte[]> readModIcon(String modId) The bytes of the mod's icon image (its logo on NeoForge), if it has one.
-
Method Details
-
get
-
isDevelopmentEnvironment
boolean isDevelopmentEnvironment() -
isFabric
boolean isFabric() -
isForge
boolean isForge() -
isNeoforge
boolean isNeoforge() -
isForgeLike
boolean isForgeLike() -
isModLoaded
-
getGameFolder
Path getGameFolder() -
getConfigFolder
Path getConfigFolder() -
isClient
boolean isClient() -
isFakePlayer
boolean isFakePlayer(net.minecraft.world.entity.player.Player player) -
getModName
The mod's display name, if it's loaded. -
readModIcon
The bytes of the mod's icon image (its logo on NeoForge), if it has one.
-