Class FabricModImpl
java.lang.Object
net.dillon.dillonlib.platform.ModPlatform
net.dillon.dillonlib.platform.FabricModImpl
- All Implemented Interfaces:
Loadable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull org.slf4j.Loggerlogger()@NotNull LogoWidthmodId()@NotNull PlatformName@NotNull PlatformReleaseMethods inherited from class ModPlatform
registerCommonCommands, registerEvents, registerServerCommands
-
Constructor Details
-
FabricModImpl
public FabricModImpl()
-
-
Method Details
-
modId
- Specified by:
modIdin interfaceLoadable- Specified by:
modIdin classModPlatform- Returns:
- the mod id for this platform. Should return your mod id from your common mod class.
-
logger
@NotNull public @NotNull org.slf4j.Logger logger()- Specified by:
loggerin classModPlatform- Returns:
- the logger for your mod.
-
modVersion
- Specified by:
modVersionin classModPlatform- Returns:
- your mod version.
-
platformName
- Specified by:
platformNamein classModPlatform- Returns:
- the
PlatformName(fabric, neoforge, forge, etc.)
-
platformRelease
- Specified by:
platformReleasein classModPlatform- Returns:
- the
PlatformRelease(stable/release, beta, or alpha).
-
logoWidth
- Specified by:
logoWidthin classModPlatform- Returns:
- the
LogoWidth. Used specifically in Dillon's mods, but you can branch your own logic with this if you'd like. Otherwise this doesn't do much.
-