Platform

abstract class Platform

Base class for platform implementations.

Functions

checkPermission
Link copied to clipboard
abstract fun checkPermission(source: CommandSourceStack, permissionNode: String, fallbackLevel: Int): Boolean
Checks for permission of provided command source.
getConfigDirPath
Link copied to clipboard
abstract fun getConfigDirPath(): Path
Gets the path to the directory where the config files are stored.
getItemRegistrySize
Link copied to clipboard
abstract fun getItemRegistrySize(): Int
Gets size of item registry.
isModLoaded
Link copied to clipboard
abstract fun isModLoaded(modId: String): Boolean
Checks whether certain mod is loaded.
openEditorGui
Link copied to clipboard
open fun openEditorGui(player: ServerPlayer)
registerTaterzenType
Link copied to clipboard
abstract fun registerTaterzenType()
Registers the taterzen entity type.