Class StashSystem
java.lang.Object
zombie.core.stash.StashSystem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckStashItem(InventoryItem item) check if the spawned item could be a stash item (map or note...)static voidFetch our list of building in which we'll spawn stash, if this building correspond, we do the necessary stuffstatic voiddoStashItem(Stash stash, InventoryItem item) Public for lua debug stash mapstatic ArrayList<StashBuilding> static Stashstatic voidinit()static voidLoad our different stashes description from lua files in "media/lua/shared/StashDescriptions"static booleanisStashBuilding(BuildingDef buildingDef) static voidload(ByteBuffer input, int WorldVersion) static voidprepareBuildingStash(String stashName) Used when you read an annoted mapstatic voidreinit()static voidReset()static voidsave(ByteBuffer output) static voidCheck 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" -
getAllStashes
-
getAlreadyReadMap
-
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
-