Class StashSystem
java.lang.Object
zombie.core.stash.StashSystem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkStashItem
(InventoryItem item) check if the spawned item could be a stash item (map or note...)static void
Fetch our list of building in which we'll spawn stash, if this building correspond, we do the necessary stuffstatic void
doStashItem
(Stash stash, InventoryItem item) Public for lua debug stash mapstatic ArrayList
<StashBuilding> static Stash
static void
init()
static void
Load our different stashes description from lua files in "media/lua/shared/StashDescriptions"static boolean
isStashBuilding
(BuildingDef buildingDef) static void
load
(ByteBuffer input, int WorldVersion) static void
prepareBuildingStash
(String stashName) Used when you read an annoted mapstatic void
reinit()
static void
Reset()
static void
save
(ByteBuffer output) static void
Check if the visited building is in one of our random stash, in that case we won't spawn any stash for this building
-
Field Details
-
allStashes
-
possibleStashes
-
buildingsToDo
-
-
Constructor Details
-
StashSystem
public StashSystem()
-
-
Method Details
-
init
public static void init() -
initAllStashes
public static void initAllStashes()Load our different stashes description from lua files in "media/lua/shared/StashDescriptions" -
checkStashItem
check if the spawned item could be a stash item (map or note...) -
doStashItem
Public for lua debug stash map -
prepareBuildingStash
Used when you read an annoted map -
doBuildingStash
Fetch our list of building in which we'll spawn stash, if this building correspond, we do the necessary stuff -
getStash
-
visitedBuilding
Check if the visited building is in one of our random stash, in that case we won't spawn any stash for this building -
load
-
save
-
getPossibleStashes
-
reinit
public static void reinit() -
Reset
public static void Reset() -
isStashBuilding
-