diff --git a/core/src/com/riiablo/item/Item.java b/core/src/com/riiablo/item/Item.java index b90010e2..da0d71d7 100644 --- a/core/src/com/riiablo/item/Item.java +++ b/core/src/com/riiablo/item/Item.java @@ -238,6 +238,11 @@ public class Item { return (T) base; } + @SuppressWarnings("unchecked") + public T getBase(Class clazz) { + return (T) base; + } + public boolean isBase(Class type) { return base.getClass().isAssignableFrom(type); }