PouchType
Enum representing different essence pouch types with their properties.
EnumRLPlugins API
public enum PouchTypeThis enum acts as a pure configuration model and is client-agnostic.
Values
SMALL, COLOSSAL, GIANT, LARGE, MEDIUM
Members
Methods
- booleancanDegrade()
Whether it can degrade.
- intdurabilityToEssenceCount(int)
Convert durability value to essence count using formula.
- PouchTypefromItemId(int)
Find a PouchType by its item ID (works for both normal and degraded versions).
- intgetAmountVarbit()
The amount varbit.
- int[]getDegradationLevels()
The degradation levels.
- intgetDegradationVar()
The degradation var.
- intgetDegradedId()
The degraded id.
- intgetItemId()
The item id.
- intgetMaxCapacity()
The max capacity.
- PouchType[]getOrderedTypes()
Get pouch types ordered by capacity (largest to smallest).
canDegrade()
public boolean canDegrade()Whether it can degrade.
durabilityToEssenceCount(int)static
public static int durabilityToEssenceCount(int durability)Convert durability value to essence count using formula.
Formula: essence = ceil(0.4 * durability^1.07).
Parameters
durability- The durability value.
Returns
Estimated essence count.
fromItemId(int)static
public static PouchType fromItemId(int itemId)Find a PouchType by its item ID (works for both normal and degraded versions).
Parameters
itemId- The item ID to look up.
Returns
Matching PouchType, or null if not found.
getAmountVarbit()
public int getAmountVarbit()The amount varbit.
getDegradationLevels()
public int[] getDegradationLevels()The degradation levels.
getDegradationVar()
public int getDegradationVar()The degradation var.
getDegradedId()
public int getDegradedId()The degraded id.
getItemId()
public int getItemId()The item id.
getMaxCapacity()
public int getMaxCapacity()The max capacity.
getOrderedTypes()static
public static PouchType[] getOrderedTypes()Get pouch types ordered by capacity (largest to smallest).
This ensures consistent ordering for fillAll/emptyAll operations.
Returns
Array of PouchTypes ordered by descending capacity.
Also allowed
Every enum has these, as in plain Java.
compareTo, equals, hashCode, name, ordinal, toString, valueOf, values