Class ChestManager
java.lang.Object
io.github.vampirestudios.vampirelib.ChestManager
Manager class for texture information for Blueprint Chests.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChestManager.ChestInfogetInfoForChest(String chestType) Gets theChestManager.ChestInfofor a given chest type.static voidputChestInfo(String modId, String type, boolean trapped) Puts a createdChestManager.ChestInfoonto theCHEST_INFO_MAPfor a given ID and type.
-
Field Details
-
CHEST_INFO_MAP
-
-
Constructor Details
-
ChestManager
public ChestManager()
-
-
Method Details
-
putChestInfo
Puts a createdChestManager.ChestInfoonto theCHEST_INFO_MAPfor a given ID and type.- Parameters:
modId- Mod ID for the chest.type- Type for the chest. (e.g. "oak")trapped- If the chest is trapped.
-
getInfoForChest
Gets theChestManager.ChestInfofor a given chest type.- Parameters:
chestType- A string for theChestManager.ChestInfoto lookup.- Returns:
- The
ChestManager.ChestInfofor the given chest type, or null if there is noChestManager.ChestInfofor the given type.
-