Class LuaManager.GlobalObject
java.lang.Object
zombie.Lua.LuaManager.GlobalObject
- Enclosing class:
LuaManager
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidacceptFactionInvite(Faction faction, String host) static voidacceptSafehouseInvite(SafeHouse safeHouse, String string, IsoPlayer player, boolean boolean0) 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 int0, int int1, int int2, String string, AnimalBreed animalBreed) static IsoAnimaladdAnimal(IsoCell cell, int int0, int int1, int int2, String string, AnimalBreed animalBreed, boolean boolean0) static voidaddAreaHighlight(int int0, int int1, int int2, int int3, int int4, float float0, float float1, float float2, float float3) static voidaddAreaHighlightForPlayer(int int0, int int1, int int2, int int3, int int4, int int5, float float0, float float1, float float2, float float3) voidaddBloodSplat(IsoGridSquare sq, int nbr) Adds bloodstains to a specific square.voidaddBloodSplat(IsoGridSquare square, int int1, float float1, float float0) static voidstatic voidAddNoiseToken(IsoGridSquare sq, int radius) static BaseVehiclestatic voidstatic voidaddServerToAccountList(Server server) voidstatic voidstatic voidaddUserlog(String user, String type, String text) static voidaddVariableToSyncList(String string) static BaseVehicleaddVehicle(String string, int int1, int int0, int int2) 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 float0) voidaddXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0, int int0, int int1) voidaddXpNoMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0) 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 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(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(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) 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 string0, String string1, String string2) static voidstatic booleancacheFileExists(String string1) static voidstatic BooleancallLuaBool(String string, Object object) callLuaReturn(String string, ArrayList<Object> arrayList0) static booleanstatic booleanstatic booleanDeprecated.static booleanstatic bytechangeItemTypeTransaction(IsoPlayer player, InventoryItem item, String string) static voidcheckModsNeedUpdate(UdpConnection udpConnection) static booleancheckPermissions(IsoPlayer player, Capability capability) static BooleancheckPlayerCanUseChat(String chatCommand) static booleancheckPlayerExistsInDatabase(String string2, String string0, String string1) static booleanstatic booleanstatic booleancheckServerName(String name) static booleancheckStringPattern(String pattern) static voidclearPacketCounts(int int0, int int1, int int2) static voidstatic ItemcloneItemType(String newName, String oldName) static voidconfigureLighting(float darkStep) static voidconnectionManagerLog(String string0, String string1) static voidconnectToServerStateCallback(String button) static KahluaTableconvertToPZNetTable(KahluaTable table) static KahluaTablecopyTable(KahluaTable table) static KahluaTablecopyTable(KahluaTable to, KahluaTable from) static bytecreateBuildAction(IsoPlayer player, float float0, float float1, float float2, boolean boolean0, String string1, KahluaTable table) 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 container0, ItemContainer container1) static bytecreateItemTransactionWithPosData(IsoPlayer player, InventoryItem item, ItemContainer container0, ItemContainer container1, String string, float float0, float float1, float float2) Deprecated.static Itemstatic TexturecreateQRCodeTex(String string1, String string2) static IsoDeadBodycreateRandomDeadBody(IsoGridSquare square, int blood) static 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 string2, String string0, String string1) static voiddeletePlayerSave(String fileName) static voiddeleteRole(String string) static voiddeleteSandboxPreset(String name) static voiddeleteSave(String file) static voiddeleteServerToAccountList(Server server) static booleandetectBadWords(String string) static voidstatic voiddisplayLUATable(KahluaTable table) static voiddoChallenge(KahluaTable challenge) static voiddoKeyPress(boolean doIt) static voiddoLuaDebuggerAction(String action) static voiddoTutorial(KahluaTable tutorial) static voiddrawOverheadMap(UIElement uIElement, int int0, float float0, float float1, float float2) static voidemulateAnimEvent(NetTimedAction netTimedAction, long long0, String string0, String string1) static voidemulateAnimEventOnce(NetTimedAction netTimedAction, long long0, String string0, String string1) static voidstatic voidstatic voidstatic voidstatic floatfastfloor(float float0) static booleanfileExists(String filename) static voidfocusOnTab(Short id) static voidforceChangeState(GameState state) static voidstatic voidstatic Stringstatic Stringstatic StringDeprecated.static intgetActionDuration(byte byte0) static ArrayList<AnimalDefinitions> getAllHairStyles(boolean female) static KahluaTablegetAllItemsForBodyLocation(String bodyLocation) getAllOutfits(boolean female) static List<BufferedReader> Deprecated.static ArrayList<VoiceStyle> static BaseAmbientStreamManagerstatic ArrayList<AnimalTracks> getAndFindNearestTracks(IsoGameCharacter character) static IsoAnimalgetAnimal(int int0) static AnimalChunkgetAnimalChunk(int int1, int int0) static AnimationViewerStatestatic AttachmentEditorStatestatic voidstatic voidstatic BaseSoundBankstatic BeardStylesstatic IsoGameCharacterstatic GameVersionstatic intgetButtonCount(int joypad) static intstatic 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 Stringstatic ClimateManagerstatic ClimateMoonstatic 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 LuaCallFramegetCoroutineCallframeStack(Coroutine c, int n) static ObjectgetCoroutineObjStack(Coroutine c, int n) static ObjectgetCoroutineObjStackWithBase(Coroutine c, int n) static intlonglongstatic Coroutinestatic Stringstatic Stringstatic Stringstatic voidgetCustomizationData(String string0, String string1, String string2, String string3, String string4, String string5, boolean boolean0) 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 Stringstatic Stringstatic 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 intstatic BaseSoundBankstatic KahluaTablestatic KahluaTablestatic GameClientstatic DataInputStreamgetGameFilesInput(String filename) static BufferedReadergetGameFilesTextInput(String filename) static intstatic GameTimestatic longstatic Stringlonglongstatic HairStylesstatic StringgetHostByName(String string) static Stringstatic IsoHutchgetHutch(int int0, int int1, int int2) static ArrayList<GameEntity> static IsoMarkersstatic Itemstatic floatgetItemActualWeight(String string) static intgetItemConditionMax(String string) static intgetItemCount(String string) static StringgetItemDisplayName(String string) static StringgetItemEvolvedRecipeName(String string) static StringgetItemFoodType(String string) static StringgetItemName(String string0) static StringgetItemNameFromFullType(String fullType) static StringgetItemStaticModel(String string) static TexturegetItemTex(String string) static StringgetItemText(String txt) static StringgetItemTextureName(String string) static intgetItemTransactionDuration(byte byte0) static floatgetItemWeight(String string) 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 KahluaTablestatic intstatic StringgetLoadedLua(int n) static intstatic intstatic intgetLocalVarCount(LuaCallFrame luaCallFrame) static StringgetLocalVarName(Coroutine c, int n) static StringgetLocalVarName(LuaCallFrame luaCallFrame, int int0) static intgetLocalVarStack(Coroutine c, int n) static intgetLocalVarStackIndex(LuaCallFrame luaCallFrame, int int0) static intstatic KahluaTablegetMapFoldersForMod(String modID) static KahluaTablegetMapInfo(String mapDir) static intstatic Doublestatic Doublestatic StringgetMethodParameter(Method o, int i) static intstatic Doublestatic 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 KahluaTablestatic Stringstatic intstatic intstatic intstatic Stringstatic KahluaTablegetPacketCounts(int int0, int int1, int int2, int int3, int int4, int int5) static PerformanceSettingsgetPickedUpFish(IsoPlayer player) static IsoPlayerGets the current player.static IsoPlayergetPlayerByOnlineID(int id) static IsoPlayergetPlayerFromUsername(String username) static KahluaTablegetPlayerInfo(IsoPlayer player) static intgetPlayerScreenHeight(int player) static intgetPlayerScreenLeft(int player) static intgetPlayerScreenTop(int player) static intgetPlayerScreenWidth(int player) static 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 KahluaTablestatic KahluaTablegetSaveInfo(String saveDir) static StringgetSaveName(File file) static ScriptManagerstatic SeamEditorStatestatic SearchModestatic Stringintstatic Stringstatic KahluaTablestatic StringDeprecated.static voidstatic Stringstatic ServerOptionsstatic Stringstatic Stringstatic intgetServerSavedWorldVersion(String saveFolder) static ServerSettingsManagerstatic KahluaTablestatic KahluaTablestatic booleanstatic Stringstatic SleepingEventstatic SLSoundManagerstatic BaseSoundManagerstatic IsoPlayergetSpecificPlayer(int player) static IsoSpritestatic IsoSpriteManagergetSpriteManager(String sprite) static SpriteModelEditorStatestatic IsoGridSquaregetSquare(double x, double y, double z) static KahluaTablestatic 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 longstatic longgetTranslatorCredits(Language language) static StringgetTwoLetters(String string1) static ArrayList<NetworkUser> getUsers()static BaseVehiclegetVehicleById(int id) static 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 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(KahluaTable table, Object key) static booleanhasDataReadBreakpoint(KahluaTable table, Object key) static booleanhasItemTag(String string0, String string1) static booleanhaveAccess(String string) Deprecated.static voidstatic InventoryIteminstanceItem(String item) static InventoryIteminstanceItem(String string, float float0) static InventoryIteminstanceItem(Item item) static booleanstatic voidstatic voidinviteFriend(String steamID) static voidInvMngGetItem(long long0, String string0, int int0, String string1) static voidInvMngRemoveItem(long long0, int int0, String string) static booleanis64bit()static booleanisAccessLevel(String accessLevel) Deprecated.static booleanisActionDone(byte byte0) static booleanisActionRejected(byte byte0) 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 string) static booleanisItemFresh(String string, float float0) static booleanisItemTransactionConsistent(InventoryItem item, ItemContainer container0, ItemContainer container1, String string) static booleanisItemTransactionDone(byte byte0) static booleanisItemTransactionRejected(byte byte0) 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 string) static booleanstatic booleanstatic booleanisMouseButtonDown(int number) static booleanisMouseButtonPressed(int int0) 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 int0) 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<?> list, int int0) static StringlistFilesInModDirectory(String string0, String string1) listFilesInZomboidLuaDirectory(String string0) 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(Coroutine c, int n) static voidstatic voidluaDebug()static voidmanipulateSavefile(String folder, String action) static StringmoduleDotType(String module, String type) static voidstatic voidnetworkUserAction(String string0, String string1, String string2) voidNewMapBinaryFile(String string) 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 string1) static voidquerySteamWorkshopItemDetails(ArrayList<String> itemIDs, 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 gameEntity) static voidreloadEntityFromScriptDebug(GameEntity gameEntity) static voidstatic ObjectreloadLuaFile(String string1) static voidreloadModelsMatching(String meshName) static voidreloadScripts(ScriptType scriptType) static ObjectreloadServerLuaFile(String string) static voidstatic voidstatic voidreloadVehicleTextures(String scriptName) static voidstatic voidremoveAction(byte byte0, boolean boolean0) static voidremoveAllVehicles(IsoPlayer player) static voidremoveAnimal(int int0) static voidremoveItemTransaction(byte byte0, boolean boolean0) static voidremoveTicket(int ticketID) static voidremoveUserlog(String user, String type, String text) static voidremoveVehicle(IsoPlayer player, BaseVehicle vehicle) 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 float3, float float2, float float1, float float6, float float8, float float9, float float10, float float11, int int0) static voidrenderLine(float float0, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9) static voidreplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) static StringreplaceWith(String toReplace, String regex, String by) static voidstatic voidstatic voidrequestTrading(IsoPlayer you, IsoPlayer other) static voidrequestUserlog(String user) static voidstatic Objectstatic 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 deadBody, IsoPlayer player, BaseVehicle vehicle) static voidsendAddAnimalInTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) static voidsendAddAnimalInTrailer(IsoDeadBody deadBody, IsoPlayer player, BaseVehicle vehicle) static voidsendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) static voidsendAddItemToContainer(ItemContainer container, InventoryItem item) voidsendAddXp(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0) static voidsendAnimalGenome(IsoAnimal animal) static voidsendAttachAnimalToPlayer(IsoAnimal animal, IsoPlayer player, IsoObject var2, boolean boolean0) static voidsendAttachAnimalToTree(IsoAnimal animal, IsoPlayer player, IsoObject object, boolean boolean0) static voidsendAttachedItem(IsoGameCharacter character, String string, InventoryItem item) static voidsendButcherAnimal(IsoDeadBody deadBody, IsoPlayer player) static voidsendClientCommand(String module, String command, KahluaTable args) Sends a command to the server, triggering the OnClientCommand event on the server.static voidsendClientCommand(IsoPlayer player, String module, String command, KahluaTable args) Sends a command to the server, triggering the OnClientCommand event on the server.voidsendClientCommandV(IsoPlayer player, String string0, String string1, Object... objects) static voidsendClothing(IsoPlayer player, String string, InventoryItem item) static voidSendCommandToServer(String command) static voidsendCorpse(IsoDeadBody deadBody) static voidsendDamage(IsoPlayer player) static voidsendDebugStory(IsoGridSquare square, int int0, String string) static voidstatic voidsendFactionInvite(Faction faction, IsoPlayer host, String invited) static voidsendFeedAnimalFromHand(IsoAnimal animal, IsoPlayer player, InventoryItem item) static voidsendGoogleAuth(String string0, String string1) static voidsendHitVehicle(IsoGameCharacter character, String string2, boolean boolean0, String string1, String string0, boolean boolean1) 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 string, float float0) 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 animalInventoryItem) static voidsendPing()static voidsendPlayerEffects(IsoPlayer player) static voidstatic voidsendPlayerStatsChange(IsoPlayer player) voidsendPlaySound(String string, boolean boolean0, IsoMovingObject movingObject) static voidsendRemoveAndGrabAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem animalInventoryItem) static voidsendRemoveAndGrabAnimalFromTrailer(IsoDeadBody deadBody, IsoPlayer player, BaseVehicle vehicle, AnimalInventoryItem animalInventoryItem) static voidsendRemoveAnimalFromTrailer(IsoAnimal animal, IsoPlayer player, BaseVehicle vehicle) static voidsendRemoveItemFromContainer(ItemContainer container, InventoryItem item) static voidsendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) static voidsendReplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) static voidsendRequestInventory(int int0, String string) static voidsendSafehouseChangeMember(SafeHouse safeHouse, String string) static voidsendSafehouseChangeOwner(SafeHouse safeHouse, String string) static voidsendSafehouseChangeRespawn(SafeHouse safeHouse, String string, boolean boolean0) static voidsendSafehouseChangeTitle(SafeHouse safeHouse, String string) static voidsendSafehouseClaim(IsoGridSquare square, IsoPlayer player, String string) static voidsendSafehouseInvite(SafeHouse safehouse, IsoPlayer host, String invited) static voidsendSafehouseRelease(SafeHouse safeHouse) static voidsendSafezoneClaim(String string0, int int3, int int2, int int1, int int0, String string1) static voidsendSecretKey(String string0, String string1, String string2, int int0, String string3, boolean boolean0, int int1, String string4) static voidsendServerCommand(String module, String command, KahluaTable args) Sends a command to all clients, triggering the OnServerCommand event on every client.static voidsendServerCommand(IsoPlayer player, String module, String command, KahluaTable args) Sends a command to a specific client, triggering the OnServerCommand event on the client.voidsendServerCommandV(String string0, String string1, Object... objects) static voidsendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo) static voidsendSyncPlayerFields(IsoPlayer player, byte byte0) static voidsendVisual(IsoPlayer player) static voidsendWarManagerUpdate(int int0, String string, WarManager.State state) static voidserverConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, boolean boolean1, int int0, String string7) 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 string0, String string1) static voidsetGameSpeed(int NewSpeed) static voidsetMinMaxZombiesPerChunk(float float0, float float1) 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 voidsetServerStatisticEnable(boolean enable) static voidsetShowConnectionInfo(boolean enabled) static voidsetShowPausedMessage(boolean b) static voidsetShowServerInfo(boolean enabled) static voidsetSpawnRegion(String string) static voidsetupRole(Role role, String string, Color color, KahluaTable table) static voidsetZoomLevels(Double... doubles) static voidstatic voidstatic voidstatic voidshowDebugInfoInChat(String string) static 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 voidshowVehicleEditor(String scriptName) static voidshowWorldMapEditor(String value) static voidshowWrongChatTabMessage(int actualTabID, int rightTabID, String chatCommand) static voidsledgeDestroy(IsoObject object) static KahluaTablesortBrowserList(KahluaTableImpl kahluaTableImpl, String string, boolean boolean0) static voidspawnHorde(float x, float y, float x2, float y2, float z, int count) static booleanspawnpointsExistsForMod(String modID, String mapFolder) static KahluaTablesplitString(String string0, int int0) static bytestartFishingAction(IsoPlayer player, InventoryItem item, IsoGridSquare square, KahluaTable table) 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 long0) voidsyncHandWeaponFields(IsoPlayer player, HandWeapon weapon) voidsyncItemFields(IsoPlayer player, InventoryItem item) voidsyncItemModData(IsoPlayer player, InventoryItem item) voidsyncPlayerStats(IsoPlayer player, int int0) static voidsyncVisuals(IsoPlayer player) voidSends an XP sync packet.static Stringstatic voidstatic voidtakeScreenshot(String fileName) static voidteleportPlayers(IsoPlayer player1) static voidteleportToHimUserAction(String string0, String string1, String string2) static voidteleportUserAction(String string0, String string1, String string2) static voidstatic voidstatic voidtimSort(KahluaTable table, Object functionObject) static voidtoggleBreakOnChange(KahluaTable table, Object key) static voidtoggleBreakOnRead(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 i) static voidtradingUISendRemoveItem(IsoPlayer player0, IsoPlayer player1, InventoryItem item) static voidtradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state) static 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 int0, int int1, float float0, float float1) 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 string) 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 string, int int0) static booleanwasKeyDown(int key) static booleanwasKeyDown(String string) 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 float0) -
getZomboidRadio
-
getRandomUUID
-
sendItemListNet
-
convertToPZNetTable
-
instof
-
serverConnect
-
serverConnectCoop
-
sendPing
public static void sendPing() -
connectionManagerLog
-
forceDisconnect
public static void forceDisconnect() -
checkPermissions
-
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
-
sendAnimalGenome
-
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
-
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
-
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 deadBody, IsoPlayer player, BaseVehicle vehicle) -
sendAddAnimalInTrailer
-
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
-
sendAttachAnimalToTree
-
sendPickupAnimal
public static void sendPickupAnimal(IsoAnimal animal, IsoPlayer player, AnimalInventoryItem animalInventoryItem) -
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
-
reloadLuaFile
-
reloadServerLuaFile
-
setSpawnRegion
-
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
-
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
Create a dynamic table containing all spawnpoints.lua we find in vanilla folder + in loaded mods -
getMapDirectoryTable
-
deleteSave
-
sendPlayerExtraInfo
-
getServerAddressFromArgs
-
getServerPasswordFromArgs
-
getServerListFile
Deprecated. -
addServerToAccountList
-
updateServerToAccountList
-
deleteServerToAccountList
-
addAccountToAccountList
-
updateAccountToAccountList
-
deleteAccountToAccountList
-
getServerList
-
ping
-
getCustomizationData
-
stopPing
public static void stopPing() -
transformIntoKahluaTable
-
getSaveDirectory
-
getFullSaveDirectoryTable
-
getSaveName
-
getSaveDirectoryTable
-
getCurrentSaveName
-
getMods
-
doChallenge
-
doTutorial
-
setMinMaxZombiesPerChunk
public static void setMinMaxZombiesPerChunk(float float0, float float1) -
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
-
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:
- The file separator.
-
getScriptManager
-
checkSaveFolderExists
-
getAbsoluteSaveFolderName
-
checkSaveFileExists
-
checkSavePlayerExists
public static boolean checkSavePlayerExists() -
cacheFileExists
-
fileExists
-
serverFileExists
-
takeScreenshot
public static void takeScreenshot() -
takeScreenshot
-
checkStringPattern
-
instanceItem
-
instanceItem
-
instanceItem
-
createNewScriptItem
-
cloneItemType
-
moduleDotType
-
require
-
getRenderer
-
getGameTime
-
getStatistics
-
getMPStatus
-
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:
- The output stream, or null if the path was not valid.
-
getLastStandPlayersDirectory
-
getLastStandPlayerFileNames
- Throws:
IOException
-
getAllSavedPlayers
Deprecated.- Throws:
IOException
-
getSandboxPresets
- Throws:
IOException
-
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 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
- 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
-
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() -
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:
- 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
-
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:
- The input stream, or null if the path was not valid.
- Throws:
IOException
-
getGameFilesInput
-
getGameFilesTextInput
-
endTextFileInput
public static void endTextFileInput() -
endFileInput
public static void endFileInput() -
getLineNumber
-
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
-
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
-
getLocalVarCount
-
getLocalVarCount
-
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
-
getLocalVarStackIndex
-
getCallframeTop
-
getCoroutineTop
-
getCoroutineObjStack
-
getCoroutineObjStackWithBase
-
localVarName
-
getCoroutineCallframeStack
-
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
public static void drawOverheadMap(UIElement uIElement, int int0, float float0, float float1, float float2) -
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 int0) -
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 string1, String string2) 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 int0) -
sendClientCommand
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
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
-
sendClientCommandV
-
addVariableToSyncList
-
getOnlineUsername
-
isValidUserName
-
getHourMinute
-
SendCommandToServer
-
isAdmin
public static boolean isAdmin() -
canModifyPlayerScoreboard
Deprecated. -
isAccessLevel
Deprecated. -
sendHumanVisual
-
stopFire
-
sortBrowserList
public static KahluaTable sortBrowserList(KahluaTableImpl kahluaTableImpl, String string, boolean boolean0) -
getGameClient
-
sendRequestInventory
-
InvMngGetItem
-
InvMngRemoveItem
-
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
-
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
public static void tradingUISendRemoveItem(IsoPlayer player0, IsoPlayer player1, InventoryItem item) -
tradingUISendUpdateState
-
sendWarManagerUpdate
-
getTwoLetters
-
splitString
-
querySteamWorkshopItemDetails
public static void querySteamWorkshopItemDetails(ArrayList<String> itemIDs, LuaClosure functionObj, Object arg1) -
connectToServerStateCallback
-
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() -
is64bit
public static boolean is64bit() -
testSound
public static void testSound() -
getFMODEventPathList
-
debugSetRoomType
-
copyTable
-
copyTable
-
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
-
rainConfig
-
sendSwitchSeat
public static void sendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo) -
getVehicleById
-
removeVehicle
-
removeAllVehicles
-
addBloodSplat
Adds bloodstains to a specific square.- Parameters:
sq- The square.nbr- Number of bloodstains to add.
-
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
-
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 float0, int int0, int int1) -
syncBodyPart
-
syncPlayerStats
-
SyncXp
Sends an XP sync packet. Does nothing when called on the server.- Parameters:
player- The player whose XP to sync.
-
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 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
-
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
-
profanityFilterCheck
-
showDebugInfoInChat
-
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
-
syncItemFields
-
syncHandWeaponFields
-
getPickedUpFish
-
sendAddItemToContainer
-
sendAddItemsToContainer
public static void sendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) -
sendAttachedItem
-
sendReplaceItemInContainer
public static void sendReplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) -
sendRemoveItemFromContainer
-
sendRemoveItemsFromContainer
public static void sendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) -
replaceItemInContainer
public static void replaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) -
getServerStatistic
-
log
-
setServerStatisticEnable
public static void setServerStatisticEnable(boolean enable) -
getServerStatisticEnable
public static boolean getServerStatisticEnable() -
teleportPlayers
-
checkModsNeedUpdate
-
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
-
javaListRemoveAt
-
sendDebugStory
-
displayLUATable
-