Class ItemContainer
java.lang.Object
zombie.inventory.ItemContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
float
boolean
int
float
int
boolean
-
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>
Tboolean
boolean
AddItem
(InventoryItem item) AddItemBlind
(InventoryItem item) void
addItemOnServer
(InventoryItem item) AddItems
(ArrayList<InventoryItem> arrayList) AddItems
(InventoryItem item, int int0) void
boolean
canCharacterOpenVehicleDoor
(IsoGameCharacter character) boolean
canCharacterUnlockVehicleDoor
(IsoGameCharacter character) boolean
boolean
canItemFit
(InventoryItem item) void
clear()
boolean
boolean
boolean
<T> boolean
contains
(T object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) boolean
contains
(InventoryItem item) boolean
contains
(InventoryItem itemToFind, boolean doInv) boolean
contains
(Invokers.Params2.Boolean.IParam2<InventoryItem> iParam2, boolean boolean0) boolean
containsEval
(LuaClosure functionObj) boolean
containsEvalArg
(LuaClosure functionObj, Object arg) boolean
containsEvalArgRecurse
(LuaClosure functionObj, Object arg) boolean
containsEvalRecurse
(LuaClosure functionObj) boolean
boolean
containsID
(int id) boolean
boolean
containsTag
(String tag) boolean
containsTagEval
(String tag, LuaClosure functionObj) boolean
containsTagEvalArgRecurse
(String tag, LuaClosure functionObj, Object arg) boolean
containsTagEvalRecurse
(String tag, LuaClosure functionObj) boolean
containsTagRecurse
(String tag) boolean
containsType
(String _type) boolean
containsTypeEvalArgRecurse
(String _type, LuaClosure functionObj, Object arg) boolean
containsTypeEvalRecurse
(String _type, LuaClosure functionObj) boolean
containsTypeRecurse
(String _type) boolean
containsWithModule
(String moduleType) boolean
containsWithModule
(String moduleType, boolean withDeltaLeft) DoAddItem
(InventoryItem item) DoAddItemBlind
(InventoryItem item) boolean
void
DoRemoveItem
(InventoryItem item) void
dumpContentsInSquare
(IsoGridSquare square) void
emptyIt()
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> InventoryItem
findItem
(T object, Invokers.Params2.Boolean.ICallback<T, InventoryItem> iCallback, boolean boolean0) findItem
(Invokers.Params2.Boolean.IParam2<InventoryItem> iParam2, boolean boolean0) static float
floatingPointCorrection
(float val) float
getAll
(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) float
float
getBest
(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) int
float
float
float
int
getCount
(Predicate<InventoryItem> predicate) int
getCountEval
(LuaClosure functionObj) int
getCountEvalArg
(LuaClosure functionObj, Object arg) int
getCountEvalArgRecurse
(LuaClosure functionObj, Object arg) int
getCountEvalRecurse
(LuaClosure functionObj) int
getCountRecurse
(Predicate<InventoryItem> predicate) int
getCountTag
(String tag) int
getCountTagEval
(String tag, LuaClosure functionObj) int
getCountTagEvalArg
(String tag, LuaClosure functionObj, Object arg) int
getCountTagEvalArgRecurse
(String tag, LuaClosure functionObj, Object arg) int
getCountTagEvalRecurse
(String tag, LuaClosure functionObj) int
getCountTagRecurse
(String tag) int
getCountType
(String _type) int
getCountTypeEval
(String _type, LuaClosure functionObj) int
getCountTypeEvalArg
(String _type, LuaClosure functionObj, Object arg) int
getCountTypeEvalArgRecurse
(String _type, LuaClosure functionObj, Object arg) int
getCountTypeEvalRecurse
(String _type, LuaClosure functionObj) int
getCountTypeRecurse
(String _type) float
int
getFirst
(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.int
getItemCount
(String _type) int
getItemCount
(String _type, boolean doBags) int
int
getItemCountRecurse
(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) float
int
getNumberOfItem
(String findItem) int
getNumberOfItem
(String findItem, boolean includeReplaceOnDeplete) int
getNumberOfItem
(String findItem, boolean includeReplaceOnDeplete, boolean insideInv) int
getNumberOfItem
(String findItem, boolean includeReplaceOnDeplete, ArrayList<ItemContainer> containers) int
getNumItems
(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) float
float
float
getType()
int
getUsesRecurse
(Predicate<InventoryItem> predicate) int
getUsesType
(String _type) int
getUsesTypeRecurse
(String _type) int
int
getWorldPosition
(Vector2 vector0) boolean
hasRecipe
(String string, IsoGameCharacter character) boolean
hasRecipe
(String string, IsoGameCharacter character, boolean boolean2) boolean
hasRoomFor
(IsoGameCharacter chr, float weightVal) boolean
hasRoomFor
(IsoGameCharacter chr, InventoryItem item) boolean
haveThisKeyId
(int keyId) boolean
isActive()
boolean
isCorpse()
boolean
isDirty()
boolean
boolean
isEmpty()
boolean
isEmptyOrUnwanted
(IsoPlayer player) boolean
boolean
boolean
boolean
boolean
isInside
(InventoryItem item) boolean
boolean
isItemAllowed
(InventoryItem item) boolean
static boolean
isObjectPowered
(IsoObject object0) boolean
boolean
boolean
isShop()
boolean
isStove()
boolean
boolean
boolean
load
(ByteBuffer input, int WorldVersion) void
void
Remove
(InventoryItem item) void
void
Deprecated.void
boolean
removeItemWithID
(int id) boolean
removeItemWithIDRecurse
(int id) void
RemoveOneOf
(String String) RemoveOneOf
(String string, boolean boolean0) void
void
void
reset()
save
(ByteBuffer output) save
(ByteBuffer output, IsoGameCharacter noCompress) void
setAcceptItemFunction
(String functionName) void
setActive
(boolean _active) void
setAgeFactor
(float _ageFactor) void
setCapacity
(int int0) void
setCloseSound
(String _closeSound) void
setContainerPosition
(String _containerPosition) void
setCookingFactor
(float _CookingFactor) void
setCustomName
(String string1) void
setCustomTemperature
(float newTemp) void
setDirty
(boolean _dirty) void
setDrawDirty
(boolean b) void
setExplored
(boolean b) void
setFreezerPosition
(String _freezerPosition) void
setHasBeenLooted
(boolean _hasBeenLooted) void
setIsDevice
(boolean _IsDevice) void
setItems
(ArrayList<InventoryItem> _Items) void
setOnlyAcceptCategory
(String onlyAcceptCategory) void
setOpenSound
(String _openSound) void
void
setPutSound
(String _putSound) void
setSourceGrid
(IsoGridSquare _SourceGrid) void
setTakeSound
(String string) void
void
setWeightReduction
(int _weightReduction) boolean
void
SpawnItem
(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
-