Class ItemContainer
java.lang.Object
zombie.inventory.ItemContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatintfloatbooleanintboolean -
Constructor Summary
ConstructorsConstructorDescriptionItemContainer(int id) ItemContainer(int id, String containerName, IsoGridSquare square, IsoObject parent) ItemContainer(String containerName, IsoGridSquare square, IsoObject parent) -
Method Summary
Modifier and TypeMethodDescriptionaddItem(InventoryItem item) <T extends InventoryItem>
TbooleanbooleanAddItem(InventoryItem item) AddItemBlind(InventoryItem item) voidaddItemOnServer(InventoryItem item) AddItems(ArrayList<InventoryItem> items) AddItems(InventoryItem item, int count) voidbooleancanCharacterOpenVehicleDoor(IsoGameCharacter playerObj) booleancanCharacterUnlockVehicleDoor(IsoGameCharacter playerObj) booleanbooleancanItemFit(InventoryItem in_item) voidclear()booleanbooleanboolean<T> booleancontains(T in_itemToCompare, Invokers.Params2.Boolean.ICallback<T, InventoryItem> in_predicate, boolean doInv) booleancontains(InventoryItem item) booleancontains(InventoryItem in_itemToFind, boolean doInv) booleancontains(Invokers.Params2.Boolean.IParam2<InventoryItem> in_predicate, boolean doInv) booleancontainsEval(se.krka.kahlua.vm.LuaClosure functionObj) booleancontainsEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) booleancontainsEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) booleancontainsEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) booleanbooleancontainsID(int id) booleanbooleancontainsTag(ItemTag itemTag) booleancontainsTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) booleancontainsTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) booleancontainsTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) booleancontainsTagRecurse(ItemTag itemTag) booleancontainsType(String type) booleancontainsTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) booleancontainsTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj) booleancontainsTypeRecurse(String type) booleancontainsWithModule(String moduleType) booleancontainsWithModule(String moduleType, boolean withDeltaLeft) DoAddItem(InventoryItem item) DoAddItemBlind(InventoryItem item) booleanvoidDoRemoveItem(InventoryItem item) voidvoidemptyIt()FindAndReturn(String type) FindAndReturn(String type, int count) FindAndReturn(String type, ArrayList<InventoryItem> itemToCheck) FindAndReturnCategory(String category) FindAndReturnStack(String type) FindAndReturnStack(InventoryItem itemlike) FindAndReturnWaterItem(int uses) <T> InventoryItemfindItem(T in_itemToCompare, Invokers.Params2.Boolean.ICallback<T, InventoryItem> in_predicate, boolean doInv) findItem(Invokers.Params2.Boolean.IParam2<InventoryItem> in_predicate, boolean doInv) static floatfloatingPointCorrection(float val) floatgetAll(Predicate<InventoryItem> predicate) getAll(Predicate<InventoryItem> predicate, ArrayList<InventoryItem> result) getAllCategory(String category) getAllCategory(String category, ArrayList<InventoryItem> result) getAllCategoryRecurse(String category, ArrayList<InventoryItem> result) getAllEval(se.krka.kahlua.vm.LuaClosure functionObj) getAllEval(se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getAllEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getAllEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) getAllEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllItems(LinkedHashMap<String, InventoryItem> items, boolean inInv) getAllRecurse(Predicate<InventoryItem> predicate, ArrayList<InventoryItem> result) getAllTag(ItemTag itemTag, ArrayList<InventoryItem> result) getAllTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) getAllTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getAllTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTagRecurse(ItemTag itemTag, ArrayList<InventoryItem> result) getAllType(String type) getAllType(String type, ArrayList<InventoryItem> result) getAllTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj) getAllTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getAllTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getAllTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj) getAllTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTypeRecurse(String type) getAllTypeRecurse(String type, ArrayList<InventoryItem> result) getAllWaterFluidSources(boolean includeTainted) getAnimalInventoryItem(IsoAnimal animal) floatfloatgetBest(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) getBestBandage(SurvivorDesc descriptor) getBestCondition(String type) getBestCondition(Predicate<InventoryItem> predicate) getBestConditionEval(se.krka.kahlua.vm.LuaClosure functionObj) getBestConditionEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getBestConditionEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getBestConditionEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) getBestConditionRecurse(Predicate<InventoryItem> predicate) getBestEval(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj) getBestEvalArg(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) getBestEvalArgRecurse(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) getBestEvalRecurse(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj) getBestFood(SurvivorDesc descriptor) getBestRecurse(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) getBestType(String type, Comparator<InventoryItem> comparator) getBestTypeEval(String type, se.krka.kahlua.vm.LuaClosure comparatorObj) getBestTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) getBestTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) getBestTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure comparatorObj) getBestTypeRecurse(String type, Comparator<InventoryItem> comparator) getBestWeapon(SurvivorDesc desc) intfloatfloatfloatintgetCount(Predicate<InventoryItem> predicate) intgetCountEval(se.krka.kahlua.vm.LuaClosure functionObj) intgetCountEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) intgetCountRecurse(Predicate<InventoryItem> predicate) intgetCountTag(ItemTag itemTag) intgetCountTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) intgetCountTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) intgetCountTagRecurse(ItemTag itemTag) intgetCountType(String type) intgetCountTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj) intgetCountTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) intgetCountTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj) intgetCountTypeRecurse(String type) floatintgetFirst(Predicate<InventoryItem> predicate) getFirstCategory(String category) getFirstCategoryRecurse(String category) getFirstEval(se.krka.kahlua.vm.LuaClosure functionObj) getFirstEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getFirstEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getFirstEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) getFirstFluidContainer(String type) getFirstRecurse(Predicate<InventoryItem> predicate) getFirstTag(ItemTag itemTag) getFirstTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) getFirstTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getFirstTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) getFirstTagRecurse(ItemTag itemTag) getFirstType(String type) getFirstTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj) getFirstTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) getFirstTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj) getFirstTypeEvalRecurse(ItemKey key, se.krka.kahlua.vm.LuaClosure functionObj) getFirstTypeRecurse(String type) getFirstWaterFluidSources(boolean includeTainted) getFirstWaterFluidSources(boolean includeTainted, boolean taintedPriority) getItemById(long id) Deprecated.intgetItemCount(String type) intgetItemCount(String type, boolean doBags) intintgetItemCountRecurse(String type) getItemFromTag(ItemTag itemTag, boolean ignoreBroken, boolean includeInv) getItemFromTag(ItemTag itemTag, IsoGameCharacter chr, boolean notEquipped, boolean ignoreBroken, boolean includeInv) getItemFromType(String type) getItemFromType(String type, boolean ignoreBroken, boolean includeInv) getItemFromType(String type, IsoGameCharacter chr, boolean notEquipped, boolean ignoreBroken, boolean includeInv) getItemFromTypeRecurse(String type) getItems()getItemsFromCategory(String category) getItemsFromFullType(String type) getItemsFromFullType(String type, boolean includeInv) getItemsFromType(String type) getItemsFromType(String type, boolean includeInv) getItemWithID(int id) getItemWithIDRecursiv(int id) floatintgetNumberOfItem(String findItem) intgetNumberOfItem(String findItem, boolean includeReplaceOnDeplete) intgetNumberOfItem(String findItem, boolean includeReplaceOnDeplete, boolean insideInv) intgetNumberOfItem(String findItem, boolean includeReplaceOnDeplete, ArrayList<ItemContainer> containers) intgetNumItems(String item) getRecipeItem(String recipe, IsoGameCharacter chr, boolean recursive) getSome(Predicate<InventoryItem> predicate, int count, ArrayList<InventoryItem> result) getSomeCategory(String category, int count) getSomeCategory(String category, int count, ArrayList<InventoryItem> result) getSomeCategoryRecurse(String category, int count, ArrayList<InventoryItem> result) getSomeEval(se.krka.kahlua.vm.LuaClosure functionObj, int count) getSomeEval(se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) getSomeEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) getSomeEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, int count) getSomeEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeRecurse(Predicate<InventoryItem> predicate, int count, ArrayList<InventoryItem> result) getSomeTag(ItemTag itemTag, int count) getSomeTag(ItemTag itemTag, int count, ArrayList<InventoryItem> result) getSomeTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) getSomeTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count) getSomeTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTagRecurse(ItemTag itemTag, int count) getSomeTagRecurse(ItemTag itemTag, int count, ArrayList<InventoryItem> result) getSomeType(String type, int count) getSomeType(String type, int count, ArrayList<InventoryItem> result) getSomeTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count) getSomeTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) getSomeTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) getSomeTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count) getSomeTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTypeRecurse(String type, int count) getSomeTypeRecurse(String type, int count, ArrayList<InventoryItem> result) floatfloatfloatgetType()intgetUsesRecurse(Predicate<InventoryItem> predicate) intgetUsesType(String type) intgetUsesTypeRecurse(String type) intintgetWorldPosition(Vector2 out_result) booleanhasRecipe(String recipe, IsoGameCharacter chr) booleanhasRecipe(String recipe, IsoGameCharacter chr, boolean recursive) booleanhasRoomFor(IsoGameCharacter chr, float weightVal) booleanhasRoomFor(IsoGameCharacter chr, InventoryItem item) booleanhaveThisKeyId(int keyId) booleanisActive()booleanisCorpse()booleanisDirty()booleanbooleanisEmpty()booleanisEmptyOrUnwanted(IsoPlayer player) booleanbooleanbooleanbooleanbooleanisInside(InventoryItem item) booleanbooleanisItemAllowed(InventoryItem item) booleanstatic booleanisObjectPowered(IsoObject parent) booleanbooleanbooleanbooleanisShop()booleanisStove()booleanbooleanbooleanload(ByteBuffer input, int WorldVersion) voidvoidRemove(InventoryItem item) voidvoidDeprecated.voidbooleanremoveItemWithID(int id) booleanremoveItemWithIDRecurse(int id) voidRemoveOneOf(String String) RemoveOneOf(String String, boolean insideInv) voidvoidvoidreset()save(ByteBuffer output) save(ByteBuffer output, IsoGameCharacter noCompress) voidsetAcceptItemFunction(String functionName) voidsetActive(boolean active) voidsetAgeFactor(float ageFactor) voidsetCapacity(int capacity) voidsetCloseSound(String closeSound) voidsetContainerPosition(String containerPosition) voidsetCookingFactor(float CookingFactor) voidsetCustomName(String name) voidsetCustomTemperature(float newTemp) voidsetDirty(boolean dirty) voidsetDrawDirty(boolean b) voidsetExplored(boolean b) voidsetFreezerPosition(String freezerPosition) voidsetHasBeenLooted(boolean hasBeenLooted) voidsetIsDevice(boolean IsDevice) voidsetItems(ArrayList<InventoryItem> Items) voidsetOnlyAcceptCategory(String onlyAcceptCategory) voidsetOpenSound(String openSound) voidvoidsetPutSound(String putSound) voidsetSourceGrid(IsoGridSquare SourceGrid) voidsetTakeSound(String takeSound) voidvoidsetWeightReduction(int weightReduction) booleanvoidSpawnItem(InventoryItem item) voidtakeItemsFrom(ItemContainer other) toString()
-
Field Details
-
active
public boolean active -
isdevice
public boolean isdevice -
ageFactor
public float ageFactor -
cookingFactor
public float cookingFactor -
capacity
public int capacity -
containingItem
-
items
-
includingObsoleteItems
-
parent
-
sourceGrid
-
vehiclePart
-
inventoryContainer
-
explored
public boolean explored -
type
-
id
public int id
-
-
Constructor Details
-
ItemContainer
-
ItemContainer
-
ItemContainer
public ItemContainer(int id) -
ItemContainer
public ItemContainer()
-
-
Method Details
-
floatingPointCorrection
public static float floatingPointCorrection(float val) -
getCapacity
public int getCapacity() -
setCapacity
public void setCapacity(int capacity) -
FindAndReturnWaterItem
-
getItemFromTypeRecurse
-
getEffectiveCapacity
-
hasRoomFor
-
hasRoomFor
-
isItemAllowed
-
isRemoveItemAllowed
-
isExplored
public boolean isExplored() -
setExplored
public void setExplored(boolean b) -
isInCharacterInventory
-
isInside
-
getContainingItem
-
DoAddItem
-
DoAddItemBlind
-
AddItems
-
addItem
-
addItems
-
AddItems
-
AddItems
-
getNumberOfItem
-
getNumberOfItem
-
getNumberOfItem
public int getNumberOfItem(String findItem, boolean includeReplaceOnDeplete, ArrayList<ItemContainer> containers) -
getNumberOfItem
-
addItem
-
AddItem
-
SpawnItem
-
AddItemBlind
-
SpawnItem
-
AddItem
-
SpawnItem
-
AddItem
-
AddItem
-
contains
-
containsWithModule
-
containsWithModule
-
removeItemOnServer
Deprecated. -
addItemOnServer
-
contains
-
contains
public boolean contains(Invokers.Params2.Boolean.IParam2<InventoryItem> in_predicate, boolean doInv) -
contains
public <T> boolean contains(T in_itemToCompare, Invokers.Params2.Boolean.ICallback<T, InventoryItem> in_predicate, boolean doInv) -
findItem
public InventoryItem findItem(Invokers.Params2.Boolean.IParam2<InventoryItem> in_predicate, boolean doInv) -
findItem
public <T> InventoryItem findItem(T in_itemToCompare, Invokers.Params2.Boolean.ICallback<T, InventoryItem> in_predicate, boolean doInv) -
findItem
-
findHumanCorpseItem
-
containsHumanCorpse
public boolean containsHumanCorpse() -
contains
-
containsType
-
containsTypeRecurse
-
contains
-
contains
-
getAnimalInventoryItem
-
canHumanCorpseFit
public boolean canHumanCorpseFit() -
canItemFit
-
isVehiclePart
public boolean isVehiclePart() -
isVehicleSeat
public boolean isVehicleSeat() -
isOccupiedVehicleSeat
public boolean isOccupiedVehicleSeat() -
getBest
public InventoryItem getBest(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) -
getBestRecurse
public InventoryItem getBestRecurse(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) -
getBestType
-
getBestTypeRecurse
-
getBestEval
public InventoryItem getBestEval(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj) -
getBestEvalRecurse
public InventoryItem getBestEvalRecurse(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj) -
getBestEvalArg
public InventoryItem getBestEvalArg(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) -
getBestEvalArgRecurse
public InventoryItem getBestEvalArgRecurse(se.krka.kahlua.vm.LuaClosure predicateObj, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) -
getBestTypeEval
-
getBestTypeEvalRecurse
public InventoryItem getBestTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure comparatorObj) -
getBestTypeEvalArg
public InventoryItem getBestTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) -
getBestTypeEvalArgRecurse
public InventoryItem getBestTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure comparatorObj, Object arg) -
getBestCondition
-
getBestConditionRecurse
-
getBestCondition
-
getBestConditionRecurse
-
getBestConditionEval
-
getBestConditionEvalRecurse
-
getBestConditionEvalArg
-
getBestConditionEvalArgRecurse
public InventoryItem getBestConditionEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getFirstEval
-
getFirstEvalArg
-
containsEval
public boolean containsEval(se.krka.kahlua.vm.LuaClosure functionObj) -
containsEvalArg
-
containsEvalRecurse
public boolean containsEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) -
containsEvalArgRecurse
-
containsTag
-
containsTagEval
-
containsTagRecurse
-
containsTagEvalRecurse
-
containsTagEvalArgRecurse
-
containsTypeEvalRecurse
-
containsTypeEvalArgRecurse
-
getFirst
-
getFirstRecurse
-
getSome
public ArrayList<InventoryItem> getSome(Predicate<InventoryItem> predicate, int count, ArrayList<InventoryItem> result) -
getSomeRecurse
public ArrayList<InventoryItem> getSomeRecurse(Predicate<InventoryItem> predicate, int count, ArrayList<InventoryItem> result) -
getAll
public ArrayList<InventoryItem> getAll(Predicate<InventoryItem> predicate, ArrayList<InventoryItem> result) -
getAllRecurse
public ArrayList<InventoryItem> getAllRecurse(Predicate<InventoryItem> predicate, ArrayList<InventoryItem> result) -
getCount
-
getCountRecurse
-
getCountTag
-
getCountTagEval
-
getCountTagEvalArg
-
getCountTagRecurse
-
getCountTagEvalRecurse
-
getCountTagEvalArgRecurse
-
getCountType
-
getCountTypeEval
-
getCountTypeEvalArg
-
getCountTypeRecurse
-
getCountTypeEvalRecurse
-
getCountTypeEvalArgRecurse
-
getCountEval
public int getCountEval(se.krka.kahlua.vm.LuaClosure functionObj) -
getCountEvalArg
-
getCountEvalRecurse
public int getCountEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj) -
getCountEvalArgRecurse
-
getFirstCategory
-
getFirstCategoryRecurse
-
getFirstEvalRecurse
-
getFirstEvalArgRecurse
-
getFirstTag
-
getFirstTagRecurse
-
getFirstTagEval
-
getFirstTagEvalRecurse
public InventoryItem getFirstTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) -
getFirstTagEvalArgRecurse
public InventoryItem getFirstTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getFirstType
-
getFirstTypeRecurse
-
getFirstTypeRecurse
-
getFirstTypeEval
-
getFirstTypeEvalRecurse
-
getFirstTypeEvalRecurse
-
getFirstTypeEvalArgRecurse
public InventoryItem getFirstTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getSomeCategory
public ArrayList<InventoryItem> getSomeCategory(String category, int count, ArrayList<InventoryItem> result) -
getSomeCategoryRecurse
public ArrayList<InventoryItem> getSomeCategoryRecurse(String category, int count, ArrayList<InventoryItem> result) -
getSomeTag
public ArrayList<InventoryItem> getSomeTag(ItemTag itemTag, int count, ArrayList<InventoryItem> result) -
getSomeTagEval
public ArrayList<InventoryItem> getSomeTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalArg
public ArrayList<InventoryItem> getSomeTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeTagRecurse
public ArrayList<InventoryItem> getSomeTagRecurse(ItemTag itemTag, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalRecurse
public ArrayList<InventoryItem> getSomeTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalArgRecurse
public ArrayList<InventoryItem> getSomeTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeType
public ArrayList<InventoryItem> getSomeType(String type, int count, ArrayList<InventoryItem> result) -
getSomeTypeEval
public ArrayList<InventoryItem> getSomeTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTypeEvalArg
public ArrayList<InventoryItem> getSomeTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeTypeRecurse
public ArrayList<InventoryItem> getSomeTypeRecurse(String type, int count, ArrayList<InventoryItem> result) -
getSomeTypeEvalRecurse
public ArrayList<InventoryItem> getSomeTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTypeEvalArgRecurse
public ArrayList<InventoryItem> getSomeTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeEval
public ArrayList<InventoryItem> getSomeEval(se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeEvalArg
public ArrayList<InventoryItem> getSomeEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeEvalRecurse
public ArrayList<InventoryItem> getSomeEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeEvalArgRecurse
public ArrayList<InventoryItem> getSomeEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getAllCategory
-
getAllCategoryRecurse
public ArrayList<InventoryItem> getAllCategoryRecurse(String category, ArrayList<InventoryItem> result) -
getAllTag
-
getAllTag
-
getAllTagEval
public ArrayList<InventoryItem> getAllTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTagEvalArg
public ArrayList<InventoryItem> getAllTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllTagRecurse
-
getAllTagEvalRecurse
public ArrayList<InventoryItem> getAllTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTagEvalArgRecurse
public ArrayList<InventoryItem> getAllTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllType
-
getAllTypeEval
public ArrayList<InventoryItem> getAllTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTypeEvalArg
public ArrayList<InventoryItem> getAllTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllTypeRecurse
-
getAllTypeEvalRecurse
public ArrayList<InventoryItem> getAllTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTypeEvalArgRecurse
public ArrayList<InventoryItem> getAllTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllEval
public ArrayList<InventoryItem> getAllEval(se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllEvalArg
public ArrayList<InventoryItem> getAllEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllEvalRecurse
public ArrayList<InventoryItem> getAllEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllEvalArgRecurse
public ArrayList<InventoryItem> getAllEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getSomeCategory
-
getSomeEval
-
getSomeEvalArg
public ArrayList<InventoryItem> getSomeEvalArg(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) -
getSomeTypeEval
public ArrayList<InventoryItem> getSomeTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count) -
getSomeTypeEvalArg
public ArrayList<InventoryItem> getSomeTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) -
getSomeEvalRecurse
public ArrayList<InventoryItem> getSomeEvalRecurse(se.krka.kahlua.vm.LuaClosure functionObj, int count) -
getSomeEvalArgRecurse
public ArrayList<InventoryItem> getSomeEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) -
getSomeTag
-
getSomeTagRecurse
-
getSomeTagEvalRecurse
public ArrayList<InventoryItem> getSomeTagEvalRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, int count) -
getSomeTagEvalArgRecurse
public ArrayList<InventoryItem> getSomeTagEvalArgRecurse(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) -
getSomeType
-
getSomeTypeRecurse
-
getSomeTypeEvalRecurse
public ArrayList<InventoryItem> getSomeTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, int count) -
getSomeTypeEvalArgRecurse
public ArrayList<InventoryItem> getSomeTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg, int count) -
getAll
-
getAllCategory
-
getAllEval
-
getAllEvalArg
-
getAllTagEval
public ArrayList<InventoryItem> getAllTagEval(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj) -
getAllTagEvalArg
public ArrayList<InventoryItem> getAllTagEvalArg(ItemTag itemTag, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getAllTypeEval
public ArrayList<InventoryItem> getAllTypeEval(String type, se.krka.kahlua.vm.LuaClosure functionObj) -
getAllTypeEvalArg
public ArrayList<InventoryItem> getAllTypeEvalArg(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getAllEvalRecurse
-
getAllEvalArgRecurse
public ArrayList<InventoryItem> getAllEvalArgRecurse(se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
getAllType
-
getAllTypeRecurse
-
getAllTypeEvalRecurse
public ArrayList<InventoryItem> getAllTypeEvalRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj) -
getAllTypeEvalArgRecurse
public ArrayList<InventoryItem> getAllTypeEvalArgRecurse(String type, se.krka.kahlua.vm.LuaClosure functionObj, Object arg) -
FindAndReturnCategory
-
FindAndReturn
-
FindAndReturn
-
FindAndReturn
-
FindAll
-
FindAndReturnStack
-
FindAndReturnStack
-
HasType
-
Remove
-
DoRemoveItem
-
Remove
-
Remove
-
Find
-
Find
-
RemoveAll
-
RemoveAll
-
RemoveOneOf
-
RemoveOneOf
-
getContentsWeight
public float getContentsWeight() -
getMaxWeight
public float getMaxWeight() -
getCapacityWeight
public float getCapacityWeight() -
getAvailableWeightCapacity
public float getAvailableWeightCapacity() -
isEmpty
public boolean isEmpty() -
isEmptyOrUnwanted
-
isMicrowave
public boolean isMicrowave() -
isPowered
public boolean isPowered() -
isObjectPowered
-
getTemprature
public float getTemprature() -
isTemperatureChanging
public boolean isTemperatureChanging() -
save
public ArrayList<InventoryItem> save(ByteBuffer output, IsoGameCharacter noCompress) throws IOException - Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
isDrawDirty
public boolean isDrawDirty() -
setDrawDirty
public void setDrawDirty(boolean b) -
getBestWeapon
-
getBestWeapon
-
getTotalFoodScore
-
getTotalWeaponScore
-
getBestFood
-
getBestBandage
-
getNumItems
-
isActive
public boolean isActive()- Returns:
- the active
-
setActive
public void setActive(boolean active) - Parameters:
active- the active to set
-
isDirty
public boolean isDirty()- Returns:
- the dirty
-
setDirty
public void setDirty(boolean dirty) - Parameters:
dirty- the dirty to set
-
isIsDevice
public boolean isIsDevice()- Returns:
- the IsDevice
-
setIsDevice
public void setIsDevice(boolean IsDevice) - Parameters:
IsDevice- the IsDevice to set
-
getAgeFactor
public float getAgeFactor()- Returns:
- the ageFactor
-
setAgeFactor
public void setAgeFactor(float ageFactor) - Parameters:
ageFactor- the ageFactor to set
-
getCookingFactor
public float getCookingFactor()- Returns:
- the CookingFactor
-
setCookingFactor
public void setCookingFactor(float CookingFactor) - Parameters:
CookingFactor- the CookingFactor to set
-
getItems
- Returns:
- the Items
-
setItems
- Parameters:
Items- the Items to set
-
takeItemsFrom
-
getParent
- Returns:
- the parent
-
setParent
- Parameters:
parent- the parent to set
-
getSourceGrid
- Returns:
- the SourceGrid
-
setSourceGrid
- Parameters:
SourceGrid- the SourceGrid to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
clear
public void clear() -
getWaterContainerCount
public int getWaterContainerCount() -
FindWaterSource
-
getAllWaterFillables
-
getFirstWaterFluidSources
-
getFirstWaterFluidSources
-
getFirstFluidContainer
-
getAvailableFluidContainer
-
getAvailableFluidContainersCapacity
-
getFirstAvailableFluidContainer
-
getAllWaterFluidSources
-
getFirstCleaningFluidSources
-
getAllCleaningFluidSources
-
getItemCount
-
getItemCountRecurse
-
getItemCount
-
getUsesRecurse
-
getUsesType
-
getUsesTypeRecurse
-
getWeightReduction
public int getWeightReduction() -
setWeightReduction
public void setWeightReduction(int weightReduction) -
removeAllItems
public void removeAllItems() -
containsRecursive
-
getItemCountFromTypeRecurse
-
getCustomTemperature
public float getCustomTemperature() -
setCustomTemperature
public void setCustomTemperature(float newTemp) -
getItemFromType
public InventoryItem getItemFromType(String type, IsoGameCharacter chr, boolean notEquipped, boolean ignoreBroken, boolean includeInv) -
getItemFromTag
public InventoryItem getItemFromTag(ItemTag itemTag, IsoGameCharacter chr, boolean notEquipped, boolean ignoreBroken, boolean includeInv) -
getItemFromType
-
getItemFromTag
-
getItemFromType
-
getItemsFromType
-
getItemsFromFullType
-
getItemsFromFullType
-
getItemsFromType
-
getItemsFromCategory
-
requestSync
public void requestSync() -
requestServerItemsForContainer
public void requestServerItemsForContainer() -
getItemWithIDRecursiv
-
getItemWithID
-
removeItemWithID
public boolean removeItemWithID(int id) -
containsID
public boolean containsID(int id) -
removeItemWithIDRecurse
public boolean removeItemWithIDRecurse(int id) -
isHasBeenLooted
public boolean isHasBeenLooted() -
setHasBeenLooted
public void setHasBeenLooted(boolean hasBeenLooted) -
getOpenSound
-
setOpenSound
-
getCloseSound
-
setCloseSound
-
getPutSound
-
setPutSound
-
getTakeSound
-
setTakeSound
-
haveThisKeyId
-
getOnlyAcceptCategory
-
setOnlyAcceptCategory
-
getAcceptItemFunction
-
setAcceptItemFunction
-
toString
-
getCharacter
-
emptyIt
public void emptyIt() -
getItems4Admin
-
getAllFoodsForAnimals
-
getAllItems
public LinkedHashMap<String, InventoryItem> getAllItems(LinkedHashMap<String, InventoryItem> items, boolean inInv) -
getItemById
Deprecated. -
addItemsToProcessItems
public void addItemsToProcessItems() -
removeItemsFromProcessItems
public void removeItemsFromProcessItems() -
isExistYet
public boolean isExistYet() -
getContainerPosition
-
setContainerPosition
-
getFreezerPosition
-
setFreezerPosition
-
getVehiclePart
-
getVehicle
-
getVehicleDoorPart
-
getVehicleSeatDoorPart
-
getVehicleSeatDoor
-
getVehicleDoor
-
doesVehicleDoorNeedOpening
public boolean doesVehicleDoorNeedOpening() -
canCharacterOpenVehicleDoor
-
canCharacterUnlockVehicleDoor
-
reset
public void reset() -
getOutermostContainer
-
getSquare
-
getWorldPosition
-
isStove
public boolean isStove() -
isShop
public boolean isShop() -
isCorpse
public boolean isCorpse() -
hasRecipe
-
hasRecipe
-
getRecipeItem
-
dumpContentsInSquare
-
getCustomName
-
setCustomName
-