Class AttributeUtil
java.lang.Object
zombie.entity.components.attributes.AttributeUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList
<InventoryItem> static float
convertAttribute
(InventoryItem inventoryItem, AttributeType attributeType0, AttributeType attributeType1) static float
convertAttributeToRange
(InventoryItem inventoryItem, AttributeType attributeType, float float2, float float3) static float
convertAttributeToUnit
(InventoryItem inventoryItem, AttributeType attributeType) enumValueFromScriptString
(Class<E> _class, String string) static float
getAttributeAverage
(ArrayList<InventoryItem> arrayList, AttributeType attributeType) static ArrayList
<InventoryItem> getItemsFromList
(String string, ArrayList<InventoryItem> arrayList0, ArrayList<InventoryItem> arrayList1) static boolean
isEnumString
(String string) static void
releaseDoubleList
(ArrayList<Double> arrayList) static void
releaseItemList
(ArrayList<InventoryItem> arrayList) tryEnumValueFromScriptString
(Class<E> _class, String string)
-
Field Details
-
enum_prefix
- See Also:
-
-
Constructor Details
-
AttributeUtil
public AttributeUtil()
-
-
Method Details
-
isEnumString
-
enumValueFromScriptString
-
tryEnumValueFromScriptString
-
allocItemList
-
releaseItemList
-
getItemsFromList
public static ArrayList<InventoryItem> getItemsFromList(String string, ArrayList<InventoryItem> arrayList0, ArrayList<InventoryItem> arrayList1) -
getAttributeAverage
public static float getAttributeAverage(ArrayList<InventoryItem> arrayList, AttributeType attributeType) -
convertAttributeToUnit
public static float convertAttributeToUnit(InventoryItem inventoryItem, AttributeType attributeType) -
convertAttribute
public static float convertAttribute(InventoryItem inventoryItem, AttributeType attributeType0, AttributeType attributeType1) -
convertAttributeToRange
public static float convertAttributeToRange(InventoryItem inventoryItem, AttributeType attributeType, float float2, float float3) -
allocDoubleList
-
releaseDoubleList
-