Class LuaManager.GlobalObject

java.lang.Object
zombie.Lua.LuaManager.GlobalObject
Enclosing class:
LuaManager

public static class LuaManager.GlobalObject extends Object
Object containing global Lua functions. The methods in this class can be called from Lua using ``methodName()``, instead of qualifying them with the class name, even if they are not static: the instance is state of the Lua environment.
  • Constructor Details

    • GlobalObject

      public GlobalObject()
  • Method Details

    • loadVehicleModel

      public static Model loadVehicleModel(String name, String loc, String tex)
    • loadStaticZomboidModel

      public static Model loadStaticZomboidModel(String name, String loc, String tex)
    • loadSkinnedZomboidModel

      public static Model loadSkinnedZomboidModel(String name, String loc, String tex)
    • loadZomboidModel

      public static Model loadZomboidModel(String name, String mesh, String tex, String shader, boolean bStatic)
    • setModelMetaData

      public static void setModelMetaData(String name, String mesh, String tex, String shader, boolean bStatic)
    • reloadModelsMatching

      public static void reloadModelsMatching(String meshName)
    • getSLSoundManager

      public static SLSoundManager getSLSoundManager()
    • getRadioAPI

      public static RadioAPI getRadioAPI()
    • getRadioTranslators

      public static ArrayList<String> getRadioTranslators(Language language)
    • getTranslatorCredits

      public static ArrayList<String> getTranslatorCredits(Language language)
    • getBehaviourDebugPlayer

      public static IsoGameCharacter getBehaviourDebugPlayer()
    • setBehaviorStep

      public static void setBehaviorStep(boolean b)
    • getPuddlesManager

      public static IsoPuddles getPuddlesManager()
    • getAllAnimalsDefinitions

      public static ArrayList<AnimalDefinitions> getAllAnimalsDefinitions()
    • setPuddles

      public static void setPuddles(float initialPuddles)
    • fastfloor

      public static float fastfloor(float float0)
    • getZomboidRadio

      public static ZomboidRadio getZomboidRadio()
    • getRandomUUID

      public static String getRandomUUID()
    • sendItemListNet

      public static boolean sendItemListNet(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String transferID, String custom)
    • convertToPZNetTable

      public static KahluaTable convertToPZNetTable(KahluaTable table)
    • instof

      public static boolean instof(Object obj, String name)
    • serverConnect

      public static void serverConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, boolean boolean1, int int0, String string7)
    • serverConnectCoop

      public static void serverConnectCoop(String serverSteamID)
    • sendPing

      public static void sendPing()
    • connectionManagerLog

      public static void connectionManagerLog(String string0, String string1)
    • forceDisconnect

      public static void forceDisconnect()
    • checkPermissions

      public static boolean checkPermissions(IsoPlayer player, Capability capability)
    • backToSinglePlayer

      public static void backToSinglePlayer()
    • isIngameState

      public static boolean isIngameState()
    • clearPacketCounts

      public static void clearPacketCounts(int int0, int int1, int int2)
    • getPacketCounts

      public static KahluaTable getPacketCounts(int int0, int int1, int int2, int int3, int int4, int int5)
    • canConnect

      public static boolean canConnect()
    • getReconnectCountdownTimer

      public static String getReconnectCountdownTimer()
    • sendAnimalGenome

      public static void sendAnimalGenome(IsoAnimal animal)
    • addAnimal

      public static IsoAnimal addAnimal(IsoCell cell, int int0, int int1, int int2, String string, AnimalBreed animalBreed, boolean boolean0)
    • addAnimal

      public static IsoAnimal addAnimal(IsoCell cell, int int0, int int1, int int2, String string, AnimalBreed animalBreed)
    • removeAnimal

      public static void removeAnimal(int int0)
    • getFakeAttacker

      public static IsoGameCharacter getFakeAttacker()
    • sendHitVehicle

      public static void sendHitVehicle(IsoGameCharacter character, String string2, boolean boolean0, String string1, String string0, boolean boolean1)
    • requestUsers

      public static void requestUsers()
    • requestPVPEvents

      public static void requestPVPEvents()
    • clearPVPEvents

      public static void clearPVPEvents()
    • getUsers

      public static ArrayList<NetworkUser> getUsers()
    • networkUserAction

      public static void networkUserAction(String string0, String string1, String string2)
    • banUnbanUserAction

      public static void banUnbanUserAction(String string0, String string1, String string2)
    • teleportUserAction

      public static void teleportUserAction(String string0, String string1, String string2)
    • teleportToHimUserAction

      public static void teleportToHimUserAction(String string0, String string1, String string2)
    • requestRoles

      public static void requestRoles()
    • getRoles

      public static ArrayList<Role> getRoles()
    • getCapabilities

      public static ArrayList<Capability> getCapabilities()
    • addRole

      public static void addRole(String string)
    • setupRole

      public static void setupRole(Role role, String string, Color color, KahluaTable table)
    • deleteRole

      public static void deleteRole(String string)
    • setDefaultRoleFor

      public static void setDefaultRoleFor(String string0, String string1)
    • moveRole

      public static void moveRole(byte byte0, String string)
    • getWarNearest

      public static WarManager.War getWarNearest()
    • getWars

      public static ArrayList<WarManager.War> getWars()
    • getHutch

      public static IsoHutch getHutch(int int0, int int1, int int2)
    • getAnimal

      public static IsoAnimal getAnimal(int int0)
    • sendAddAnimalFromHandsInTrailer

      public static void sendAddAnimalFromHandsInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle)
    • sendAddAnimalFromHandsInTrailer

      public static void sendAddAnimalFromHandsInTrailer(IsoDeadBody deadBody, IsoPlayer player, BaseVehicle vehicle)
    • sendAddAnimalInTrailer

      public static void sendAddAnimalInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle)
    • sendAddAnimalInTrailer

      public static void sendAddAnimalInTrailer(IsoDeadBody deadBody, IsoPlayer player, BaseVehicle vehicle)
    • sendRemoveAnimalFromTrailer

      public static void sendRemoveAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle)
    • sendRemoveAndGrabAnimalFromTrailer

      public static void sendRemoveAndGrabAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem animalInventoryItem)
    • sendRemoveAndGrabAnimalFromTrailer

      public static void sendRemoveAndGrabAnimalFromTrailer(IsoDeadBody deadBody, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem animalInventoryItem)
    • sendAttachAnimalToPlayer

      public static void sendAttachAnimalToPlayer(IsoAnimal animal, IsoPlayer player, IsoObject var2, boolean boolean0)
    • sendAttachAnimalToTree

      public static void sendAttachAnimalToTree(IsoAnimal animal, IsoPlayer player, IsoObject object, boolean boolean0)
    • sendPickupAnimal

      public static void sendPickupAnimal(IsoAnimal animal, IsoPlayer player, AnimalInventoryItem animalInventoryItem)
    • sendButcherAnimal

      public static void sendButcherAnimal(IsoDeadBody deadBody, IsoPlayer player)
    • sendFeedAnimalFromHand

      public static void sendFeedAnimalFromHand(IsoAnimal animal, IsoPlayer player, InventoryItem item)
    • sendHutchGrabAnimal

      public static void sendHutchGrabAnimal(IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item)
    • sendHutchGrabCorpseAction

      public static void sendHutchGrabCorpseAction(IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item)
    • sendHutchRemoveAnimalAction

      public static void sendHutchRemoveAnimalAction(IsoAnimal animal, IsoPlayer player, IsoObject object)
    • sendCorpse

      public static void sendCorpse(IsoDeadBody deadBody)
    • getAllItems

      public static ArrayList<Item> getAllItems()
    • scoreboardUpdate

      public static void scoreboardUpdate()
    • save

      public static void save(boolean doCharacter)
    • saveGame

      public static void saveGame()
    • getAllRecipes

      public static ArrayList<Recipe> getAllRecipes()
    • requestUserlog

      public static void requestUserlog(String user)
    • addUserlog

      public static void addUserlog(String user, String type, String text)
    • removeUserlog

      public static void removeUserlog(String user, String type, String text)
    • tabToX

      public static String tabToX(String a, int tabX)
    • isType

      public static boolean isType(Object obj, String name)
    • isoToScreenX

      public static float isoToScreenX(int player, float x, float y, float z)
    • isoToScreenY

      public static float isoToScreenY(int player, float x, float y, float z)
    • screenToIsoX

      public static float screenToIsoX(int player, float x, float y, float z)
    • screenToIsoY

      public static float screenToIsoY(int player, float x, float y, float z)
    • getAmbientStreamManager

      public static BaseAmbientStreamManager getAmbientStreamManager()
    • getSleepingEvent

      public static SleepingEvent getSleepingEvent()
    • setPlayerMovementActive

      public static void setPlayerMovementActive(int id, boolean bActive)
    • setActivePlayer

      public static void setActivePlayer(int id)
    • getPlayer

      public static IsoPlayer getPlayer()
      Gets the current player. To support splitscreen, getSpecificPlayer() should be preferred instead.
      Returns:
      The current player.
    • getNumActivePlayers

      public static int getNumActivePlayers()
    • playServerSound

      public static void playServerSound(String sound, IsoGridSquare sq)
    • getMaxActivePlayers

      public static int getMaxActivePlayers()
    • getPlayerScreenLeft

      public static int getPlayerScreenLeft(int player)
    • getPlayerScreenTop

      public static int getPlayerScreenTop(int player)
    • getPlayerScreenWidth

      public static int getPlayerScreenWidth(int player)
    • getPlayerScreenHeight

      public static int getPlayerScreenHeight(int player)
    • getPlayerByOnlineID

      public static IsoPlayer getPlayerByOnlineID(int id)
    • initUISystem

      public static void initUISystem()
    • getPerformance

      public static PerformanceSettings getPerformance()
    • getWorldSoundManager

      public static WorldSoundManager getWorldSoundManager()
    • getAnimalChunk

      public static AnimalChunk getAnimalChunk(int int1, int int0)
    • AddWorldSound

      public static void AddWorldSound(IsoPlayer player, int radius, int volume)
    • AddNoiseToken

      public static void AddNoiseToken(IsoGridSquare sq, int radius)
    • pauseSoundAndMusic

      public static void pauseSoundAndMusic()
    • resumeSoundAndMusic

      public static void resumeSoundAndMusic()
    • isDemo

      public static boolean isDemo()
    • getTimeInMillis

      public static long getTimeInMillis()
    • getCurrentCoroutine

      public static Coroutine getCurrentCoroutine()
    • reloadLuaFile

      public static Object reloadLuaFile(String string1)
    • reloadServerLuaFile

      public static Object reloadServerLuaFile(String string)
    • setSpawnRegion

      public static void setSpawnRegion(String string)
    • getServerSpawnRegions

      public static KahluaTable getServerSpawnRegions()
    • getServerOptions

      public static ServerOptions getServerOptions()
    • getServerName

      public static String getServerName()
    • getServerIP

      public static String getServerIP()
    • getServerPort

      public static String getServerPort()
    • isShowConnectionInfo

      public static boolean isShowConnectionInfo()
    • setShowConnectionInfo

      public static void setShowConnectionInfo(boolean enabled)
    • isShowServerInfo

      public static boolean isShowServerInfo()
    • setShowServerInfo

      public static void setShowServerInfo(boolean enabled)
    • getSpecificPlayer

      public static IsoPlayer getSpecificPlayer(int player)
    • getCameraOffX

      public static float getCameraOffX()
    • getLatestSave

      public static KahluaTable getLatestSave()
    • isCurrentExecutionPoint

      public static boolean isCurrentExecutionPoint(String file, int line)
    • toggleBreakOnChange

      public static void toggleBreakOnChange(KahluaTable table, Object key)
    • isDebugEnabled

      public static boolean isDebugEnabled()
    • toggleBreakOnRead

      public static void toggleBreakOnRead(KahluaTable table, Object key)
    • toggleBreakpoint

      public static void toggleBreakpoint(String file, int line)
    • sendVisual

      public static void sendVisual(IsoPlayer player)
    • sendSyncPlayerFields

      public static void sendSyncPlayerFields(IsoPlayer player, byte byte0)
    • sendClothing

      public static void sendClothing(IsoPlayer player, String string, InventoryItem item)
    • syncVisuals

      public static void syncVisuals(IsoPlayer player)
    • sendEquip

      public static void sendEquip(IsoPlayer player)
    • sendDamage

      public static void sendDamage(IsoPlayer player)
    • sendPlayerEffects

      public static void sendPlayerEffects(IsoPlayer player)
    • sendItemStats

      public static void sendItemStats(InventoryItem item)
    • hasDataReadBreakpoint

      public static boolean hasDataReadBreakpoint(KahluaTable table, Object key)
    • hasDataBreakpoint

      public static boolean hasDataBreakpoint(KahluaTable table, Object key)
    • hasBreakpoint

      public static boolean hasBreakpoint(String file, int line)
    • getLoadedLuaCount

      public static int getLoadedLuaCount()
    • getLoadedLua

      public static String getLoadedLua(int n)
    • isServer

      public static boolean isServer()
    • isServerSoftReset

      public static boolean isServerSoftReset()
    • isClient

      public static boolean isClient()
    • isMultiplayer

      public static boolean isMultiplayer()
    • canSeePlayerStats

      public static boolean canSeePlayerStats()
    • getAccessLevel

      @Deprecated public static String getAccessLevel()
      Deprecated.
    • haveAccess

      @Deprecated public static boolean haveAccess(String string)
      Deprecated.
    • getOnlinePlayers

      public static ArrayList<IsoPlayer> getOnlinePlayers()
    • getDebug

      public static boolean getDebug()
    • getCameraOffY

      public static float getCameraOffY()
    • createRegionFile

      public static KahluaTable createRegionFile()
      Create a dynamic table containing all spawnpoints.lua we find in vanilla folder + in loaded mods
    • getMapDirectoryTable

      public static KahluaTable getMapDirectoryTable()
    • deleteSave

      public static void deleteSave(String file)
    • sendPlayerExtraInfo

      public static void sendPlayerExtraInfo(IsoPlayer p)
    • getServerAddressFromArgs

      public static String getServerAddressFromArgs()
    • getServerPasswordFromArgs

      public static String getServerPasswordFromArgs()
    • getServerListFile

      @Deprecated public static String getServerListFile()
      Deprecated.
    • addServerToAccountList

      public static void addServerToAccountList(Server server)
    • updateServerToAccountList

      public static void updateServerToAccountList(Server server)
    • deleteServerToAccountList

      public static void deleteServerToAccountList(Server server)
    • addAccountToAccountList

      public static void addAccountToAccountList(Server server, Account account)
    • updateAccountToAccountList

      public static void updateAccountToAccountList(Account account)
    • deleteAccountToAccountList

      public static void deleteAccountToAccountList(Account account)
    • getServerList

      public static KahluaTable getServerList()
    • ping

      public static void ping(String string0, String string1, String string2, String string3, boolean boolean0)
    • getCustomizationData

      public static void getCustomizationData(String string0, String string1, String string2, String string3, String string4, String string5, boolean boolean0)
    • stopPing

      public static void stopPing()
    • transformIntoKahluaTable

      public static KahluaTable transformIntoKahluaTable(HashMap<Object,Object> map)
    • getSaveDirectory

      public static ArrayList<File> getSaveDirectory(String folder)
    • getFullSaveDirectoryTable

      public static KahluaTable getFullSaveDirectoryTable()
    • getSaveName

      public static String getSaveName(File file)
    • getSaveDirectoryTable

      public static KahluaTable getSaveDirectoryTable()
    • getCurrentSaveName

      public static String getCurrentSaveName()
    • getMods

      public static List<String> getMods()
    • doChallenge

      public static void doChallenge(KahluaTable challenge)
    • doTutorial

      public static void doTutorial(KahluaTable tutorial)
    • setMinMaxZombiesPerChunk

      public static void setMinMaxZombiesPerChunk(float float0, float float1)
    • deleteAllGameModeSaves

      public static void deleteAllGameModeSaves(String gameMode)
    • sledgeDestroy

      public static void sledgeDestroy(IsoObject object)
    • getBannedIPs

      public static void getBannedIPs()
    • getBannedSteamIDs

      public static void getBannedSteamIDs()
    • getTickets

      public static void getTickets(String author)
    • addTicket

      public static void addTicket(String author, String message, int ticketID)
    • viewedTicket

      public static void viewedTicket(String string, int int0)
    • removeTicket

      public static void removeTicket(int ticketID)
    • sendFactionInvite

      public static void sendFactionInvite(Faction faction, IsoPlayer host, String invited)
    • acceptFactionInvite

      public static void acceptFactionInvite(Faction faction, String host)
    • sendSafehouseInvite

      public static void sendSafehouseInvite(SafeHouse safehouse, IsoPlayer host, String invited)
    • acceptSafehouseInvite

      public static void acceptSafehouseInvite(SafeHouse safeHouse, String string, IsoPlayer player, boolean boolean0)
    • sendSafehouseChangeMember

      public static void sendSafehouseChangeMember(SafeHouse safeHouse, String string)
    • sendSafehouseChangeOwner

      public static void sendSafehouseChangeOwner(SafeHouse safeHouse, String string)
    • sendSafehouseChangeRespawn

      public static void sendSafehouseChangeRespawn(SafeHouse safeHouse, String string, boolean boolean0)
    • sendSafehouseChangeTitle

      public static void sendSafehouseChangeTitle(SafeHouse safeHouse, String string)
    • sendSafezoneClaim

      public static void sendSafezoneClaim(String string0, int int3, int int2, int int1, int int0, String string1)
    • sendSafehouseClaim

      public static void sendSafehouseClaim(IsoGridSquare square, IsoPlayer player, String string)
    • sendSafehouseRelease

      public static void sendSafehouseRelease(SafeHouse safeHouse)
    • createHordeFromTo

      public static void createHordeFromTo(float spawnX, float spawnY, float targetX, float targetY, int count)
    • createHordeInAreaTo

      public static void createHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count)
    • spawnHorde

      public static void spawnHorde(float x, float y, float x2, float y2, float z, int count)
    • createZombie

      public static IsoZombie createZombie(float x, float y, float z, SurvivorDesc desc, int palette, IsoDirections dir)
    • triggerEvent

      public static void triggerEvent(String event)
    • triggerEvent

      public static void triggerEvent(String event, Object param)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2, Object param3)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2, Object param3, Object param4)
    • debugLuaTable

      public static void debugLuaTable(Object param, int depth)
    • debugLuaTable

      public static void debugLuaTable(Object param)
    • sendItemsInContainer

      public static void sendItemsInContainer(IsoObject obj, ItemContainer container)
    • getModDirectoryTable

      public static KahluaTable getModDirectoryTable()
    • getModInfoByID

      public static ChooseGameInfo.Mod getModInfoByID(String modID)
    • getModInfo

      public static ChooseGameInfo.Mod getModInfo(String modDir)
    • getMapFoldersForMod

      public static ArrayList<String> getMapFoldersForMod(String modID)
    • spawnpointsExistsForMod

      public static boolean spawnpointsExistsForMod(String modID, String mapFolder)
    • getFileSeparator

      public static String getFileSeparator()
      Returns the OS-defined file separator. It is not generally needed to use this, as most functions that expect a filepath string will parse them in an OS-independent way.
      Returns:
      The file separator.
    • getScriptManager

      public static ScriptManager getScriptManager()
    • checkSaveFolderExists

      public static boolean checkSaveFolderExists(String f)
    • getAbsoluteSaveFolderName

      public static String getAbsoluteSaveFolderName(String f)
    • checkSaveFileExists

      public static boolean checkSaveFileExists(String f)
    • checkSavePlayerExists

      public static boolean checkSavePlayerExists()
    • cacheFileExists

      public static boolean cacheFileExists(String string1)
    • fileExists

      public static boolean fileExists(String filename)
    • serverFileExists

      public static boolean serverFileExists(String filename)
    • takeScreenshot

      public static void takeScreenshot()
    • takeScreenshot

      public static void takeScreenshot(String fileName)
    • checkStringPattern

      public static boolean checkStringPattern(String pattern)
    • instanceItem

      public static InventoryItem instanceItem(Item item)
    • instanceItem

      public static InventoryItem instanceItem(String item)
    • instanceItem

      public static InventoryItem instanceItem(String string, float float0)
    • createNewScriptItem

      public static Item createNewScriptItem(String base, String name, String display, String type, String icon)
    • cloneItemType

      public static Item cloneItemType(String newName, String oldName)
    • moduleDotType

      public static String moduleDotType(String module, String type)
    • require

      public static Object require(String f)
    • getRenderer

      public static SpriteRenderer getRenderer()
    • getGameTime

      public static GameTime getGameTime()
    • getStatistics

      public static KahluaTable getStatistics()
    • getMPStatus

      public static KahluaTable getMPStatus()
    • getMaxPlayers

      public static Double getMaxPlayers()
    • callLua

      public static void callLua(String string, Object object)
    • callLuaReturn

      public static ArrayList<Object> callLuaReturn(String string, ArrayList<Object> arrayList0)
    • callLuaBool

      public static Boolean callLuaBool(String string, Object object)
    • getWorld

      public static IsoWorld getWorld()
    • getCell

      public static IsoCell getCell()
    • getCellSizeInChunks

      public static Double getCellSizeInChunks()
    • getCellSizeInSquares

      public static Double getCellSizeInSquares()
    • getChunkSizeInSquares

      public static Double getChunkSizeInSquares()
    • getMinimumWorldLevel

      public static Double getMinimumWorldLevel()
    • getMaximumWorldLevel

      public static Double getMaximumWorldLevel()
    • getSandboxOptions

      public static SandboxOptions getSandboxOptions()
    • getFileOutput

      public static DataOutputStream getFileOutput(String filename)
      Gets an output stream for a file in the Lua cache.
      Parameters:
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      Returns:
      The output stream, or null if the path was not valid.
    • getLastStandPlayersDirectory

      public static String getLastStandPlayersDirectory()
    • getLastStandPlayerFileNames

      public static List<String> getLastStandPlayerFileNames() throws IOException
      Throws:
      IOException
    • getAllSavedPlayers

      @Deprecated public static List<BufferedReader> getAllSavedPlayers() throws IOException
      Deprecated.
      Throws:
      IOException
    • getSandboxPresets

      public static List<String> getSandboxPresets() throws IOException
      Throws:
      IOException
    • deleteSandboxPreset

      public static void deleteSandboxPreset(String name)
    • getFileReader

      public static BufferedReader getFileReader(String filename, boolean createIfNull) throws IOException
      Gets a file reader for a file in the Lua cache.
      Parameters:
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      createIfNull - Whether to create the file if it does not exist. The created file will be empty.
      Returns:
      The file reader, or null if the path was not valid.
      Throws:
      IOException
    • getModFileReader

      public static BufferedReader getModFileReader(String modId, String filename, boolean createIfNull) throws IOException
      Gets a file reader for a file in a mod's directory.
      Parameters:
      modId - ID of the target mod. If null, the path will be relative to the local mods directory.
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      createIfNull - Whether to create the file if it does not exist. The created file will be empty.
      Returns:
      The file reader, or null if the path or mod was not valid.
      Throws:
      IOException
    • listFilesInZomboidLuaDirectory

      public static ArrayList<String> listFilesInZomboidLuaDirectory(String string0) throws IOException
      Throws:
      IOException
    • listFilesInModDirectory

      public static ArrayList<String> listFilesInModDirectory(String string0, String string1) throws IOException
      Throws:
      IOException
    • refreshAnimSets

      public static void refreshAnimSets(boolean reload)
    • reloadActionGroups

      public static void reloadActionGroups()
    • getModFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getModFileWriter(String modId, String filename, boolean createIfNull, boolean append)
      Gets a file writer for a file in a mod's directory. Note: it is generally unwise to write to a mod's lua or scripts directories, as this will change the checksum.
      Parameters:
      modId - ID of the target mod. If null, the path will be relative to the local mods directory.
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      createIfNull - Whether to create the file if it does not exist. The created file will be empty.
      append - Whether to open the file in append mode. If true, the writer will write after the file's current contents. If false, the current contents of the file will be erased.
      Returns:
      The file writer, or null if the path or mod was not valid.
    • updateFire

      public static void updateFire()
    • deletePlayerFromDatabase

      public static void deletePlayerFromDatabase(String string2, String string0, String string1)
    • checkPlayerExistsInDatabase

      public static boolean checkPlayerExistsInDatabase(String string2, String string0, String string1)
    • deletePlayerSave

      public static void deletePlayerSave(String fileName)
    • getControllerCount

      public static int getControllerCount()
    • isControllerConnected

      public static boolean isControllerConnected(int index)
    • getControllerGUID

      public static String getControllerGUID(int joypad)
    • getControllerName

      public static String getControllerName(int joypad)
    • getControllerAxisCount

      public static int getControllerAxisCount(int c)
    • getControllerAxisValue

      public static float getControllerAxisValue(int c, int axis)
    • getControllerDeadZone

      public static float getControllerDeadZone(int c, int axis)
    • setControllerDeadZone

      public static void setControllerDeadZone(int c, int axis, float value)
    • saveControllerSettings

      public static void saveControllerSettings(int c)
    • getControllerButtonCount

      public static int getControllerButtonCount(int c)
    • getControllerPovX

      public static float getControllerPovX(int c)
    • getControllerPovY

      public static float getControllerPovY(int c)
    • reloadControllerConfigFiles

      public static void reloadControllerConfigFiles()
    • isJoypadPressed

      public static boolean isJoypadPressed(int joypad, int button)
    • isJoypadDown

      public static boolean isJoypadDown(int joypad)
    • isJoypadLTPressed

      public static boolean isJoypadLTPressed(int joypad)
    • isJoypadRTPressed

      public static boolean isJoypadRTPressed(int joypad)
    • isJoypadLeftStickButtonPressed

      public static boolean isJoypadLeftStickButtonPressed(int joypad)
    • isJoypadRightStickButtonPressed

      public static boolean isJoypadRightStickButtonPressed(int joypad)
    • getJoypadAimingAxisX

      public static float getJoypadAimingAxisX(int joypad)
    • getJoypadAimingAxisY

      public static float getJoypadAimingAxisY(int joypad)
    • getJoypadMovementAxisX

      public static float getJoypadMovementAxisX(int joypad)
    • getJoypadMovementAxisY

      public static float getJoypadMovementAxisY(int joypad)
    • getJoypadAButton

      public static int getJoypadAButton(int joypad)
    • getJoypadBButton

      public static int getJoypadBButton(int joypad)
    • getJoypadXButton

      public static int getJoypadXButton(int joypad)
    • getJoypadYButton

      public static int getJoypadYButton(int joypad)
    • getJoypadLBumper

      public static int getJoypadLBumper(int joypad)
    • getJoypadRBumper

      public static int getJoypadRBumper(int joypad)
    • getJoypadBackButton

      public static int getJoypadBackButton(int joypad)
    • getJoypadStartButton

      public static int getJoypadStartButton(int joypad)
    • getJoypadLeftStickButton

      public static int getJoypadLeftStickButton(int joypad)
    • getJoypadRightStickButton

      public static int getJoypadRightStickButton(int joypad)
    • wasMouseActiveMoreRecentlyThanJoypad

      public static boolean wasMouseActiveMoreRecentlyThanJoypad()
    • activateJoypadOnSteamDeck

      public static void activateJoypadOnSteamDeck()
    • reactivateJoypadAfterResetLua

      public static boolean reactivateJoypadAfterResetLua()
    • isJoypadConnected

      public static boolean isJoypadConnected(int index)
    • toInt

      public static int toInt(double val)
    • getClientUsername

      public static String getClientUsername()
    • setPlayerJoypad

      public static void setPlayerJoypad(int player, int joypad, IsoPlayer playerObj, String username)
    • setPlayerMouse

      public static void setPlayerMouse(IsoPlayer playerObj)
    • revertToKeyboardAndMouse

      public static void revertToKeyboardAndMouse()
    • isJoypadUp

      public static boolean isJoypadUp(int joypad)
    • isJoypadLeft

      public static boolean isJoypadLeft(int joypad)
    • isJoypadRight

      public static boolean isJoypadRight(int joypad)
    • isJoypadLBPressed

      public static boolean isJoypadLBPressed(int joypad)
    • isJoypadRBPressed

      public static boolean isJoypadRBPressed(int joypad)
    • getButtonCount

      public static int getButtonCount(int joypad)
    • setDebugToggleControllerPluggedIn

      public static void setDebugToggleControllerPluggedIn(int index)
    • lineSeparator

      public static String lineSeparator()
    • getFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getFileWriter(String filename, boolean createIfNull, boolean append)
      Gets a file writer for a file in the Lua cache.
      Parameters:
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      createIfNull - Whether to create the file if it does not exist.
      append - Whether to open the file in append mode. If true, the writer will write after the file's current contents. If false, the current contents of the file will be erased.
      Returns:
      The file writer, or null if the path was not valid.
    • getSandboxFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getSandboxFileWriter(String filename, boolean createIfNull, boolean append)
    • createStory

      public static void createStory(String storyName)
    • createWorld

      public static void createWorld(String worldName)
    • sanitizeWorldName

      public static String sanitizeWorldName(String worldName)
    • forceChangeState

      public static void forceChangeState(GameState state)
    • endFileOutput

      public static void endFileOutput()
    • getFileInput

      public static DataInputStream getFileInput(String filename) throws IOException
      Gets an input stream for a file in the Lua cache.
      Parameters:
      filename - Path, relative to the Lua cache root, to write to. '..' is not allowed.
      Returns:
      The input stream, or null if the path was not valid.
      Throws:
      IOException
    • getGameFilesInput

      public static DataInputStream getGameFilesInput(String filename)
    • getGameFilesTextInput

      public static BufferedReader getGameFilesTextInput(String filename)
    • endTextFileInput

      public static void endTextFileInput()
    • endFileInput

      public static void endFileInput()
    • getLineNumber

      public static int getLineNumber(LuaCallFrame c)
    • ZombRand

      public static double ZombRand(double max)
      Returns a pseudorandom integer between 0 and max - 1.
      Parameters:
      max - Exclusive upper bound of the integer value.
      Returns:
      The random integer.
    • ZombRandBetween

      public static double ZombRandBetween(double min, double max)
      Returns a pseudorandom integer between min and max - 1. No difference from ZombRand(min, max).
      Parameters:
      min - The inclusive lower bound of the random integer.
      max - The exclusive upper bound of the random integer.
      Returns:
      The random integer.
    • ZombRand

      public static double ZombRand(double min, double max)
      Returns a pseudorandom integer between min and max - 1.
      Parameters:
      min - The inclusive lower bound of the random integer.
      max - The exclusive upper bound of the random integer.
      Returns:
      The random integer.
    • ZombRandFloat

      public static float ZombRandFloat(float min, float max)
      Returns a pseudorandom float between min and max.
      Parameters:
      min - The lower bound of the random float.
      max - The upper bound of the random float.
      Returns:
      The random float.
    • getShortenedFilename

      public static String getShortenedFilename(String str)
    • isKeyDown

      public static boolean isKeyDown(int key)
    • isKeyDown

      public static boolean isKeyDown(String string)
    • wasKeyDown

      public static boolean wasKeyDown(int key)
    • wasKeyDown

      public static boolean wasKeyDown(String string)
    • isKeyPressed

      public static boolean isKeyPressed(int key)
    • isKeyPressed

      public static boolean isKeyPressed(String string)
    • getBaseSoundBank

      public static BaseSoundBank getBaseSoundBank()
    • getFMODSoundBank

      public static BaseSoundBank getFMODSoundBank()
    • isSoundPlaying

      public static boolean isSoundPlaying(Object sound)
    • stopSound

      public static void stopSound(long sound)
    • isShiftKeyDown

      public static boolean isShiftKeyDown()
    • isCtrlKeyDown

      public static boolean isCtrlKeyDown()
    • isAltKeyDown

      public static boolean isAltKeyDown()
    • isMetaKeyDown

      public static boolean isMetaKeyDown()
    • setZoomLevels

      public static void setZoomLevels(Double... doubles)
    • getCore

      public static Core getCore()
    • getGameVersion

      public static String getGameVersion()
    • getBreakModGameVersion

      public static GameVersion getBreakModGameVersion()
    • getSquare

      public static IsoGridSquare getSquare(double x, double y, double z)
    • getDebugOptions

      public static DebugOptions getDebugOptions()
    • setShowPausedMessage

      public static void setShowPausedMessage(boolean b)
    • getFilenameOfCallframe

      public static String getFilenameOfCallframe(LuaCallFrame c)
    • getFilenameOfClosure

      public static String getFilenameOfClosure(LuaClosure c)
    • getFirstLineOfClosure

      public static int getFirstLineOfClosure(LuaClosure c)
    • getLocalVarCount

      public static int getLocalVarCount(Coroutine c)
    • getLocalVarCount

      public static int getLocalVarCount(LuaCallFrame luaCallFrame)
    • isSystemLinux

      public static boolean isSystemLinux()
    • isSystemMacOS

      public static boolean isSystemMacOS()
    • isSystemWindows

      public static boolean isSystemWindows()
    • isModActive

      public static boolean isModActive(ChooseGameInfo.Mod mod)
    • openURl

      public static void openURl(String url)
    • isDesktopOpenSupported

      public static boolean isDesktopOpenSupported()
    • showFolderInDesktop

      public static void showFolderInDesktop(String folder)
    • getActivatedMods

      public static ArrayList<String> getActivatedMods()
    • toggleModActive

      public static void toggleModActive(ChooseGameInfo.Mod mod, boolean active)
    • saveModsFile

      public static void saveModsFile()
    • manipulateSavefile

      public static void manipulateSavefile(String folder, String action)
    • getLocalVarName

      public static String getLocalVarName(Coroutine c, int n)
    • getLocalVarName

      public static String getLocalVarName(LuaCallFrame luaCallFrame, int int0)
    • getLocalVarStack

      public static int getLocalVarStack(Coroutine c, int n)
    • getLocalVarStackIndex

      public static int getLocalVarStackIndex(LuaCallFrame luaCallFrame, int int0)
    • getCallframeTop

      public static int getCallframeTop(Coroutine c)
    • getCoroutineTop

      public static int getCoroutineTop(Coroutine c)
    • getCoroutineObjStack

      public static Object getCoroutineObjStack(Coroutine c, int n)
    • getCoroutineObjStackWithBase

      public static Object getCoroutineObjStackWithBase(Coroutine c, int n)
    • localVarName

      public static String localVarName(Coroutine c, int n)
    • getCoroutineCallframeStack

      public static LuaCallFrame getCoroutineCallframeStack(Coroutine c, int n)
    • getLuaStackTrace

      public static ArrayList<String> getLuaStackTrace()
    • createTile

      public static void createTile(String tile, IsoGridSquare square)
    • getNumClassFunctions

      public static int getNumClassFunctions(Object o)
    • getClassFunction

      public static Method getClassFunction(Object o, int i)
    • getNumClassFields

      public static int getNumClassFields(Object o)
    • getClassField

      public static Field getClassField(Object o, int i)
    • getDirectionTo

      public static IsoDirections getDirectionTo(IsoGameCharacter chara, IsoObject objTarget)
    • translatePointXInOverheadMapToWindow

      public static float translatePointXInOverheadMapToWindow(float x, UIElement ui, float zoom, float xpos)
    • translatePointYInOverheadMapToWindow

      public static float translatePointYInOverheadMapToWindow(float y, UIElement ui, float zoom, float ypos)
    • translatePointXInOverheadMapToWorld

      public static float translatePointXInOverheadMapToWorld(float x, UIElement ui, float zoom, float xpos)
    • translatePointYInOverheadMapToWorld

      public static float translatePointYInOverheadMapToWorld(float y, UIElement ui, float zoom, float ypos)
    • drawOverheadMap

      public static void drawOverheadMap(UIElement uIElement, int int0, float float0, float float1, float float2)
    • assaultPlayer

      public static void assaultPlayer()
    • isoRegionsRenderer

      public static IsoRegionsRenderer isoRegionsRenderer()
    • zpopNewRenderer

      public static ZombiePopulationRenderer zpopNewRenderer()
    • zpopSpawnTimeToZero

      public static void zpopSpawnTimeToZero(int cellX, int cellY)
    • zpopClearZombies

      public static void zpopClearZombies(int cellX, int cellY)
    • zpopSpawnNow

      public static void zpopSpawnNow(int cellX, int cellY)
    • addVirtualZombie

      public static void addVirtualZombie(int x, int y)
    • luaDebug

      public static void luaDebug()
    • setAggroTarget

      public static void setAggroTarget(int id, int x, int y)
    • debugFullyStreamedIn

      public static void debugFullyStreamedIn(int x, int y)
    • getClassFieldVal

      public static Object getClassFieldVal(Object o, Field field)
    • getMethodParameter

      public static String getMethodParameter(Method o, int i)
    • getMethodParameterCount

      public static int getMethodParameterCount(Method o)
    • breakpoint

      public static void breakpoint()
    • getLuaDebuggerErrorCount

      public static int getLuaDebuggerErrorCount()
    • getLuaDebuggerErrors

      public static ArrayList<String> getLuaDebuggerErrors()
    • doLuaDebuggerAction

      public static void doLuaDebuggerAction(String action)
    • isQuitCooldown

      public static boolean isQuitCooldown()
    • getGameSpeed

      public static int getGameSpeed()
    • setGameSpeed

      public static void setGameSpeed(int NewSpeed)
    • stepForward

      public static void stepForward()
    • isGamePaused

      public static boolean isGamePaused()
    • getMouseXScaled

      public static int getMouseXScaled()
    • getMouseYScaled

      public static int getMouseYScaled()
    • getMouseX

      public static int getMouseX()
    • setMouseXY

      public static void setMouseXY(int x, int y)
    • isMouseButtonDown

      public static boolean isMouseButtonDown(int number)
    • isMouseButtonPressed

      public static boolean isMouseButtonPressed(int int0)
    • getMouseY

      public static int getMouseY()
    • getSoundManager

      public static BaseSoundManager getSoundManager()
    • getLastPlayedDate

      public static String getLastPlayedDate(String filename)
    • getTextureFromSaveDir

      public static Texture getTextureFromSaveDir(String filename, String saveName)
    • getSaveInfo

      public static KahluaTable getSaveInfo(String saveDir)
    • renameSaveFile

      public static boolean renameSaveFile(String gameMode, String oldName, String newName)
    • setSavefilePlayer1

      public static void setSavefilePlayer1(String gameMode, String saveDir, int sqlID)
    • getServerSavedWorldVersion

      public static int getServerSavedWorldVersion(String saveFolder)
    • getZombieInfo

      public static KahluaTable getZombieInfo(IsoZombie zombie)
    • getPlayerInfo

      public static KahluaTable getPlayerInfo(IsoPlayer player)
    • getMapInfo

      public static KahluaTable getMapInfo(String mapDir)
    • getVehicleInfo

      public static KahluaTable getVehicleInfo(BaseVehicle vehicle)
    • getLotDirectories

      public static ArrayList<String> getLotDirectories()
    • useTextureFiltering

      public static void useTextureFiltering(boolean bUse)
    • getTexture

      public static Texture getTexture(String filename)
    • tryGetTexture

      public static Texture tryGetTexture(String string)
    • sendSecretKey

      public static void sendSecretKey(String string0, String string1, String string2, int int0, String string3, boolean boolean0, int int1, String string4)
    • stopSendSecretKey

      public static void stopSendSecretKey()
    • generateSecretKey

      public static String generateSecretKey()
    • sendGoogleAuth

      public static void sendGoogleAuth(String string0, String string1)
    • createQRCodeTex

      public static Texture createQRCodeTex(String string1, String string2) throws com.google.zxing.WriterException, IOException
      Throws:
      com.google.zxing.WriterException
      IOException
    • getVideo

      public static VideoTexture getVideo(String string, int int0, int int1)
    • getTextManager

      public static TextManager getTextManager()
    • setProgressBarValue

      public static void setProgressBarValue(IsoPlayer player, int value)
    • getText

      public static String getText(String txt)
    • getText

      public static String getText(String txt, Object arg1)
    • getText

      public static String getText(String txt, Object arg1, Object arg2)
    • getText

      public static String getText(String txt, Object arg1, Object arg2, Object arg3)
    • getText

      public static String getText(String txt, Object arg1, Object arg2, Object arg3, Object arg4)
    • getTextOrNull

      public static String getTextOrNull(String txt)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2, Object arg3)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2, Object arg3, Object arg4)
    • getItemText

      public static String getItemText(String txt)
    • getRadioText

      public static String getRadioText(String txt)
    • getTextMediaEN

      public static String getTextMediaEN(String txt)
    • getItemNameFromFullType

      public static String getItemNameFromFullType(String fullType)
    • getItem

      public static Item getItem(String string)
    • getItemStaticModel

      public static String getItemStaticModel(String string)
    • isItemFood

      public static boolean isItemFood(String string)
    • getItemFoodType

      public static String getItemFoodType(String string)
    • isItemFresh

      public static boolean isItemFresh(String string, float float0)
    • getItemCount

      public static int getItemCount(String string)
    • getItemWeight

      public static float getItemWeight(String string)
    • getItemActualWeight

      public static float getItemActualWeight(String string)
    • getItemConditionMax

      public static int getItemConditionMax(String string)
    • getItemEvolvedRecipeName

      public static String getItemEvolvedRecipeName(String string)
    • hasItemTag

      public static boolean hasItemTag(String string0, String string1)
    • getItemDisplayName

      public static String getItemDisplayName(String string)
    • getItemName

      public static String getItemName(String string0)
    • getItemTextureName

      public static String getItemTextureName(String string)
    • getAndFindNearestTracks

      public static ArrayList<AnimalTracks> getAndFindNearestTracks(IsoGameCharacter character)
    • getItemTex

      public static Texture getItemTex(String string)
    • getRecipeDisplayName

      public static String getRecipeDisplayName(String name)
    • getMyDocumentFolder

      public static String getMyDocumentFolder()
    • getSpriteManager

      public static IsoSpriteManager getSpriteManager(String sprite)
    • getSprite

      public static IsoSprite getSprite(String sprite)
    • getServerModData

      public static void getServerModData()
    • isXBOXController

      public static boolean isXBOXController()
    • isPlaystationController

      public static boolean isPlaystationController(int int0)
    • sendClientCommand

      public static void sendClientCommand(String module, String command, KahluaTable args)
      Sends a command to the server, triggering the OnClientCommand event on the server. Does nothing if called on the server.
      Parameters:
      module - Module of the command. It is conventional to use the name of your mod as the module for all of your commands.
      command - Name of the command.
      args - Arguments to pass to the server. Non-POD elements of the table will be lost.
    • sendClientCommand

      public static void sendClientCommand(IsoPlayer player, String module, String command, KahluaTable args)
      Sends a command to the server, triggering the OnClientCommand event on the server. Does nothing if called on the server.
      Parameters:
      player - The local player to associate the command with. If the player is not local, no command will be sent.
      module - Module of the command. It is conventional to use the name of your mod as the module for all of your commands.
      command - Name of the command.
      args - Arguments to pass to the server. Non-POD elements of the table will be lost.
    • sendServerCommand

      public static void sendServerCommand(String module, String command, KahluaTable args)
      Sends a command to all clients, triggering the OnServerCommand event on every client. Does nothing if called on the client.
      Parameters:
      module - Module of the command. It is conventional to use the name of your mod as the module for all of your commands.
      command - Name of the command.
      args - Arguments to pass to the clients. Non-POD elements of the table will be lost.
    • sendServerCommand

      public static void sendServerCommand(IsoPlayer player, String module, String command, KahluaTable args)
      Sends a command to a specific client, triggering the OnServerCommand event on the client. Does nothing if called on the client.
      Parameters:
      player - The player to send the command to. Only that player's client will receive the command.
      module - Module of the command. It is conventional to use the name of your mod as the module for all of your commands.
      command - Name of the command.
      args - Arguments to pass to the client. Non-POD elements of the table will be lost.
    • sendServerCommandV

      public void sendServerCommandV(String string0, String string1, Object... objects)
    • sendClientCommandV

      public void sendClientCommandV(IsoPlayer player, String string0, String string1, Object... objects)
    • addVariableToSyncList

      public static void addVariableToSyncList(String string)
    • getOnlineUsername

      public static String getOnlineUsername()
    • isValidUserName

      public static boolean isValidUserName(String user)
    • getHourMinute

      public static String getHourMinute()
    • SendCommandToServer

      public static void SendCommandToServer(String command)
    • isAdmin

      public static boolean isAdmin()
    • canModifyPlayerScoreboard

      @Deprecated public static boolean canModifyPlayerScoreboard()
      Deprecated.
    • isAccessLevel

      @Deprecated public static boolean isAccessLevel(String accessLevel)
      Deprecated.
    • sendHumanVisual

      public static void sendHumanVisual(IsoPlayer player)
    • stopFire

      public static void stopFire(Object object)
    • sortBrowserList

      public static KahluaTable sortBrowserList(KahluaTableImpl kahluaTableImpl, String string, boolean boolean0)
    • getGameClient

      public static GameClient getGameClient()
    • sendRequestInventory

      public static void sendRequestInventory(int int0, String string)
    • InvMngGetItem

      public static void InvMngGetItem(long long0, String string0, int int0, String string1)
    • InvMngRemoveItem

      public static void InvMngRemoveItem(long long0, int int0, String string)
    • getConnectedPlayers

      public static ArrayList<IsoPlayer> getConnectedPlayers()
    • getPlayerFromUsername

      public static IsoPlayer getPlayerFromUsername(String username)
    • isCoopHost

      public static boolean isCoopHost()
    • setAdmin

      public static void setAdmin()
    • addWarningPoint

      public static void addWarningPoint(String user, String reason, int amount)
    • disconnect

      public static void disconnect()
    • writeLog

      public static void writeLog(String loggerName, String logs)
    • doKeyPress

      public static void doKeyPress(boolean doIt)
    • getEvolvedRecipes

      public static Stack<EvolvedRecipe> getEvolvedRecipes()
    • getZone

      public static Zone getZone(int x, int y, int z)
    • getZones

      public static ArrayList<Zone> getZones(int x, int y, int z)
    • getVehicleZoneAt

      public static VehicleZone getVehicleZoneAt(int x, int y, int z)
    • getCellMinX

      public static int getCellMinX()
    • getCellMaxX

      public static int getCellMaxX()
    • getCellMinY

      public static int getCellMinY()
    • getCellMaxY

      public static int getCellMaxY()
    • replaceWith

      public static String replaceWith(String toReplace, String regex, String by)
    • getTimestamp

      public static long getTimestamp()
    • getTimestampMs

      public static long getTimestampMs()
    • forceSnowCheck

      public static void forceSnowCheck()
    • getGametimeTimestamp

      public static long getGametimeTimestamp()
    • canInviteFriends

      public static boolean canInviteFriends()
    • inviteFriend

      public static void inviteFriend(String steamID)
    • getFriendsList

      public static KahluaTable getFriendsList()
    • getSteamModeActive

      public static Boolean getSteamModeActive()
    • getStreamModeActive

      public static Boolean getStreamModeActive()
    • getRemotePlayModeActive

      public static Boolean getRemotePlayModeActive()
    • isValidSteamID

      public static boolean isValidSteamID(String s)
    • getCurrentUserSteamID

      public static String getCurrentUserSteamID()
    • getCurrentUserProfileName

      public static String getCurrentUserProfileName()
    • getSteamScoreboard

      public static boolean getSteamScoreboard()
    • isSteamOverlayEnabled

      public static boolean isSteamOverlayEnabled()
    • activateSteamOverlayToWorkshop

      public static void activateSteamOverlayToWorkshop()
    • activateSteamOverlayToWorkshopUser

      public static void activateSteamOverlayToWorkshopUser()
    • activateSteamOverlayToWorkshopItem

      public static void activateSteamOverlayToWorkshopItem(String itemID)
    • activateSteamOverlayToWebPage

      public static void activateSteamOverlayToWebPage(String url)
    • getSteamProfileNameFromSteamID

      public static String getSteamProfileNameFromSteamID(String steamID)
    • getSteamAvatarFromSteamID

      public static Texture getSteamAvatarFromSteamID(String steamID)
    • getSteamIDFromUsername

      public static String getSteamIDFromUsername(String username)
    • resetRegionFile

      public static void resetRegionFile()
    • getSteamProfileNameFromUsername

      public static String getSteamProfileNameFromUsername(String username)
    • getSteamAvatarFromUsername

      public static Texture getSteamAvatarFromUsername(String username)
    • getSteamWorkshopStagedItems

      public static ArrayList<SteamWorkshopItem> getSteamWorkshopStagedItems()
    • getSteamWorkshopItemIDs

      public static ArrayList<String> getSteamWorkshopItemIDs()
    • getSteamWorkshopItemMods

      public static ArrayList<ChooseGameInfo.Mod> getSteamWorkshopItemMods(String itemIDStr)
    • isSteamRunningOnSteamDeck

      public static boolean isSteamRunningOnSteamDeck()
    • showSteamGamepadTextInput

      public static boolean showSteamGamepadTextInput(boolean password, boolean multiLine, String description, int maxChars, String existingText)
    • showSteamFloatingGamepadTextInput

      public static boolean showSteamFloatingGamepadTextInput(boolean multiLine, int x, int y, int width, int height)
    • isFloatingGamepadTextInputVisible

      public static boolean isFloatingGamepadTextInputVisible()
    • sendPlayerStatsChange

      public static void sendPlayerStatsChange(IsoPlayer player)
    • sendPersonalColor

      public static void sendPersonalColor(IsoPlayer player)
    • requestTrading

      public static void requestTrading(IsoPlayer you, IsoPlayer other)
    • acceptTrading

      public static void acceptTrading(IsoPlayer you, IsoPlayer other, boolean accept)
    • tradingUISendAddItem

      public static void tradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem i)
    • tradingUISendRemoveItem

      public static void tradingUISendRemoveItem(IsoPlayer player0, IsoPlayer player1, InventoryItem item)
    • tradingUISendUpdateState

      public static void tradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state)
    • sendWarManagerUpdate

      public static void sendWarManagerUpdate(int int0, String string, WarManager.State state)
    • getTwoLetters

      public static String getTwoLetters(String string1)
    • splitString

      public static KahluaTable splitString(String string0, int int0)
    • querySteamWorkshopItemDetails

      public static void querySteamWorkshopItemDetails(ArrayList<String> itemIDs, LuaClosure functionObj, Object arg1)
    • connectToServerStateCallback

      public static void connectToServerStateCallback(String button)
    • getPublicServersList

      public static KahluaTable getPublicServersList()
    • steamRequestInternetServersList

      public static void steamRequestInternetServersList()
    • steamReleaseInternetServersRequest

      public static void steamReleaseInternetServersRequest()
    • steamRequestInternetServersCount

      public static int steamRequestInternetServersCount()
    • steamGetInternetServerDetails

      public static Server steamGetInternetServerDetails(int index)
    • steamRequestServerRules

      public static boolean steamRequestServerRules(String host, int port)
    • getHostByName

      public static String getHostByName(String string)
    • steamRequestServerDetails

      public static boolean steamRequestServerDetails(String host, int port)
    • isPublicServerListAllowed

      public static boolean isPublicServerListAllowed()
    • isSteamServerBrowserEnabled

      public static boolean isSteamServerBrowserEnabled()
    • is64bit

      public static boolean is64bit()
    • testSound

      public static void testSound()
    • getFMODEventPathList

      public static ArrayList<String> getFMODEventPathList()
    • debugSetRoomType

      public static void debugSetRoomType(Double roomType)
    • copyTable

      public static KahluaTable copyTable(KahluaTable table)
    • copyTable

      public static KahluaTable copyTable(KahluaTable to, KahluaTable from)
    • renderIsoCircle

      public static void renderIsoCircle(float x, float y, float z, float radius, float r, float g, float b, float a, int thickness)
    • renderIsoRect

      public static void renderIsoRect(float float3, float float2, float float1, float float6, float float8, float float9, float float10, float float11, int int0)
    • renderLine

      public static void renderLine(float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9)
    • configureLighting

      public static void configureLighting(float darkStep)
    • invalidateLighting

      public static void invalidateLighting()
    • testHelicopter

      public static void testHelicopter()
    • endHelicopter

      public static void endHelicopter()
    • getServerSettingsManager

      public static ServerSettingsManager getServerSettingsManager()
    • rainConfig

      public static void rainConfig(String cmd, int arg)
    • sendSwitchSeat

      public static void sendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo)
    • getVehicleById

      public static BaseVehicle getVehicleById(int id)
    • removeVehicle

      public static void removeVehicle(IsoPlayer player, BaseVehicle vehicle)
    • removeAllVehicles

      public static void removeAllVehicles(IsoPlayer player)
    • addBloodSplat

      public void addBloodSplat(IsoGridSquare sq, int nbr)
      Adds bloodstains to a specific square.
      Parameters:
      sq - The square.
      nbr - Number of bloodstains to add.
    • addBloodSplat

      public void addBloodSplat(IsoGridSquare square, int int1, float float1, float float0)
    • addCarCrash

      public static void addCarCrash()
    • createRandomDeadBody

      public static IsoDeadBody createRandomDeadBody(IsoGridSquare square, int blood)
    • addZombieSitting

      public void addZombieSitting(int x, int y, int z)
    • addZombiesEating

      public void addZombiesEating(int x, int y, int z, int totalZombies, boolean skeletonBody)
    • addZombiesInOutfitArea

      public ArrayList<IsoZombie> addZombiesInOutfitArea(int x1, int y1, int x2, int y2, int z, int totalZombies, String outfit, Integer femaleChance)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int int0, int int1, int int2, int int3, String string, Integer integer, boolean boolean0, boolean boolean1, boolean boolean2, boolean boolean3, boolean boolean4, boolean boolean5, float float0)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int int0, int int1, int int2, int int3, String string, Integer integer, boolean boolean0, boolean boolean1, boolean boolean2, boolean boolean3, boolean boolean4, boolean boolean5, float float0, boolean var13)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int int0, int int1, int int2, int int4, String string, Integer integer, boolean boolean1, boolean boolean3, boolean boolean2, boolean boolean0, boolean boolean4, boolean boolean5, float float0, boolean boolean6, float float1)
    • addZombiesInBuilding

      public ArrayList<IsoZombie> addZombiesInBuilding(BuildingDef def, int totalZombies, String outfit, RoomDef room, Integer femaleChance)
    • addVehicleDebug

      public static BaseVehicle addVehicleDebug(String scriptName, IsoDirections dir, Integer skinIndex, IsoGridSquare sq)
    • addVehicle

      public static BaseVehicle addVehicle(String string, int int1, int int0, int int2)
    • attachTrailerToPlayerVehicle

      public static void attachTrailerToPlayerVehicle(int playerIndex)
    • getKeyName

      public static String getKeyName(int key)
    • getKeyCode

      public static int getKeyCode(String keyName)
    • queueCharEvent

      public static void queueCharEvent(String eventChar)
    • queueKeyEvent

      public static void queueKeyEvent(int lwjglKeyCode)
    • addAllVehicles

      public static void addAllVehicles()
    • addAllBurntVehicles

      public static void addAllBurntVehicles()
    • addAllSmashedVehicles

      public static void addAllSmashedVehicles()
    • addAllVehicles

      public static void addAllVehicles(Predicate<VehicleScript> predicate)
    • addPhysicsObject

      public static BaseVehicle addPhysicsObject()
    • toggleVehicleRenderToTexture

      public static void toggleVehicleRenderToTexture()
    • reloadSoundFiles

      public static void reloadSoundFiles()
    • getAnimationViewerState

      public static AnimationViewerState getAnimationViewerState()
    • getAttachmentEditorState

      public static AttachmentEditorState getAttachmentEditorState()
    • getEditVehicleState

      public static EditVehicleState getEditVehicleState()
    • getSpriteModelEditorState

      public static SpriteModelEditorState getSpriteModelEditorState()
    • showAnimationViewer

      public static void showAnimationViewer()
    • showAttachmentEditor

      public static void showAttachmentEditor()
    • showChunkDebugger

      public static void showChunkDebugger()
    • getTileGeometryState

      public static TileGeometryState getTileGeometryState()
    • showGlobalObjectDebugger

      public static void showGlobalObjectDebugger()
    • showSeamEditor

      public static void showSeamEditor()
    • getSeamEditorState

      public static SeamEditorState getSeamEditorState()
    • showSpriteModelEditor

      public static void showSpriteModelEditor()
    • showVehicleEditor

      public static void showVehicleEditor(String scriptName)
    • showWorldMapEditor

      public static void showWorldMapEditor(String value)
    • reloadVehicles

      public static void reloadVehicles()
    • reloadEngineRPM

      public static void reloadEngineRPM()
    • reloadXui

      public static void reloadXui()
    • reloadScripts

      public static void reloadScripts(ScriptType scriptType)
    • reloadEntityScripts

      public static void reloadEntityScripts()
    • reloadEntitiesDebug

      public static void reloadEntitiesDebug()
    • reloadEntityDebug

      public static void reloadEntityDebug(GameEntity gameEntity)
    • reloadEntityFromScriptDebug

      public static void reloadEntityFromScriptDebug(GameEntity gameEntity)
    • getIsoEntitiesDebug

      public static ArrayList<GameEntity> getIsoEntitiesDebug()
    • proceedPM

      public static String proceedPM(String command)
    • processSayMessage

      public static void processSayMessage(String message)
    • processGeneralMessage

      public static void processGeneralMessage(String message)
    • processShoutMessage

      public static void processShoutMessage(String message)
    • ProceedFactionMessage

      public static void ProceedFactionMessage(String message)
    • ProcessSafehouseMessage

      public static void ProcessSafehouseMessage(String message)
    • ProcessAdminChatMessage

      public static void ProcessAdminChatMessage(String message)
    • showWrongChatTabMessage

      public static void showWrongChatTabMessage(int actualTabID, int rightTabID, String chatCommand)
    • focusOnTab

      public static void focusOnTab(Short id)
    • updateChatSettings

      public static void updateChatSettings(String fontSize, boolean showTimestamp, boolean showTitle)
    • checkPlayerCanUseChat

      public static Boolean checkPlayerCanUseChat(String chatCommand)
    • reloadVehicleTextures

      public static void reloadVehicleTextures(String scriptName)
    • useStaticErosionRand

      public static void useStaticErosionRand(boolean use)
    • getClimateManager

      public static ClimateManager getClimateManager()
    • getClimateMoon

      public static ClimateMoon getClimateMoon()
    • getWorldMarkers

      public static WorldMarkers getWorldMarkers()
    • getIsoMarkers

      public static IsoMarkers getIsoMarkers()
    • getErosion

      public static ErosionMain getErosion()
    • getAllOutfits

      public static ArrayList<String> getAllOutfits(boolean female)
    • getAllVehicles

      public static ArrayList<String> getAllVehicles()
    • getAllHairStyles

      public static ArrayList<String> getAllHairStyles(boolean female)
    • getHairStylesInstance

      public static HairStyles getHairStylesInstance()
    • getBeardStylesInstance

      public static BeardStyles getBeardStylesInstance()
    • getAllBeardStyles

      public static ArrayList<String> getAllBeardStyles()
    • getVoiceStylesInstance

      public static VoiceStyles getVoiceStylesInstance()
    • getAllVoiceStyles

      public static ArrayList<VoiceStyle> getAllVoiceStyles()
    • getAllItemsForBodyLocation

      public static KahluaTable getAllItemsForBodyLocation(String bodyLocation)
    • getAllDecalNamesForItem

      public static ArrayList<String> getAllDecalNamesForItem(InventoryItem item)
    • screenZoomIn

      public void screenZoomIn()
    • screenZoomOut

      public void screenZoomOut()
    • addSound

      public void addSound(IsoObject source, int x, int y, int z, int radius, int volume)
    • sendPlaySound

      public void sendPlaySound(String string, boolean boolean0, IsoMovingObject movingObject)
    • sendAddXp

      public void sendAddXp(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0)
    • sendIconFound

      public void sendIconFound(IsoPlayer player, String string, float float0)
    • addXpNoMultiplier

      public void addXpNoMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0)
    • addXp

      public void addXp(IsoPlayer player, PerkFactory.Perk perk, float float0)
    • addXpMultiplier

      public void addXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0, int int0, int int1)
    • syncBodyPart

      public void syncBodyPart(BodyPart bodyPart, long long0)
    • syncPlayerStats

      public void syncPlayerStats(IsoPlayer player, int int0)
    • SyncXp

      public void SyncXp(IsoPlayer player)
      Sends an XP sync packet. Does nothing when called on the server.
      Parameters:
      player - The player whose XP to sync.
    • checkServerName

      public String checkServerName(String name)
    • Render3DItem

      public void Render3DItem(InventoryItem item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, float rotation)
      Draws an item's model in the world. Only works when certain render state is set.
      Parameters:
      item - The item to render.
      sq - The square to draw the item on.
      xoffset - Offset on the x axis to draw the model.
      yoffset - Offset on the y axis to draw the model.
      zoffset - Offset on the z axis to draw the model.
      rotation - Yaw rotation of the model in degrees.
    • getContainerOverlays

      public ContainerOverlays getContainerOverlays()
    • getTileOverlays

      public TileOverlays getTileOverlays()
    • NewMapBinaryFile

      public void NewMapBinaryFile(String string) throws IOException
      Throws:
      IOException
    • getAverageFSP

      public Double getAverageFSP()
    • getCPUTime

      public long getCPUTime()
    • getGPUTime

      public long getGPUTime()
    • getCPUWait

      public long getCPUWait()
    • getGPUWait

      public long getGPUWait()
    • getServerFPS

      public int getServerFPS()
    • createItemTransaction

      public static byte createItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer container0, ItemContainer container1)
    • createItemTransactionWithPosData

      @Deprecated public static byte createItemTransactionWithPosData(IsoPlayer player, InventoryItem item, ItemContainer container0, ItemContainer container1, String string, float float0, float float1, float float2)
      Deprecated.
    • changeItemTypeTransaction

      public static byte changeItemTypeTransaction(IsoPlayer player, InventoryItem item, String string)
    • removeItemTransaction

      public static void removeItemTransaction(byte byte0, boolean boolean0)
    • isItemTransactionConsistent

      public static boolean isItemTransactionConsistent(InventoryItem item, ItemContainer container0, ItemContainer container1, String string)
    • isItemTransactionDone

      public static boolean isItemTransactionDone(byte byte0)
    • isItemTransactionRejected

      public static boolean isItemTransactionRejected(byte byte0)
    • getItemTransactionDuration

      public static int getItemTransactionDuration(byte byte0)
    • isActionDone

      public static boolean isActionDone(byte byte0)
    • isActionRejected

      public static boolean isActionRejected(byte byte0)
    • getActionDuration

      public static int getActionDuration(byte byte0)
    • removeAction

      public static void removeAction(byte byte0, boolean boolean0)
    • emulateAnimEvent

      public static void emulateAnimEvent(NetTimedAction netTimedAction, long long0, String string0, String string1)
    • emulateAnimEventOnce

      public static void emulateAnimEventOnce(NetTimedAction netTimedAction, long long0, String string0, String string1)
    • detectBadWords

      public static boolean detectBadWords(String string)
    • profanityFilterCheck

      public static boolean profanityFilterCheck(String string1)
    • showDebugInfoInChat

      public static void showDebugInfoInChat(String string)
    • createBuildAction

      public static byte createBuildAction(IsoPlayer player, float float0, float float1, float float2, boolean boolean0, String string1, KahluaTable table)
    • startFishingAction

      public static byte startFishingAction(IsoPlayer player, InventoryItem item, IsoGridSquare square, KahluaTable table)
    • syncItemModData

      public void syncItemModData(IsoPlayer player, InventoryItem item)
    • syncItemFields

      public void syncItemFields(IsoPlayer player, InventoryItem item)
    • syncHandWeaponFields

      public void syncHandWeaponFields(IsoPlayer player, HandWeapon weapon)
    • getPickedUpFish

      public InventoryItem getPickedUpFish(IsoPlayer player)
    • sendAddItemToContainer

      public static void sendAddItemToContainer(ItemContainer container, InventoryItem item)
    • sendAddItemsToContainer

      public static void sendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> arrayList)
    • sendAttachedItem

      public static void sendAttachedItem(IsoGameCharacter character, String string, InventoryItem item)
    • sendReplaceItemInContainer

      public static void sendReplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1)
    • sendRemoveItemFromContainer

      public static void sendRemoveItemFromContainer(ItemContainer container, InventoryItem item)
    • sendRemoveItemsFromContainer

      public static void sendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> arrayList)
    • replaceItemInContainer

      public static void replaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1)
    • getServerStatistic

      public static KahluaTable getServerStatistic()
    • log

      public static void log(DebugType debugType, String string)
    • setServerStatisticEnable

      public static void setServerStatisticEnable(boolean enable)
    • getServerStatisticEnable

      public static boolean getServerStatisticEnable()
    • teleportPlayers

      public static void teleportPlayers(IsoPlayer player1)
    • checkModsNeedUpdate

      public static void checkModsNeedUpdate(UdpConnection udpConnection)
    • getSearchMode

      public static SearchMode getSearchMode()
    • transmitBigWaterSplash

      public static void transmitBigWaterSplash(int int0, int int1, float float0, float float1)
    • addAreaHighlight

      public static void addAreaHighlight(int int0, int int1, int int2, int int3, int int4, float float0, float float1, float float2, float float3)
    • addAreaHighlightForPlayer

      public static void addAreaHighlightForPlayer(int int0, int int1, int int2, int int3, int int4, int int5, float float0, float float1, float float2, float float3)
    • timSort

      public static void timSort(KahluaTable table, Object functionObject)
    • javaListRemoveAt

      public static Object javaListRemoveAt(List<?> list, int int0)
    • sendDebugStory

      public static void sendDebugStory(IsoGridSquare square, int int0, String string)
    • displayLUATable

      public static void displayLUATable(KahluaTable table)