Class ItemContainer
java.lang.Object
zombie.inventory.ItemContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatbooleanintfloatintboolean -
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> arrayList) AddItems(InventoryItem item, int int0) voidbooleancanCharacterOpenVehicleDoor(IsoGameCharacter character) booleancanCharacterUnlockVehicleDoor(IsoGameCharacter character) booleanbooleancanItemFit(InventoryItem item) voidclear()booleanbooleanboolean<T> booleancontains(T object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) booleancontains(InventoryItem item) booleancontains(InventoryItem itemToFind, boolean doInv) booleancontains(Invokers.Params2.Boolean.IParam2<InventoryItem> iParam2, boolean boolean0) booleancontainsEval(LuaClosure functionObj) booleancontainsEvalArg(LuaClosure functionObj, Object arg) booleancontainsEvalArgRecurse(LuaClosure functionObj, Object arg) booleancontainsEvalRecurse(LuaClosure functionObj) booleanbooleancontainsID(int id) booleanbooleancontainsTag(String tag) booleancontainsTagEval(String tag, LuaClosure functionObj) booleancontainsTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg) booleancontainsTagEvalRecurse(String tag, LuaClosure functionObj) booleancontainsTagRecurse(String tag) booleancontainsType(String _type) booleancontainsTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg) booleancontainsTypeEvalRecurse(String _type, LuaClosure functionObj) booleancontainsTypeRecurse(String _type) booleancontainsWithModule(String moduleType) booleancontainsWithModule(String moduleType, boolean withDeltaLeft) DoAddItem(InventoryItem item) DoAddItemBlind(InventoryItem item) booleanvoidDoRemoveItem(InventoryItem item) voiddumpContentsInSquare(IsoGridSquare square) voidemptyIt()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 object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) findItem(Invokers.Params2.Boolean.IParam2<InventoryItem> iParam2, boolean boolean0) 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(LuaClosure functionObj) getAllEval(LuaClosure functionObj, ArrayList<InventoryItem> result) getAllEvalArg(LuaClosure functionObj, Object arg) getAllEvalArg(LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllEvalArgRecurse(LuaClosure functionObj, Object arg) getAllEvalArgRecurse(LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllEvalRecurse(LuaClosure functionObj) getAllEvalRecurse(LuaClosure functionObj, ArrayList<InventoryItem> result) getAllItems(LinkedHashMap<String, InventoryItem> items, boolean inInv) getAllRecurse(Predicate<InventoryItem> predicate, ArrayList<InventoryItem> result) getAllTag(String tag, ArrayList<InventoryItem> result) getAllTagEval(String _type, LuaClosure functionObj) getAllTagEval(String tag, LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTagEvalArg(String _type, LuaClosure functionObj, Object arg) getAllTagEvalArg(String tag, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTagEvalRecurse(String tag, LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTagRecurse(String tag, ArrayList<InventoryItem> result) getAllType(String _type) getAllType(String _type, ArrayList<InventoryItem> result) getAllTypeEval(String _type, LuaClosure functionObj) getAllTypeEval(String _type, LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTypeEvalArg(String _type, LuaClosure functionObj, Object arg) getAllTypeEvalArg(String _type, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg) getAllTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) getAllTypeEvalRecurse(String _type, LuaClosure functionObj) getAllTypeEvalRecurse(String _type, LuaClosure functionObj, ArrayList<InventoryItem> result) getAllTypeRecurse(String _type) getAllTypeRecurse(String _type, ArrayList<InventoryItem> result) getAllWaterFluidSources(boolean boolean0) getAnimalInventoryItem(IsoAnimal animal) getAvailableFluidContainer(String string) floatfloatgetBest(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) getBestBandage(SurvivorDesc descriptor) getBestCondition(String _type) getBestCondition(Predicate<InventoryItem> predicate) getBestConditionEval(LuaClosure functionObj) getBestConditionEvalArg(LuaClosure functionObj, Object arg) getBestConditionEvalArgRecurse(LuaClosure functionObj, Object arg) getBestConditionEvalRecurse(LuaClosure functionObj) getBestConditionRecurse(String _type) getBestConditionRecurse(Predicate<InventoryItem> predicate) getBestEval(LuaClosure predicateObj, LuaClosure comparatorObj) getBestEvalArg(LuaClosure predicateObj, LuaClosure comparatorObj, Object arg) getBestEvalArgRecurse(LuaClosure predicateObj, LuaClosure comparatorObj, Object arg) getBestEvalRecurse(LuaClosure predicateObj, LuaClosure comparatorObj) getBestFood(SurvivorDesc descriptor) getBestRecurse(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) getBestType(String _type, Comparator<InventoryItem> comparator) getBestTypeEval(String _type, LuaClosure comparatorObj) getBestTypeEvalArg(String _type, LuaClosure comparatorObj, Object arg) getBestTypeEvalArgRecurse(String _type, LuaClosure comparatorObj, Object arg) getBestTypeEvalRecurse(String _type, LuaClosure comparatorObj) getBestTypeRecurse(String _type, Comparator<InventoryItem> comparator) getBestWeapon(SurvivorDesc desc) intfloatfloatfloatintgetCount(Predicate<InventoryItem> predicate) intgetCountEval(LuaClosure functionObj) intgetCountEvalArg(LuaClosure functionObj, Object arg) intgetCountEvalArgRecurse(LuaClosure functionObj, Object arg) intgetCountEvalRecurse(LuaClosure functionObj) intgetCountRecurse(Predicate<InventoryItem> predicate) intgetCountTag(String tag) intgetCountTagEval(String tag, LuaClosure functionObj) intgetCountTagEvalArg(String tag, LuaClosure functionObj, Object arg) intgetCountTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg) intgetCountTagEvalRecurse(String tag, LuaClosure functionObj) intgetCountTagRecurse(String tag) intgetCountType(String _type) intgetCountTypeEval(String _type, LuaClosure functionObj) intgetCountTypeEvalArg(String _type, LuaClosure functionObj, Object arg) intgetCountTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg) intgetCountTypeEvalRecurse(String _type, LuaClosure functionObj) intgetCountTypeRecurse(String _type) floatintgetFirst(Predicate<InventoryItem> predicate) getFirstCategory(String category) getFirstCategoryRecurse(String category) getFirstEval(LuaClosure functionObj) getFirstEvalArg(LuaClosure functionObj, Object arg) getFirstEvalArgRecurse(LuaClosure functionObj, Object arg) getFirstEvalRecurse(LuaClosure functionObj) getFirstFluidContainer(String string) getFirstRecurse(Predicate<InventoryItem> predicate) getFirstTag(String tag) getFirstTagEval(String tag, LuaClosure functionObj) getFirstTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg) getFirstTagEvalRecurse(String tag, LuaClosure functionObj) getFirstTagRecurse(String tag) getFirstType(String _type) getFirstTypeEval(String _type, LuaClosure functionObj) getFirstTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg) getFirstTypeEvalRecurse(String _type, LuaClosure functionObj) getFirstTypeRecurse(String _type) getFirstWaterFluidSources(boolean boolean0) getFirstWaterFluidSources(boolean boolean0, boolean boolean1) getItemById(long id) Deprecated.intgetItemCount(String _type) intgetItemCount(String _type, boolean doBags) intintgetItemCountRecurse(String _type) getItemFromTag(String var1, boolean boolean0, boolean boolean1) getItemFromTag(String string, IsoGameCharacter character, boolean boolean1, boolean boolean0, boolean boolean2) 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 string, IsoGameCharacter character, boolean boolean2) 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(LuaClosure functionObj, int count) getSomeEval(LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeEvalArg(LuaClosure functionObj, Object arg, int count) getSomeEvalArg(LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeEvalArgRecurse(LuaClosure functionObj, Object arg, int count) getSomeEvalArgRecurse(LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeEvalRecurse(LuaClosure functionObj, int count) getSomeEvalRecurse(LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeRecurse(Predicate<InventoryItem> predicate, int count, ArrayList<InventoryItem> result) getSomeTag(String tag, int count) getSomeTag(String tag, int count, ArrayList<InventoryItem> result) getSomeTagEval(String tag, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTagEvalArg(String tag, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg, int count) getSomeTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTagEvalRecurse(String tag, LuaClosure functionObj, int count) getSomeTagEvalRecurse(String tag, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTagRecurse(String tag, int count) getSomeTagRecurse(String tag, int count, ArrayList<InventoryItem> result) getSomeType(String _type, int count) getSomeType(String _type, int count, ArrayList<InventoryItem> result) getSomeTypeEval(String _type, LuaClosure functionObj, int count) getSomeTypeEval(String _type, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) getSomeTypeEvalArg(String _type, LuaClosure functionObj, Object arg, int count) getSomeTypeEvalArg(String _type, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, int count) getSomeTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) getSomeTypeEvalRecurse(String _type, LuaClosure functionObj, int count) getSomeTypeEvalRecurse(String _type, 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 vector0) booleanhasRecipe(String string, IsoGameCharacter character) booleanhasRecipe(String string, IsoGameCharacter character, boolean boolean2) 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 object0) booleanbooleanbooleanisShop()booleanisStove()booleanbooleanbooleanload(ByteBuffer input, int WorldVersion) voidvoidRemove(InventoryItem item) voidvoidDeprecated.voidbooleanremoveItemWithID(int id) booleanremoveItemWithIDRecurse(int id) voidRemoveOneOf(String String) RemoveOneOf(String string, boolean boolean0) voidvoidvoidreset()save(ByteBuffer output) save(ByteBuffer output, IsoGameCharacter noCompress) voidsetAcceptItemFunction(String functionName) voidsetActive(boolean _active) voidsetAgeFactor(float _ageFactor) voidsetCapacity(int int0) voidsetCloseSound(String _closeSound) voidsetContainerPosition(String _containerPosition) voidsetCookingFactor(float _CookingFactor) voidsetCustomName(String string1) 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 string) voidvoidsetWeightReduction(int _weightReduction) booleanvoidSpawnItem(InventoryItem item) 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
-
bExplored
public boolean bExplored -
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 int0) -
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
-
contains
public <T> boolean contains(T object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) -
findItem
public InventoryItem findItem(Invokers.Params2.Boolean.IParam2<InventoryItem> iParam2, boolean boolean0) -
findItem
public <T> InventoryItem findItem(T object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) -
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() -
getBest
public InventoryItem getBest(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) -
getBestRecurse
public InventoryItem getBestRecurse(Predicate<InventoryItem> predicate, Comparator<InventoryItem> comparator) -
getBestType
-
getBestTypeRecurse
-
getBestEval
-
getBestEvalRecurse
-
getBestEvalArg
-
getBestEvalArgRecurse
public InventoryItem getBestEvalArgRecurse(LuaClosure predicateObj, LuaClosure comparatorObj, Object arg) -
getBestTypeEval
-
getBestTypeEvalRecurse
-
getBestTypeEvalArg
-
getBestTypeEvalArgRecurse
-
getBestCondition
-
getBestConditionRecurse
-
getBestCondition
-
getBestConditionRecurse
-
getBestConditionEval
-
getBestConditionEvalRecurse
-
getBestConditionEvalArg
-
getBestConditionEvalArgRecurse
-
getFirstEval
-
getFirstEvalArg
-
containsEval
-
containsEvalArg
-
containsEvalRecurse
-
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
-
getCountEvalArg
-
getCountEvalRecurse
-
getCountEvalArgRecurse
-
getFirstCategory
-
getFirstCategoryRecurse
-
getFirstEvalRecurse
-
getFirstEvalArgRecurse
-
getFirstTag
-
getFirstTagRecurse
-
getFirstTagEval
-
getFirstTagEvalRecurse
-
getFirstTagEvalArgRecurse
-
getFirstType
-
getFirstTypeRecurse
-
getFirstTypeEval
-
getFirstTypeEvalRecurse
-
getFirstTypeEvalArgRecurse
-
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
-
getSomeTagEval
public ArrayList<InventoryItem> getSomeTagEval(String tag, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalArg
public ArrayList<InventoryItem> getSomeTagEvalArg(String tag, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeTagRecurse
public ArrayList<InventoryItem> getSomeTagRecurse(String tag, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalRecurse
public ArrayList<InventoryItem> getSomeTagEvalRecurse(String tag, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTagEvalArgRecurse
public ArrayList<InventoryItem> getSomeTagEvalArgRecurse(String tag, 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, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTypeEvalArg
public ArrayList<InventoryItem> getSomeTypeEvalArg(String _type, 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, LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeTypeEvalArgRecurse
public ArrayList<InventoryItem> getSomeTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeEval
public ArrayList<InventoryItem> getSomeEval(LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeEvalArg
public ArrayList<InventoryItem> getSomeEvalArg(LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getSomeEvalRecurse
public ArrayList<InventoryItem> getSomeEvalRecurse(LuaClosure functionObj, int count, ArrayList<InventoryItem> result) -
getSomeEvalArgRecurse
public ArrayList<InventoryItem> getSomeEvalArgRecurse(LuaClosure functionObj, Object arg, int count, ArrayList<InventoryItem> result) -
getAllCategory
-
getAllCategoryRecurse
public ArrayList<InventoryItem> getAllCategoryRecurse(String category, ArrayList<InventoryItem> result) -
getAllTag
-
getAllTagEval
public ArrayList<InventoryItem> getAllTagEval(String tag, LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTagEvalArg
public ArrayList<InventoryItem> getAllTagEvalArg(String tag, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllTagRecurse
-
getAllTagEvalRecurse
public ArrayList<InventoryItem> getAllTagEvalRecurse(String tag, LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTagEvalArgRecurse
public ArrayList<InventoryItem> getAllTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllType
-
getAllTypeEval
public ArrayList<InventoryItem> getAllTypeEval(String _type, LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTypeEvalArg
public ArrayList<InventoryItem> getAllTypeEvalArg(String _type, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllTypeRecurse
-
getAllTypeEvalRecurse
public ArrayList<InventoryItem> getAllTypeEvalRecurse(String _type, LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllTypeEvalArgRecurse
public ArrayList<InventoryItem> getAllTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllEval
-
getAllEvalArg
public ArrayList<InventoryItem> getAllEvalArg(LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getAllEvalRecurse
public ArrayList<InventoryItem> getAllEvalRecurse(LuaClosure functionObj, ArrayList<InventoryItem> result) -
getAllEvalArgRecurse
public ArrayList<InventoryItem> getAllEvalArgRecurse(LuaClosure functionObj, Object arg, ArrayList<InventoryItem> result) -
getSomeCategory
-
getSomeEval
-
getSomeEvalArg
-
getSomeTypeEval
-
getSomeTypeEvalArg
public ArrayList<InventoryItem> getSomeTypeEvalArg(String _type, LuaClosure functionObj, Object arg, int count) -
getSomeEvalRecurse
-
getSomeEvalArgRecurse
public ArrayList<InventoryItem> getSomeEvalArgRecurse(LuaClosure functionObj, Object arg, int count) -
getSomeTag
-
getSomeTagRecurse
-
getSomeTagEvalRecurse
public ArrayList<InventoryItem> getSomeTagEvalRecurse(String tag, LuaClosure functionObj, int count) -
getSomeTagEvalArgRecurse
public ArrayList<InventoryItem> getSomeTagEvalArgRecurse(String tag, LuaClosure functionObj, Object arg, int count) -
getSomeType
-
getSomeTypeRecurse
-
getSomeTypeEvalRecurse
public ArrayList<InventoryItem> getSomeTypeEvalRecurse(String _type, LuaClosure functionObj, int count) -
getSomeTypeEvalArgRecurse
public ArrayList<InventoryItem> getSomeTypeEvalArgRecurse(String _type, LuaClosure functionObj, Object arg, int count) -
getAll
-
getAllCategory
-
getAllEval
-
getAllEvalArg
-
getAllTagEval
-
getAllTagEvalArg
-
getAllTypeEval
-
getAllTypeEvalArg
-
getAllEvalRecurse
-
getAllEvalArgRecurse
-
getAllType
-
getAllTypeRecurse
-
getAllTypeEvalRecurse
-
getAllTypeEvalArgRecurse
public ArrayList<InventoryItem> getAllTypeEvalArgRecurse(String _type, 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
-
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(String string, IsoGameCharacter character, boolean boolean1, boolean boolean0, boolean boolean2) -
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
-