Class LuaManager.GlobalObject
java.lang.Object
zombie.Lua.LuaManager.GlobalObject
- Enclosing class:
LuaManager
Object containing global Lua functions. The methods in this class are called from Lua as methodName() instead of qualifying them with the class name, even if they are not static.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidacceptFactionInvite(Faction faction, String host) static voidacceptSafehouseInvite(SafeHouse safehouse, String host, IsoPlayer invited, boolean isAccepted) static voidacceptTrading(IsoPlayer you, IsoPlayer other, boolean accept) static voidstatic voidstatic voidstatic voidstatic voidstatic voidaddAccountToAccountList(Server server, Account account) static voidstatic voidstatic voidstatic voidaddAllVehicles(Predicate<VehicleScript> predicate) static IsoAnimaladdAnimal(IsoCell cell, int x, int y, int z, String animalType, AnimalBreed breed) static IsoAnimaladdAnimal(IsoCell cell, int x, int y, int z, String animalType, AnimalBreed breed, boolean skeleton) static voidaddAreaHighlight(int x1, int y1, int x2, int y2, int z, float r, float g, float b, float a) static voidaddAreaHighlightForPlayer(int playerIndex, int x1, int y1, int x2, int y2, int z, float r, float g, float b, float a) voidaddBloodSplat(IsoGridSquare sq, int nbr) voidaddBloodSplat(IsoGridSquare sq, int nbr, float xoffset, float yoffset) static voidstatic voidAddNoiseToken(IsoGridSquare sq, int radius) static BaseVehiclestatic voidstatic voidaddServerToAccountList(Server server) voidstatic voidstatic voidaddUserlog(String user, String type, String text) static voidstatic BaseVehicleaddVehicle(String script, int x, int y, int z) static BaseVehicleaddVehicleDebug(String scriptName, IsoDirections dir, Integer skinIndex, IsoGridSquare sq) static voidaddVirtualZombie(int x, int y) static voidaddWarningPoint(String user, String reason, int amount) static voidAddWorldSound(IsoPlayer player, int radius, int volume) voidaddXp(IsoPlayer player, PerkFactory.Perk perk, float amount) voidaddXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float multiplier, int minLevel, int maxLevel) voidaddXpNoMultiplier(IsoPlayer player, PerkFactory.Perk perk, float amount) voidaddZombiesEating(int x, int y, int z, int totalZombies, boolean skeletonBody) addZombiesInBuilding(BuildingDef def, int totalZombies, String outfit, RoomDef room, Integer femaleChance) addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance) addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance, boolean isCrawler, boolean isFallOnFront, boolean isFakeDead, boolean isKnockedDown, boolean isInvulnerable, boolean isSitting, float health) addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance, boolean isCrawler, boolean isFallOnFront, boolean isFakeDead, boolean isKnockedDown, boolean isInvulnerable, boolean isSitting, float health, boolean isAnimRecording) addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance, boolean isCrawler, boolean isFallOnFront, boolean isFakeDead, boolean isKnockedDown, boolean isInvulnerable, boolean isSitting, float health, boolean isAnimRecording, float heightOffset) addZombiesInOutfitArea(int x1, int y1, int x2, int y2, int z, int totalZombies, String outfit, Integer femaleChance) voidaddZombieSitting(int x, int y, int z) static voidstatic voidattachTrailerToPlayerVehicle(int playerIndex) static voidstatic voidbanUnbanUserAction(String action, String username, String additionArgument) static voidstatic booleancacheFileExists(String filename) static voidstatic BooleancallLuaBool(String func, Object params) callLuaReturn(String func, ArrayList<Object> params) static booleanstatic booleanstatic booleanDeprecated.static booleanstatic bytechangeItemTypeTransaction(IsoPlayer player, InventoryItem item, String itemType) static voidcheckModsNeedUpdate(UdpConnection connection) static booleancheckPermissions(IsoPlayer player, Capability capability) static BooleancheckPlayerCanUseChat(String chatCommand) static booleancheckPlayerExistsInDatabase(String savedir, String player, String world) static booleanstatic booleanstatic booleancheckServerName(String name) static booleancheckStringPattern(String pattern) static voidstatic ItemcloneItemType(String newName, String oldName) static voidconfigRoomFade(float seconds, float percent) static voidconfigureLighting(float darkStep) static voidconnectionManagerLog(String event, String message) static voidconnectToServerStateCallback(String button) static se.krka.kahlua.vm.KahluaTableconvertToPZNetTable(se.krka.kahlua.vm.KahluaTable table) static se.krka.kahlua.vm.KahluaTablecopyTable(se.krka.kahlua.vm.KahluaTable table) static se.krka.kahlua.vm.KahluaTablecopyTable(se.krka.kahlua.vm.KahluaTable to, se.krka.kahlua.vm.KahluaTable from) static bytecreateBuildAction(IsoPlayer player, float x, float y, float z, boolean north, String spriteName, se.krka.kahlua.vm.KahluaTable item) static voidcreateHordeFromTo(float spawnX, float spawnY, float targetX, float targetY, int count) static voidcreateHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count) static bytecreateItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer src, ItemContainer dst) static bytecreateItemTransactionWithPosData(IsoPlayer player, InventoryItem item, ItemContainer src, ItemContainer dst, String direction, float posX, float posY, float posZ) Deprecated.static Itemstatic TexturecreateQRCodeTex(String user, String key) static IsoDeadBodycreateRandomDeadBody(IsoGridSquare square, int blood) static se.krka.kahlua.vm.KahluaTableCreate a dynamic table containing all spawnpoints.lua we find in vanilla folder + in loaded modsstatic voidcreateStory(String storyName) static voidcreateTile(String tile, IsoGridSquare square) static voidcreateWorld(String worldName) static IsoZombiecreateZombie(float x, float y, float z, SurvivorDesc desc, int palette, IsoDirections dir) static voiddebugFullyStreamedIn(int x, int y) static voiddebugLuaTable(Object param) static voiddebugLuaTable(Object param, int depth) static voiddebugSetRoomType(Double roomType) static voiddeleteAccountToAccountList(Account account) static voiddeleteAllGameModeSaves(String gameMode) static voiddeletePlayerFromDatabase(String savedir, String player, String world) static voiddeletePlayerSave(String fileName) static voiddeleteRole(String name) static voiddeleteSandboxPreset(String name) static voiddeleteSave(String folder) static voiddeleteServerToAccountList(Server server) static booleandetectBadWords(String text) static voidstatic voiddisplayLUATable(se.krka.kahlua.vm.KahluaTable table) static voiddoChallenge(se.krka.kahlua.vm.KahluaTable challenge) static voiddoKeyPress(boolean doIt) static voiddoLuaDebuggerAction(String action) static voiddoTutorial(se.krka.kahlua.vm.KahluaTable tutorial) static voiddrawOverheadMap(UIElement ui, int level, float zoom, float xpos, float ypos) static voidemulateAnimEvent(NetTimedAction action, long duration, String event, String parameter) static voidemulateAnimEventOnce(NetTimedAction action, long duration, String event, String parameter) static voidstatic voidstatic voidstatic voidstatic floatfastfloor(float coord) static booleanfileExists(String filename) static voidfocusOnTab(Short id) static voidforceChangeState(GameState state) static voidstatic voidstatic Stringstatic Stringstatic StringDeprecated.static intgetActionDuration(byte id) Gets the list of currently activated mods.static ArrayList<AnimalDefinitions> getAllHairStyles(boolean female) static se.krka.kahlua.vm.KahluaTablegetAllItemsForBodyLocation(String bodyLocation) getAllOutfits(boolean female) static List<BufferedReader> Deprecated.static ArrayList<VoiceStyle> static BaseAmbientStreamManagerstatic ArrayList<AnimalTracks> static IsoAnimalgetAnimal(int id) static AnimalChunkgetAnimalChunk(int x, int y) static AnimationViewerStatestatic AttachmentEditorStatestatic voidstatic voidstatic BaseSoundBankstatic BeardStylesstatic IsoGameCharacterstatic GameVersionstatic intgetButtonCount(int joypad) static intgetCallframeTop(se.krka.kahlua.vm.Coroutine c) static floatstatic floatstatic ArrayList<Capability> static IsoCellgetCell()static intstatic intstatic intstatic intstatic Doublestatic Doublestatic Doublestatic FieldgetClassField(Object o, int i) static ObjectgetClassFieldVal(Object o, Field field) static MethodgetClassFunction(Object o, int i) static StringgetClassSimpleName(Object object) static Stringstatic ClimateManagerstatic ClimateMoonstatic CombatConfigstatic intgetControllerAxisCount(int c) static floatgetControllerAxisValue(int c, int axis) static intgetControllerButtonCount(int c) static intstatic floatgetControllerDeadZone(int c, int axis) static StringgetControllerGUID(int joypad) static StringgetControllerName(int joypad) static floatgetControllerPovX(int c) static floatgetControllerPovY(int c) static CoregetCore()static se.krka.kahlua.vm.LuaCallFramegetCoroutineCallframeStack(se.krka.kahlua.vm.Coroutine c, int n) static ObjectgetCoroutineObjStack(se.krka.kahlua.vm.Coroutine c, int n) static ObjectgetCoroutineObjStackWithBase(se.krka.kahlua.vm.Coroutine c, int n) static intgetCoroutineTop(se.krka.kahlua.vm.Coroutine c) longlongstatic se.krka.kahlua.vm.Coroutinestatic Stringstatic Stringstatic Stringstatic voidgetCustomizationData(String username, String pwd, String ip, String port, String serverPassword, String serverName, boolean doHash) static booleangetDebug()static DebugOptionsstatic IsoDirectionsgetDirectionTo(IsoGameCharacter chara, IsoObject objTarget) static EditVehicleStatestatic ErosionMainstatic Stack<EvolvedRecipe> static IsoGameCharacterstatic DataInputStreamgetFileInput(String filename) Gets an input stream for a file in the Lua cache.static StringgetFilenameOfCallframe(se.krka.kahlua.vm.LuaCallFrame c) static StringgetFilenameOfClosure(se.krka.kahlua.vm.LuaClosure c) static DataOutputStreamgetFileOutput(String filename) Gets an output stream for a file in the Lua cache.static BufferedReadergetFileReader(String filename, boolean createIfNull) Gets a file reader for a file in the Lua cache.static StringReturns the OS-defined file separator.getFileWriter(String filename, boolean createIfNull, boolean append) Gets a file writer for a file in the Lua cache.static intgetFirstLineOfClosure(se.krka.kahlua.vm.LuaClosure c) static BaseSoundBankstatic se.krka.kahlua.vm.KahluaTablestatic se.krka.kahlua.vm.KahluaTablestatic GameClientstatic DataInputStreamgetGameFilesInput(String filename) static BufferedReadergetGameFilesTextInput(String filename) static se.krka.kahlua.vm.KahluaTablestatic se.krka.kahlua.vm.KahluaTablestatic intstatic GameTimestatic longstatic Stringlonglongstatic HairStylesstatic StringgetHostByName(String hostname) static Stringstatic IsoHutchgetHutch(int x, int y, int z) static ArrayList<GameEntity> static IsoMarkersstatic Itemstatic floatgetItemActualWeight(String itemType) static intgetItemConditionMax(String itemType) static intgetItemCount(String itemType) static StringgetItemDisplayName(String itemType) static StringgetItemEvolvedRecipeName(String itemType) static StringgetItemFoodType(String itemType) static StringgetItemName(String itemType) static StringgetItemNameFromFullType(String fullType) static StringgetItemStaticModel(String itemType) static TexturegetItemTex(String itemType) static StringgetItemText(String txt) static StringgetItemTextureName(String itemType) static intgetItemTransactionDuration(byte id) static floatgetItemWeight(String itemType) static intgetJoypadAButton(int joypad) static floatgetJoypadAimingAxisX(int joypad) static floatgetJoypadAimingAxisY(int joypad) static intgetJoypadBackButton(int joypad) static intgetJoypadBButton(int joypad) static intgetJoypadLBumper(int joypad) static intgetJoypadLeftStickButton(int joypad) static floatgetJoypadMovementAxisX(int joypad) static floatgetJoypadMovementAxisY(int joypad) static intgetJoypadRBumper(int joypad) static intgetJoypadRightStickButton(int joypad) static intgetJoypadStartButton(int joypad) static intgetJoypadXButton(int joypad) static intgetJoypadYButton(int joypad) static intgetKeyCode(String keyName) static StringgetKeyName(int key) static StringgetLastPlayedDate(String filename) static Stringstatic se.krka.kahlua.vm.KahluaTablestatic intgetLineNumber(se.krka.kahlua.vm.LuaCallFrame c) static StringgetLoadedLua(int n) static intstatic intgetLocalVarCount(se.krka.kahlua.vm.Coroutine c) static intgetLocalVarCount(se.krka.kahlua.vm.LuaCallFrame callFrame) static StringgetLocalVarName(se.krka.kahlua.vm.Coroutine c, int n) static StringgetLocalVarName(se.krka.kahlua.vm.LuaCallFrame callFrame, int n) static intgetLocalVarStack(se.krka.kahlua.vm.Coroutine c, int n) static intgetLocalVarStackIndex(se.krka.kahlua.vm.LuaCallFrame callFrame, int n) static intstatic se.krka.kahlua.vm.KahluaTablegetMapFoldersForMod(String modID) static se.krka.kahlua.vm.KahluaTablegetMapInfo(String mapDir) static intstatic Doublestatic Doublestatic StringgetMethodParameter(Method o, int i) static intstatic Doublestatic se.krka.kahlua.vm.KahluaTablestatic BufferedReadergetModFileReader(String modId, String filename, boolean createIfNull) Gets a file reader for a file in a mod's directory.getModFileWriter(String modId, String filename, boolean createIfNull, boolean append) Gets a file writer for a file in a mod's directory.static ChooseGameInfo.ModgetModInfo(String modDir) static ChooseGameInfo.ModgetModInfoByID(String modID) getMods()static intstatic intstatic intstatic intstatic se.krka.kahlua.vm.KahluaTablestatic Stringstatic se.krka.kahlua.vm.KahluaTablestatic se.krka.kahlua.vm.KahluaTablestatic intstatic intstatic intstatic Stringstatic PerformanceSettingsstatic se.krka.kahlua.vm.KahluaTablestatic se.krka.kahlua.vm.KahluaTablegetPickedUpFish(IsoPlayer player) static IsoPlayerGets the current player.static IsoPlayergetPlayerByOnlineID(int id) static IsoPlayergetPlayerFromUsername(String username) static se.krka.kahlua.vm.KahluaTablegetPlayerInfo(IsoPlayer player) static intgetPlayerScreenHeight(int player) static intgetPlayerScreenLeft(int player) static intgetPlayerScreenTop(int player) static intgetPlayerScreenWidth(int player) static se.krka.kahlua.vm.KahluaTablestatic IsoPuddlesstatic RadioAPIstatic StringgetRadioText(String txt) getRadioTranslators(Language language) static Stringstatic StringgetRecipeDisplayName(String name) static Stringstatic Booleanstatic SpriteRenderergetRoles()getSandboxFileWriter(String filename, boolean createIfNull, boolean append) static SandboxOptionsgetSaveDirectory(String folder) static se.krka.kahlua.vm.KahluaTablestatic se.krka.kahlua.vm.KahluaTablegetSaveInfo(String saveDir) static StringgetSaveName(File file) static ScriptManagerstatic SeamEditorStatestatic SearchModestatic Stringintstatic Stringstatic se.krka.kahlua.vm.KahluaTablestatic StringDeprecated.static voidstatic Stringstatic ServerOptionsstatic Stringstatic Stringstatic intgetServerSavedWorldVersion(String saveFolder) static ServerSettingsManagerstatic se.krka.kahlua.vm.KahluaTablestatic Stringstatic SleepingEventstatic SLSoundManagerstatic BaseSoundManagerstatic IsoPlayergetSpecificPlayer(int player) static IsoSpritestatic IsoSpriteManagergetSpriteManager(String sprite) static SpriteModelEditorStatestatic IsoGridSquaregetSquare(double x, double y, double z) static TexturegetSteamAvatarFromSteamID(String steamID) static TexturegetSteamAvatarFromUsername(String username) static StringgetSteamIDFromUsername(String username) static Booleanstatic StringgetSteamProfileNameFromSteamID(String steamID) static StringgetSteamProfileNameFromUsername(String username) static booleanstatic ArrayList<ChooseGameInfo.Mod> getSteamWorkshopItemMods(String itemIDStr) static ArrayList<SteamWorkshopItem> static Booleanstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic TextManagerstatic StringgetTextMediaEN(String txt) static StringgetTextOrNull(String txt) static StringgetTextOrNull(String txt, Object arg1) static StringgetTextOrNull(String txt, Object arg1, Object arg2) static StringgetTextOrNull(String txt, Object arg1, Object arg2, Object arg3) static Stringstatic TexturegetTexture(String filename) static TexturegetTextureFromSaveDir(String filename, String saveName) static voidgetTickets(String author) static TileGeometryStatestatic longstatic voidgetTimerKept(String clazzStr, String field) static longstatic longgetTranslatorCredits(Language language) static StringgetTwoLetters(String input) static ArrayList<NetworkUser> getUsers()static BaseVehiclegetVehicleById(int id) static se.krka.kahlua.vm.KahluaTablegetVehicleInfo(BaseVehicle vehicle) static VehicleZonegetVehicleZoneAt(int x, int y, int z) static VideoTexturestatic VoiceStylesstatic WarManager.Warstatic ArrayList<WarManager.War> getWars()static IsoWorldgetWorld()static WorldMarkersstatic WorldSoundManagerstatic se.krka.kahlua.vm.KahluaTablegetZombieInfo(IsoZombie zombie) static ZomboidRadiostatic ZonegetZone(int x, int y, int z) getZones(int x, int y, int z) static booleanhasBreakpoint(String file, int line) static booleanhasDataBreakpoint(se.krka.kahlua.vm.KahluaTable table, Object key) static booleanhasDataReadBreakpoint(se.krka.kahlua.vm.KahluaTable table, Object key) static booleanhasItemTag(String itemType, ItemTag itemTag) static booleanhaveAccess(String access) Deprecated.static voidstatic InventoryIteminstanceItem(String item) static InventoryIteminstanceItem(String item, float useDelta) static InventoryIteminstanceItem(Item item) static InventoryIteminstanceItem(ItemKey item) static booleanstatic voidstatic voidinviteFriend(String steamID) static voidInvMngGetItem(long itemId, String itemType, int playerID, String username) static voidInvMngRemoveItem(long itemId, int playerID, String username) static voidInvMngUpdateItem(InventoryItem item, int playerID) static booleanisAccessLevel(String accessLevel) Deprecated.static booleanisActionDone(byte id) static booleanisActionRejected(byte id) static booleanisAdmin()static booleanstatic booleanisClient()static booleanisControllerConnected(int index) static booleanstatic booleanstatic booleanisCurrentExecutionPoint(String file, int line) static booleanstatic booleanisDemo()static booleanstatic booleanstatic booleanstatic booleanstatic booleanisItemFood(String itemType) static booleanisItemFresh(String itemType, float age) static booleanisItemTransactionConsistent(InventoryItem item, ItemContainer src, ItemContainer dst, String extra) static booleanisItemTransactionDone(byte id) static booleanisItemTransactionRejected(byte id) static booleanisJoypadConnected(int index) static booleanisJoypadDown(int joypad) static booleanisJoypadLBPressed(int joypad) static booleanisJoypadLeft(int joypad) static booleanisJoypadLeftStickButtonPressed(int joypad) static booleanisJoypadLTPressed(int joypad) static booleanisJoypadPressed(int joypad, int button) static booleanisJoypadRBPressed(int joypad) static booleanisJoypadRight(int joypad) static booleanisJoypadRightStickButtonPressed(int joypad) static booleanisJoypadRTPressed(int joypad) static booleanisJoypadUp(int joypad) static booleanisKeyDown(int key) static booleanstatic booleanisKeyPressed(int key) static booleanisKeyPressed(String keyName) static booleanstatic booleanstatic booleanisMouseButtonDown(int number) static booleanisMouseButtonPressed(int number) static booleanstatic IsoRegionsRendererstatic floatisoToScreenX(int player, float x, float y, float z) static floatisoToScreenY(int player, float x, float y, float z) static booleanisPlaystationController(int id) static booleanstatic booleanstatic booleanisServer()static booleanstatic booleanstatic booleanstatic booleanstatic booleanisSoundPlaying(Object sound) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisValidUserName(String user) static booleanstatic ObjectjavaListRemoveAt(List<?> javaList, int index) static StringlistFilesInModDirectory(String modID, String directory) listFilesInZomboidLuaDirectory(String directory) static ModelloadSkinnedZomboidModel(String name, String loc, String tex) static ModelloadStaticZomboidModel(String name, String loc, String tex) static ModelloadVehicleModel(String name, String loc, String tex) static ModelloadZomboidModel(String name, String mesh, String tex, String shader, boolean bStatic) static StringlocalVarName(se.krka.kahlua.vm.Coroutine c, int n) static voidstatic voidluaDebug()static voidmanipulateSavefile(String folder, String action) static StringmoduleDotType(String module, String type) static voidstatic voidnetworkUserAction(String action, String username, String additionArgument) voidNewMapBinaryFile(String cmd) static voidstatic voidstatic voidstatic voidplayServerSound(String sound, IsoGridSquare sq) static voidProceedFactionMessage(String message) static Stringstatic voidProcessAdminChatMessage(String message) static voidprocessGeneralMessage(String message) static voidProcessSafehouseMessage(String message) static voidprocessSayMessage(String message) static voidprocessShoutMessage(String message) static booleanprofanityFilterCheck(String text) static voidquerySteamWorkshopItemDetails(ArrayList<String> itemIDs, se.krka.kahlua.vm.LuaClosure functionObj, Object arg1) static voidqueueCharEvent(String eventChar) static voidqueueKeyEvent(int lwjglKeyCode) static voidrainConfig(String cmd, int arg) static booleanstatic voidrefreshAnimSets(boolean reload) static voidstatic voidstatic voidstatic voidstatic voidreloadEntityDebug(GameEntity entity) static voidstatic voidstatic ObjectreloadLuaFile(String filename) static voidreloadModelsMatching(String meshName) static voidreloadScripts(ScriptType type) static ObjectreloadServerLuaFile(String filename) static voidstatic voidstatic voidreloadVehicleTextures(String scriptName) static voidstatic voidremoveAction(byte id, boolean isCanceled) static voidremoveAllVehicles(IsoPlayer player) static voidremoveAnimal(int id) static voidremoveItemTransaction(byte id, boolean isCanceled) static voidremoveTicket(int ticketID) static voidremoveUserlog(String user, String type, String text) static voidremoveVehicle(IsoPlayer player, BaseVehicle baseVehicle) static booleanrenameSaveFile(String gameMode, String oldName, String newName) voidRender3DItem(InventoryItem item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, float rotation) Draws an item's model in the world.static voidrenderIsoCircle(float x, float y, float z, float radius, float r, float g, float b, float a, int thickness) static voidrenderIsoRect(float x, float y, float z, float radius, float r, float g, float b, float a, int thickness) static voidrenderLine(float x, float y, float z, float tx, float ty, float tz, float r, float g, float b, float a) static voidreplaceItemInContainer(ItemContainer container, InventoryItem oldItem, InventoryItem newItem) static StringreplaceWith(String toReplace, String regex, String by) static voidstatic voidstatic voidrequestTrading(IsoPlayer you, IsoPlayer other) static voidrequestUserlog(String user) static voidstatic Objectstatic voidstatic voidresetTimers(String clazzStr) static voidstatic voidstatic voidstatic StringsanitizeWorldName(String worldName) static voidsave(boolean doCharacter) static voidsaveControllerSettings(int c) static voidsaveGame()static voidstatic voidstatic floatscreenToIsoX(int player, float x, float y, float z) static floatscreenToIsoY(int player, float x, float y, float z) voidvoidstatic voidsendAddAnimalFromHandsInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) static voidsendAddAnimalFromHandsInTrailer(IsoDeadBody animal, IsoPlayer player, BaseVehicle vehicle) static voidsendAddAnimalInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) static voidsendAddAnimalInTrailer(IsoDeadBody animal, IsoPlayer player, BaseVehicle vehicle) static voidsendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> items) static voidsendAddItemToContainer(ItemContainer container, InventoryItem item) voidsendAddXp(IsoPlayer player, PerkFactory.Perk perk, float amount, boolean noMultiplier) static voidsendAnimalGenome(IsoAnimal animal) static voidsendAttachAnimalToPlayer(IsoAnimal animal, IsoPlayer player, IsoObject object, boolean remove) static voidsendAttachAnimalToTree(IsoAnimal animal, IsoPlayer player, IsoObject object, boolean remove) static voidsendAttachedItem(IsoGameCharacter character, String location, InventoryItem item) static voidsendButcherAnimal(IsoDeadBody body, IsoPlayer player) static voidsendClientCommand(String module, String command, se.krka.kahlua.vm.KahluaTable args) Sends a command to the server, triggering the OnClientCommand event on the server.static voidsendClientCommand(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args) Sends a command to the server, triggering the OnClientCommand event on the server.voidsendClientCommandV(IsoPlayer player, String module, String command, Object... values) static voidsendClothing(IsoPlayer player, ItemBodyLocation location, InventoryItem item) static voidSendCommandToServer(String command) static voidsendCorpse(IsoDeadBody body) static voidsendDamage(IsoPlayer player) static voidsendDebugStory(IsoGridSquare square, int type, String name) static voidstatic voidsendFactionInvite(Faction faction, IsoPlayer host, String invited) static voidsendFeedAnimalFromHand(IsoAnimal animal, IsoPlayer player, InventoryItem item) static voidsendGoogleAuth(String username, String code) static voidsendHitVehicle(IsoGameCharacter target, String damage, boolean isTargetHitFromBehind, String vehicleDamage, String vehicleSpeed, boolean isVehicleHitFromBehind) static voidsendHumanVisual(IsoPlayer player) static voidsendHutchGrabAnimal(IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item) static voidsendHutchGrabCorpseAction(IsoAnimal animal, IsoPlayer player, IsoObject object, InventoryItem item) static voidsendHutchRemoveAnimalAction(IsoAnimal animal, IsoPlayer player, IsoObject object) voidsendIconFound(IsoPlayer player, String type, float distanceTraveled) static booleansendItemListNet(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String transferID, String custom) static voidsendItemsInContainer(IsoObject obj, ItemContainer container) static voidsendItemStats(InventoryItem item) static voidsendPersonalColor(IsoPlayer player) static voidsendPickupAnimal(IsoAnimal animal, IsoPlayer player, AnimalInventoryItem item) static voidsendPing()static voidsendPlayerEffects(IsoPlayer player) static voidvoidsendPlayerNutrition(IsoPlayer player) voidsendPlayerStat(IsoPlayer player, CharacterStat stat) static voidsendPlayerStatsChange(IsoPlayer player) voidsendPlaySound(String sound, boolean loop, IsoMovingObject object) static voidsendRemoveAndGrabAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem item) static voidsendRemoveAndGrabAnimalFromTrailer(IsoDeadBody animal, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem item) static voidsendRemoveAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) static voidsendRemoveItemFromContainer(ItemContainer container, InventoryItem item) static voidsendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> items) static voidsendReplaceItemInContainer(ItemContainer container, InventoryItem oldItem, InventoryItem newItem) static voidsendRequestInventory(int id, String username) static voidsendSafehouseChangeMember(SafeHouse safehouse, String player) static voidsendSafehouseChangeOwner(SafeHouse safehouse, String username) static voidsendSafehouseChangeRespawn(SafeHouse safehouse, String player, boolean doRemove) static voidsendSafehouseChangeTitle(SafeHouse safehouse, String title) static voidsendSafehouseClaim(IsoGridSquare square, IsoPlayer player, String title) static voidsendSafehouseInvite(SafeHouse safehouse, IsoPlayer host, String invited) static voidsendSafehouseRelease(SafeHouse safehouse) static voidsendSafezoneClaim(String username, int x, int y, int h, int w, String title) static voidsendSecretKey(String username, String pwd, String ip, int port, String serverPassword, boolean doHash, int authType, String secretKey) static voidsendServerCommand(String module, String command, se.krka.kahlua.vm.KahluaTable args) Sends a command to all clients, triggering the OnServerCommand event on every client.static voidsendServerCommand(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args) Sends a command to a specific client, triggering the OnServerCommand event on the client.voidsendServerCommandV(String module, String command, Object... values) static voidsendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo) static voidsendSyncPlayerFields(IsoPlayer player, byte syncParams) static voidsendVisual(IsoPlayer player) static voidsendWarManagerUpdate(int onlineID, String attacker, WarManager.State state) static voidserverConnect(String user, String pass, String server, String localIP, String port, String serverPassword, String serverName, boolean useSteamRelay, boolean doHash, int authtype, String secretKey) static voidserverConnectCoop(String serverSteamID) static booleanserverFileExists(String filename) static voidsetActivePlayer(int id) static voidsetAdmin()static voidsetAggroTarget(int id, int x, int y) static voidsetBehaviorStep(boolean b) static voidsetControllerDeadZone(int c, int axis, float value) static voidsetDebugToggleControllerPluggedIn(int index) static voidsetDefaultRoleFor(String defaultId, String roleName) static voidsetGameSpeed(int NewSpeed) static voidsetMinMaxZombiesPerChunk(float min, float max) static voidsetModelMetaData(String name, String mesh, String tex, String shader, boolean bStatic) static voidsetMouseXY(int x, int y) static voidsetPlayerJoypad(int player, int joypad, IsoPlayer playerObj, String username) static voidsetPlayerMouse(IsoPlayer playerObj) static voidsetPlayerMovementActive(int id, boolean bActive) static voidsetProgressBarValue(IsoPlayer player, int value) static voidsetPuddles(float initialPuddles) static voidsetSavefilePlayer1(String gameMode, String saveDir, int sqlID) static voidsetShowConnectionInfo(boolean enabled) static voidsetShowPausedMessage(boolean b) static voidsetShowServerInfo(boolean enabled) static voidsetSpawnRegion(String spawnRegionName) static voidsetupRole(Role role, String description, Color color, se.krka.kahlua.vm.KahluaTable capabilities_raw) static voidsetZoomLevels(Double... zooms) static voidstatic voidstatic voidstatic voidstatic voidshowFolderInDesktop(String folder) static voidstatic voidstatic voidstatic booleanshowSteamFloatingGamepadTextInput(boolean multiLine, int x, int y, int width, int height) static booleanshowSteamGamepadTextInput(boolean password, boolean multiLine, String description, int maxChars, String existingText) static voidshowTimers(String clazzStr) static voidshowTimersTotal(String clazzStr) static voidshowVehicleEditor(String scriptName) static voidshowWorldMapEditor(String value) static voidshowWrongChatTabMessage(int actualTabID, int rightTabID, String chatCommand) static voidsledgeDestroy(IsoObject object) static se.krka.kahlua.vm.KahluaTablesortBrowserList(se.krka.kahlua.j2se.KahluaTableImpl table, String sortType, boolean sortDown, se.krka.kahlua.j2se.KahluaTableImpl filterTable) static voidspawnHorde(float x, float y, float x2, float y2, float z, int count) static booleanspawnpointsExistsForMod(String modID, String mapFolder) static se.krka.kahlua.vm.KahluaTablesplitString(String input, int maxSize) static bytestartFishingAction(IsoPlayer player, InventoryItem item, IsoGridSquare sq, se.krka.kahlua.vm.KahluaTable bobber) static ServersteamGetInternetServerDetails(int index) static voidstatic intstatic voidstatic booleansteamRequestServerDetails(String host, int port) static booleansteamRequestServerRules(String host, int port) static voidstatic voidstatic voidstopPing()static voidstatic voidstopSound(long sound) voidsyncBodyPart(BodyPart bodyPart, long syncParams) voidsyncHandWeaponFields(IsoPlayer player, HandWeapon item) voidsyncItemFields(IsoPlayer player, InventoryItem item) voidsyncItemModData(IsoPlayer player, InventoryItem item) voidsyncPlayerStats(IsoPlayer player, int syncParams) static voidsyncVisuals(IsoPlayer player) voidstatic Stringstatic voidstatic voidtakeScreenshot(String fileName) static voidteleportPlayers(IsoPlayer player) static voidteleportToHimUserAction(String action, String username, String additionArgument) static voidteleportUserAction(String action, String username, String additionArgument) static voidstatic voidstatic voidstatic voidtoggleBreakOnChange(se.krka.kahlua.vm.KahluaTable table, Object key) static voidtoggleBreakOnRead(se.krka.kahlua.vm.KahluaTable table, Object key) static voidtoggleBreakpoint(String file, int line) static voidtoggleModActive(ChooseGameInfo.Mod mod, boolean active) static voidstatic inttoInt(double val) static voidtradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem item) static voidtradingUISendRemoveItem(IsoPlayer you, IsoPlayer other, InventoryItem item) static voidtradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state) static se.krka.kahlua.vm.KahluaTablestatic floattranslatePointXInOverheadMapToWindow(float x, UIElement ui, float zoom, float xpos) static floattranslatePointXInOverheadMapToWorld(float x, UIElement ui, float zoom, float xpos) static floattranslatePointYInOverheadMapToWindow(float y, UIElement ui, float zoom, float ypos) static floattranslatePointYInOverheadMapToWorld(float y, UIElement ui, float zoom, float ypos) static voidtransmitBigWaterSplash(int x, int y, float dx, float dy) static voidtriggerEvent(String event) static voidtriggerEvent(String event, Object param) static voidtriggerEvent(String event, Object param, Object param2) static voidtriggerEvent(String event, Object param, Object param2, Object param3) static voidstatic TexturetryGetTexture(String filename) static voidupdateAccountToAccountList(Account account) static voidupdateChatSettings(String fontSize, boolean showTimestamp, boolean showTitle) static voidstatic voidupdateServerToAccountList(Server server) static voiduseStaticErosionRand(boolean use) static voiduseTextureFiltering(boolean bUse) static voidviewedTicket(String author, int ticketID) static booleanwasKeyDown(int key) static booleanwasKeyDown(String keyName) static booleanstatic voidstatic doubleZombRand(double max) Returns a pseudorandom integer between 0 and max - 1.static doubleZombRand(double min, double max) Returns a pseudorandom integer between min and max - 1.static doubleZombRandBetween(double min, double max) Returns a pseudorandom integer between min and max - 1.static floatZombRandFloat(float min, float max) Returns a pseudorandom float between min and max.static voidzpopClearZombies(int cellX, int cellY) static ZombiePopulationRendererstatic voidzpopSpawnNow(int cellX, int cellY) static voidzpopSpawnTimeToZero(int cellX, int cellY)
-
Constructor Details
-
GlobalObject
public GlobalObject()
-
-
Method Details
-
loadVehicleModel
-
loadStaticZomboidModel
-
loadSkinnedZomboidModel
-
loadZomboidModel
-
setModelMetaData
-
reloadModelsMatching
-
getSLSoundManager
-
getRadioAPI
-
getRadioTranslators
-
getTranslatorCredits
-
getBehaviourDebugPlayer
-
setBehaviorStep
public static void setBehaviorStep(boolean b) -
getPuddlesManager
-
getAllAnimalsDefinitions
-
setPuddles
public static void setPuddles(float initialPuddles) -
fastfloor
public static float fastfloor(float coord) -
getZomboidRadio
-
getRandomUUID
-
sendItemListNet
-
convertToPZNetTable
public static se.krka.kahlua.vm.KahluaTable convertToPZNetTable(se.krka.kahlua.vm.KahluaTable table) -
instof
-
getClassSimpleName
-
serverConnect
-
serverConnectCoop
-
sendPing
public static void sendPing() -
connectionManagerLog
-
forceDisconnect
public static void forceDisconnect() -
checkPermissions
-
backToSinglePlayer
public static void backToSinglePlayer() -
isIngameState
public static boolean isIngameState() -
getPerformanceLocal
public static se.krka.kahlua.vm.KahluaTable getPerformanceLocal() -
getNetworkLocal
public static se.krka.kahlua.vm.KahluaTable getNetworkLocal() -
getGameLocal
public static se.krka.kahlua.vm.KahluaTable getGameLocal() -
getPerformanceRemote
public static se.krka.kahlua.vm.KahluaTable getPerformanceRemote() -
getNetworkRemote
public static se.krka.kahlua.vm.KahluaTable getNetworkRemote() -
getGameRemote
public static se.krka.kahlua.vm.KahluaTable getGameRemote() -
getMPStatus
public static se.krka.kahlua.vm.KahluaTable getMPStatus() -
canConnect
public static boolean canConnect() -
getReconnectCountdownTimer
-
sendAnimalGenome
-
addAnimal
public static IsoAnimal addAnimal(IsoCell cell, int x, int y, int z, String animalType, AnimalBreed breed, boolean skeleton) -
addAnimal
public static IsoAnimal addAnimal(IsoCell cell, int x, int y, int z, String animalType, AnimalBreed breed) -
removeAnimal
public static void removeAnimal(int id) -
getFakeAttacker
-
sendHitVehicle
public static void sendHitVehicle(IsoGameCharacter target, String damage, boolean isTargetHitFromBehind, String vehicleDamage, String vehicleSpeed, boolean isVehicleHitFromBehind) -
requestUsers
public static void requestUsers() -
requestPVPEvents
public static void requestPVPEvents() -
clearPVPEvents
public static void clearPVPEvents() -
getUsers
-
networkUserAction
-
banUnbanUserAction
-
teleportUserAction
-
teleportToHimUserAction
-
requestRoles
public static void requestRoles() -
getRoles
-
getCapabilities
-
addRole
-
setupRole
-
deleteRole
-
setDefaultRoleFor
-
moveRole
-
getWarNearest
-
getWars
-
getHutch
-
getAnimal
-
sendAddAnimalFromHandsInTrailer
public static void sendAddAnimalFromHandsInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) -
sendAddAnimalFromHandsInTrailer
public static void sendAddAnimalFromHandsInTrailer(IsoDeadBody animal, IsoPlayer player, BaseVehicle vehicle) -
sendAddAnimalInTrailer
-
sendAddAnimalInTrailer
public static void sendAddAnimalInTrailer(IsoDeadBody animal, 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 item) -
sendRemoveAndGrabAnimalFromTrailer
public static void sendRemoveAndGrabAnimalFromTrailer(IsoDeadBody animal, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem item) -
sendAttachAnimalToPlayer
-
sendAttachAnimalToTree
-
sendPickupAnimal
-
sendButcherAnimal
-
sendFeedAnimalFromHand
-
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
-
sendCorpse
-
getAllItems
-
scoreboardUpdate
public static void scoreboardUpdate() -
save
public static void save(boolean doCharacter) -
saveGame
public static void saveGame() -
getAllRecipes
-
requestUserlog
-
addUserlog
-
removeUserlog
-
tabToX
-
isType
-
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
-
getSleepingEvent
-
setPlayerMovementActive
public static void setPlayerMovementActive(int id, boolean bActive) -
setActivePlayer
public static void setActivePlayer(int id) -
getPlayer
Gets the current player. To support splitscreen, getSpecificPlayer() should be preferred instead.- Returns:
- The current player.
-
getNumActivePlayers
public static int getNumActivePlayers() -
playServerSound
-
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
-
initUISystem
public static void initUISystem() -
getPerformance
-
getWorldSoundManager
-
getAnimalChunk
-
AddWorldSound
-
AddNoiseToken
-
pauseSoundAndMusic
public static void pauseSoundAndMusic() -
resumeSoundAndMusic
public static void resumeSoundAndMusic() -
isDemo
public static boolean isDemo() -
getTimeInMillis
public static long getTimeInMillis() -
getCurrentCoroutine
public static se.krka.kahlua.vm.Coroutine getCurrentCoroutine() -
reloadLuaFile
-
reloadServerLuaFile
-
setSpawnRegion
-
getServerSpawnRegions
public static se.krka.kahlua.vm.KahluaTable getServerSpawnRegions() -
getServerOptions
-
getServerName
-
getServerIP
-
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
-
getCameraOffX
public static float getCameraOffX() -
getLatestSave
public static se.krka.kahlua.vm.KahluaTable getLatestSave() -
isCurrentExecutionPoint
-
toggleBreakOnChange
-
isDebugEnabled
public static boolean isDebugEnabled() -
toggleBreakOnRead
-
toggleBreakpoint
-
sendVisual
-
sendSyncPlayerFields
-
sendClothing
-
syncVisuals
-
sendEquip
-
sendDamage
-
sendPlayerEffects
-
sendItemStats
-
hasDataReadBreakpoint
-
hasDataBreakpoint
-
hasBreakpoint
-
getLoadedLuaCount
public static int getLoadedLuaCount() -
getLoadedLua
-
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. -
haveAccess
Deprecated. -
getOnlinePlayers
-
getDebug
public static boolean getDebug() -
getCameraOffY
public static float getCameraOffY() -
createRegionFile
public static se.krka.kahlua.vm.KahluaTable createRegionFile()Create a dynamic table containing all spawnpoints.lua we find in vanilla folder + in loaded mods -
getMapDirectoryTable
public static se.krka.kahlua.vm.KahluaTable getMapDirectoryTable() -
deleteSave
-
sendPlayerExtraInfo
-
getServerAddressFromArgs
-
getServerPasswordFromArgs
-
getServerListFile
Deprecated. -
addServerToAccountList
-
updateServerToAccountList
-
deleteServerToAccountList
-
addAccountToAccountList
-
updateAccountToAccountList
-
deleteAccountToAccountList
-
getServerList
public static se.krka.kahlua.vm.KahluaTable getServerList() -
ping
-
getCustomizationData
-
getCombatConfig
-
stopPing
public static void stopPing() -
transformIntoKahluaTable
-
getSaveDirectory
-
getFullSaveDirectoryTable
public static se.krka.kahlua.vm.KahluaTable getFullSaveDirectoryTable() -
getSaveName
-
getSaveDirectoryTable
public static se.krka.kahlua.vm.KahluaTable getSaveDirectoryTable() -
getCurrentSaveName
-
getMods
-
doChallenge
public static void doChallenge(se.krka.kahlua.vm.KahluaTable challenge) -
doTutorial
public static void doTutorial(se.krka.kahlua.vm.KahluaTable tutorial) -
setMinMaxZombiesPerChunk
public static void setMinMaxZombiesPerChunk(float min, float max) -
deleteAllGameModeSaves
-
sledgeDestroy
-
getBannedIPs
public static void getBannedIPs() -
getBannedSteamIDs
public static void getBannedSteamIDs() -
getTickets
-
addTicket
-
viewedTicket
-
removeTicket
public static void removeTicket(int ticketID) -
sendFactionInvite
-
acceptFactionInvite
-
sendSafehouseInvite
-
acceptSafehouseInvite
-
sendSafehouseChangeMember
-
sendSafehouseChangeOwner
-
sendSafehouseChangeRespawn
-
sendSafehouseChangeTitle
-
sendSafezoneClaim
-
sendSafehouseClaim
-
sendSafehouseRelease
-
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
-
triggerEvent
-
triggerEvent
-
triggerEvent
-
triggerEvent
-
debugLuaTable
-
debugLuaTable
-
sendItemsInContainer
-
getModDirectoryTable
public static se.krka.kahlua.vm.KahluaTable getModDirectoryTable() -
getModInfoByID
-
getModInfo
-
getMapFoldersForMod
-
spawnpointsExistsForMod
-
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:
- File separator.
-
getScriptManager
-
checkSaveFolderExists
-
getAbsoluteSaveFolderName
-
checkSaveFileExists
-
checkSavePlayerExists
public static boolean checkSavePlayerExists() -
cacheFileExists
-
fileExists
-
serverFileExists
-
takeScreenshot
public static void takeScreenshot() -
takeScreenshot
-
checkStringPattern
-
instanceItem
-
instanceItem
-
instanceItem
-
instanceItem
-
createNewScriptItem
-
cloneItemType
-
moduleDotType
-
require
-
getRenderer
-
getGameTime
-
getMaxPlayers
-
callLua
-
callLuaReturn
-
callLuaBool
-
getWorld
-
getCell
-
getCellSizeInChunks
-
getCellSizeInSquares
-
getChunkSizeInSquares
-
getMinimumWorldLevel
-
getMaximumWorldLevel
-
getSandboxOptions
-
getFileOutput
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:
- Output stream, or null if the path was not valid.
-
getLastStandPlayersDirectory
-
getLastStandPlayerFileNames
-
getAllSavedPlayers
Deprecated.- Throws:
IOException
-
getSandboxPresets
-
deleteSandboxPreset
-
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 read from. '..' is not allowed.createIfNull- Whether to create the file if it does not exist. The created file will be empty.- Returns:
- 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 mod's common folder, to read from. '..' is not allowed.createIfNull- Whether to create the file if it does not exist. The created file will be empty.- Returns:
- File reader, or null if the path or mod was not valid.
- Throws:
IOException
-
listFilesInZomboidLuaDirectory
- Throws:
IOException
-
listFilesInModDirectory
public static ArrayList<String> listFilesInModDirectory(String modID, String directory) 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 mod's common folder, 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
-
checkPlayerExistsInDatabase
-
deletePlayerSave
-
getControllerCount
public static int getControllerCount() -
isControllerConnected
public static boolean isControllerConnected(int index) -
getControllerGUID
-
getControllerName
-
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
-
setPlayerJoypad
-
setPlayerMouse
-
revertToKeyboardAndMouse
public static void revertToKeyboardAndMouse() -
revertToKeyboardAndMouseFromMainMenu
public static void revertToKeyboardAndMouseFromMainMenu() -
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
-
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:
- File writer, or null if the path was not valid.
-
getSandboxFileWriter
public static LuaManager.GlobalObject.LuaFileWriter getSandboxFileWriter(String filename, boolean createIfNull, boolean append) -
createStory
-
createWorld
-
sanitizeWorldName
-
forceChangeState
-
endFileOutput
public static void endFileOutput() -
getFileInput
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:
- Input stream, or null if the path was not valid.
-
getGameFilesInput
-
getGameFilesTextInput
-
endTextFileInput
public static void endTextFileInput() -
endFileInput
public static void endFileInput() -
getLineNumber
public static int getLineNumber(se.krka.kahlua.vm.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:
- 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- Inclusive lower bound of the random integer.max- 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- Inclusive lower bound of the random integer.max- Exclusive upper bound of the random integer.- Returns:
- Random integer.
-
ZombRandFloat
public static float ZombRandFloat(float min, float max) Returns a pseudorandom float between min and max.- Parameters:
min- Lower bound of the random float.max- The upper bound of the random float.- Returns:
- The random float.
-
getShortenedFilename
-
isKeyDown
public static boolean isKeyDown(int key) -
isKeyDown
-
wasKeyDown
public static boolean wasKeyDown(int key) -
wasKeyDown
-
isKeyPressed
public static boolean isKeyPressed(int key) -
isKeyPressed
-
getBaseSoundBank
-
getFMODSoundBank
-
isSoundPlaying
-
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
-
getCore
-
getGameVersion
-
getBreakModGameVersion
-
getSquare
-
getDebugOptions
-
setShowPausedMessage
public static void setShowPausedMessage(boolean b) -
getFilenameOfCallframe
-
getFilenameOfClosure
-
getFirstLineOfClosure
public static int getFirstLineOfClosure(se.krka.kahlua.vm.LuaClosure c) -
getLocalVarCount
public static int getLocalVarCount(se.krka.kahlua.vm.Coroutine c) -
getLocalVarCount
public static int getLocalVarCount(se.krka.kahlua.vm.LuaCallFrame callFrame) -
isSystemLinux
public static boolean isSystemLinux() -
isSystemMacOS
public static boolean isSystemMacOS() -
isSystemWindows
public static boolean isSystemWindows() -
isModActive
-
openURl
-
isDesktopOpenSupported
public static boolean isDesktopOpenSupported() -
showFolderInDesktop
-
getActivatedMods
-
toggleModActive
-
saveModsFile
public static void saveModsFile() -
manipulateSavefile
-
getLocalVarName
-
getLocalVarName
-
getLocalVarStack
public static int getLocalVarStack(se.krka.kahlua.vm.Coroutine c, int n) -
getLocalVarStackIndex
public static int getLocalVarStackIndex(se.krka.kahlua.vm.LuaCallFrame callFrame, int n) -
getCallframeTop
public static int getCallframeTop(se.krka.kahlua.vm.Coroutine c) -
getCoroutineTop
public static int getCoroutineTop(se.krka.kahlua.vm.Coroutine c) -
getCoroutineObjStack
-
getCoroutineObjStackWithBase
-
localVarName
-
getCoroutineCallframeStack
public static se.krka.kahlua.vm.LuaCallFrame getCoroutineCallframeStack(se.krka.kahlua.vm.Coroutine c, int n) -
getLuaStackTrace
-
createTile
-
getNumClassFunctions
-
getClassFunction
-
getNumClassFields
-
getClassField
-
getDirectionTo
-
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
-
assaultPlayer
public static void assaultPlayer() -
isoRegionsRenderer
-
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
-
getMethodParameter
-
getMethodParameterCount
-
breakpoint
public static void breakpoint() -
getLuaDebuggerErrorCount
public static int getLuaDebuggerErrorCount() -
getLuaDebuggerErrors
-
doLuaDebuggerAction
-
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 number) -
getMouseY
public static int getMouseY() -
getSoundManager
-
getLastPlayedDate
-
getTextureFromSaveDir
-
getSaveInfo
-
renameSaveFile
-
setSavefilePlayer1
-
getServerSavedWorldVersion
-
getZombieInfo
-
getPlayerInfo
-
getMapInfo
-
getVehicleInfo
-
getLotDirectories
-
useTextureFiltering
public static void useTextureFiltering(boolean bUse) -
getTexture
-
tryGetTexture
-
sendSecretKey
-
stopSendSecretKey
public static void stopSendSecretKey() -
generateSecretKey
-
sendGoogleAuth
-
createQRCodeTex
public static Texture createQRCodeTex(String user, String key) throws com.google.zxing.WriterException, IOException - Throws:
com.google.zxing.WriterExceptionIOException
-
getVideo
-
getTextManager
-
setProgressBarValue
-
getText
-
getText
-
getText
-
getText
-
getText
-
getTextOrNull
-
getTextOrNull
-
getTextOrNull
-
getTextOrNull
-
getTextOrNull
-
getItemText
-
getRadioText
-
getTextMediaEN
-
getItemNameFromFullType
-
getItem
-
getItemStaticModel
-
isItemFood
-
getItemFoodType
-
isItemFresh
-
getItemCount
-
getItemWeight
-
getItemActualWeight
-
getItemConditionMax
-
getItemEvolvedRecipeName
-
hasItemTag
-
getItemDisplayName
-
getItemName
-
getItemTextureName
-
getAndFindNearestTracks
-
getItemTex
-
getRecipeDisplayName
-
getMyDocumentFolder
-
getSpriteManager
-
getSprite
-
getServerModData
public static void getServerModData() -
isXBOXController
public static boolean isXBOXController() -
isPlaystationController
public static boolean isPlaystationController(int id) -
sendClientCommand
public static void sendClientCommand(String module, String command, se.krka.kahlua.vm.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, se.krka.kahlua.vm.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, se.krka.kahlua.vm.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, se.krka.kahlua.vm.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
-
sendClientCommandV
-
addVariableToSyncList
-
getOnlineUsername
-
isValidUserName
-
getHourMinute
-
SendCommandToServer
-
isAdmin
public static boolean isAdmin() -
canModifyPlayerScoreboard
Deprecated. -
isAccessLevel
Deprecated. -
sendHumanVisual
-
stopFire
-
sortBrowserList
public static se.krka.kahlua.vm.KahluaTable sortBrowserList(se.krka.kahlua.j2se.KahluaTableImpl table, String sortType, boolean sortDown, se.krka.kahlua.j2se.KahluaTableImpl filterTable) -
getGameClient
-
sendRequestInventory
-
InvMngGetItem
-
InvMngRemoveItem
-
InvMngUpdateItem
-
getConnectedPlayers
-
getPlayerFromUsername
-
isCoopHost
public static boolean isCoopHost() -
setAdmin
public static void setAdmin() -
addWarningPoint
-
disconnect
public static void disconnect() -
writeLog
-
doKeyPress
public static void doKeyPress(boolean doIt) -
getEvolvedRecipes
-
getZone
-
getZones
-
getVehicleZoneAt
-
getCellMinX
public static int getCellMinX() -
getCellMaxX
public static int getCellMaxX() -
getCellMinY
public static int getCellMinY() -
getCellMaxY
public static int getCellMaxY() -
replaceWith
-
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
-
getFriendsList
public static se.krka.kahlua.vm.KahluaTable getFriendsList() -
getSteamModeActive
-
getStreamModeActive
-
getRemotePlayModeActive
-
isValidSteamID
-
getCurrentUserSteamID
-
getCurrentUserProfileName
-
getSteamScoreboard
public static boolean getSteamScoreboard() -
isSteamOverlayEnabled
public static boolean isSteamOverlayEnabled() -
activateSteamOverlayToWorkshop
public static void activateSteamOverlayToWorkshop() -
activateSteamOverlayToWorkshopUser
public static void activateSteamOverlayToWorkshopUser() -
activateSteamOverlayToWorkshopItem
-
activateSteamOverlayToWebPage
-
getSteamProfileNameFromSteamID
-
getSteamAvatarFromSteamID
-
getSteamIDFromUsername
-
resetRegionFile
public static void resetRegionFile() -
getSteamProfileNameFromUsername
-
getSteamAvatarFromUsername
-
getSteamWorkshopStagedItems
-
getSteamWorkshopItemIDs
-
getSteamWorkshopItemMods
-
isSteamRunningOnSteamDeck
public static boolean isSteamRunningOnSteamDeck() -
showSteamGamepadTextInput
-
showSteamFloatingGamepadTextInput
public static boolean showSteamFloatingGamepadTextInput(boolean multiLine, int x, int y, int width, int height) -
isFloatingGamepadTextInputVisible
public static boolean isFloatingGamepadTextInputVisible() -
sendPlayerStatsChange
-
sendPersonalColor
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
sendWarManagerUpdate
-
getTwoLetters
-
splitString
-
querySteamWorkshopItemDetails
-
connectToServerStateCallback
-
getPublicServersList
public static se.krka.kahlua.vm.KahluaTable getPublicServersList() -
steamRequestInternetServersList
public static void steamRequestInternetServersList() -
steamReleaseInternetServersRequest
public static void steamReleaseInternetServersRequest() -
steamRequestInternetServersCount
public static int steamRequestInternetServersCount() -
steamGetInternetServerDetails
-
steamRequestServerRules
-
getHostByName
-
steamRequestServerDetails
-
isPublicServerListAllowed
public static boolean isPublicServerListAllowed() -
isSteamServerBrowserEnabled
public static boolean isSteamServerBrowserEnabled() -
testSound
public static void testSound() -
getFMODEventPathList
-
debugSetRoomType
-
copyTable
public static se.krka.kahlua.vm.KahluaTable copyTable(se.krka.kahlua.vm.KahluaTable table) -
copyTable
public static se.krka.kahlua.vm.KahluaTable copyTable(se.krka.kahlua.vm.KahluaTable to, se.krka.kahlua.vm.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 x, float y, float z, float radius, float r, float g, float b, float a, int thickness) -
renderLine
public static void renderLine(float x, float y, float z, float tx, float ty, float tz, float r, float g, float b, float a) -
configureLighting
public static void configureLighting(float darkStep) -
invalidateLighting
public static void invalidateLighting() -
testHelicopter
public static void testHelicopter() -
endHelicopter
public static void endHelicopter() -
getServerSettingsManager
-
rainConfig
-
sendSwitchSeat
public static void sendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo) -
getVehicleById
-
removeVehicle
-
removeAllVehicles
-
addBloodSplat
-
addBloodSplat
-
addCarCrash
public static void addCarCrash() -
createRandomDeadBody
-
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
-
addZombiesInOutfit
-
addZombiesInOutfit
-
addZombiesInOutfit
-
addZombiesInOutfit
public static ArrayList<IsoZombie> addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance, boolean isCrawler, boolean isFallOnFront, boolean isFakeDead, boolean isKnockedDown, boolean isInvulnerable, boolean isSitting, float health, boolean isAnimRecording, float heightOffset) -
addZombiesInBuilding
-
addVehicleDebug
public static BaseVehicle addVehicleDebug(String scriptName, IsoDirections dir, Integer skinIndex, IsoGridSquare sq) -
addVehicle
-
attachTrailerToPlayerVehicle
public static void attachTrailerToPlayerVehicle(int playerIndex) -
getKeyName
-
getKeyCode
-
queueCharEvent
-
queueKeyEvent
public static void queueKeyEvent(int lwjglKeyCode) -
addAllVehicles
public static void addAllVehicles() -
addAllBurntVehicles
public static void addAllBurntVehicles() -
addAllSmashedVehicles
public static void addAllSmashedVehicles() -
addAllVehicles
-
addPhysicsObject
-
toggleVehicleRenderToTexture
public static void toggleVehicleRenderToTexture() -
reloadSoundFiles
public static void reloadSoundFiles() -
getAnimationViewerState
-
getAttachmentEditorState
-
getEditVehicleState
-
getSpriteModelEditorState
-
showAnimationViewer
public static void showAnimationViewer() -
showAttachmentEditor
public static void showAttachmentEditor() -
showChunkDebugger
public static void showChunkDebugger() -
getTileGeometryState
-
showGlobalObjectDebugger
public static void showGlobalObjectDebugger() -
showSeamEditor
public static void showSeamEditor() -
getSeamEditorState
-
showSpriteModelEditor
public static void showSpriteModelEditor() -
showVehicleEditor
-
showWorldMapEditor
-
reloadVehicles
public static void reloadVehicles() -
reloadEngineRPM
public static void reloadEngineRPM() -
reloadXui
public static void reloadXui() -
reloadScripts
-
reloadEntityScripts
public static void reloadEntityScripts() -
reloadEntitiesDebug
public static void reloadEntitiesDebug() -
reloadEntityDebug
-
reloadEntityFromScriptDebug
-
getIsoEntitiesDebug
-
proceedPM
-
processSayMessage
-
processGeneralMessage
-
processShoutMessage
-
ProceedFactionMessage
-
ProcessSafehouseMessage
-
ProcessAdminChatMessage
-
showWrongChatTabMessage
-
focusOnTab
-
updateChatSettings
-
checkPlayerCanUseChat
-
reloadVehicleTextures
-
useStaticErosionRand
public static void useStaticErosionRand(boolean use) -
getClimateManager
-
getClimateMoon
-
getWorldMarkers
-
getIsoMarkers
-
getErosion
-
getAllOutfits
-
getAllVehicles
-
getAllHairStyles
-
getHairStylesInstance
-
getBeardStylesInstance
-
getAllBeardStyles
-
getVoiceStylesInstance
-
getAllVoiceStyles
-
getAllItemsForBodyLocation
-
getAllDecalNamesForItem
-
screenZoomIn
public void screenZoomIn() -
screenZoomOut
public void screenZoomOut() -
addSound
-
sendPlaySound
-
sendAddXp
-
sendIconFound
-
addXpNoMultiplier
-
addXp
-
addXpMultiplier
public void addXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float multiplier, int minLevel, int maxLevel) -
syncBodyPart
-
syncPlayerStats
-
sendPlayerStat
-
sendPlayerNutrition
-
SyncXp
-
checkServerName
-
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
-
getTileOverlays
-
NewMapBinaryFile
- Throws:
IOException
-
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 src, ItemContainer dst) -
createItemTransactionWithPosData
@Deprecated public static byte createItemTransactionWithPosData(IsoPlayer player, InventoryItem item, ItemContainer src, ItemContainer dst, String direction, float posX, float posY, float posZ) Deprecated. -
changeItemTypeTransaction
-
removeItemTransaction
public static void removeItemTransaction(byte id, boolean isCanceled) -
isItemTransactionConsistent
public static boolean isItemTransactionConsistent(InventoryItem item, ItemContainer src, ItemContainer dst, String extra) -
isItemTransactionDone
public static boolean isItemTransactionDone(byte id) -
isItemTransactionRejected
public static boolean isItemTransactionRejected(byte id) -
getItemTransactionDuration
public static int getItemTransactionDuration(byte id) -
isActionDone
public static boolean isActionDone(byte id) -
isActionRejected
public static boolean isActionRejected(byte id) -
getActionDuration
public static int getActionDuration(byte id) -
removeAction
public static void removeAction(byte id, boolean isCanceled) -
emulateAnimEvent
public static void emulateAnimEvent(NetTimedAction action, long duration, String event, String parameter) -
emulateAnimEventOnce
public static void emulateAnimEventOnce(NetTimedAction action, long duration, String event, String parameter) -
detectBadWords
-
profanityFilterCheck
-
showDebugInfoInChat
-
createBuildAction
-
startFishingAction
public static byte startFishingAction(IsoPlayer player, InventoryItem item, IsoGridSquare sq, se.krka.kahlua.vm.KahluaTable bobber) -
syncItemModData
-
syncItemFields
-
syncHandWeaponFields
-
getPickedUpFish
-
sendAddItemToContainer
-
sendAddItemsToContainer
-
sendAttachedItem
public static void sendAttachedItem(IsoGameCharacter character, String location, InventoryItem item) -
sendReplaceItemInContainer
public static void sendReplaceItemInContainer(ItemContainer container, InventoryItem oldItem, InventoryItem newItem) -
sendRemoveItemFromContainer
-
sendRemoveItemsFromContainer
public static void sendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> items) -
replaceItemInContainer
public static void replaceItemInContainer(ItemContainer container, InventoryItem oldItem, InventoryItem newItem) -
log
-
teleportPlayers
-
checkModsNeedUpdate
-
getSearchMode
-
transmitBigWaterSplash
public static void transmitBigWaterSplash(int x, int y, float dx, float dy) -
addAreaHighlight
public static void addAreaHighlight(int x1, int y1, int x2, int y2, int z, float r, float g, float b, float a) -
addAreaHighlightForPlayer
public static void addAreaHighlightForPlayer(int playerIndex, int x1, int y1, int x2, int y2, int z, float r, float g, float b, float a) -
configRoomFade
public static void configRoomFade(float seconds, float percent) -
timSort
-
javaListRemoveAt
-
sendDebugStory
-
displayLUATable
public static void displayLUATable(se.krka.kahlua.vm.KahluaTable table) -
showTimers
-
showTimersTotal
-
resetTimers
-
getTimerKept
-