Package io.pzstorm.storm.event
Class OnLoadSoundBankEvent
java.lang.Object
io.pzstorm.storm.event.OnLoadSoundBankEvent
- All Implemented Interfaces:
LuaEvent,ZomboidEvent
This event triggers when a sound bank is being loaded.
Users can use this event to change the path of sound banks being loaded,
effectively replacing vanilla with their own custom sound banks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringBufferStringBuffercontaining the string that denotes the path to the sound bank being loaded. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.pzstorm.storm.event.lua.LuaEvent
getName, registerCallback
-
Field Details
-
soundBankPath
StringBuffercontaining the string that denotes the path to the sound bank being loaded. In order to replace the given path with a custom path you can do the following:String customPath = "path/to/custom/sound/bank"; soundBankPath.delete(0, soundBankPath.length()).append(customPath);
-
-
Constructor Details
-
OnLoadSoundBankEvent
-