public abstract static class MapGroup.OnItemCallback<T extends MapItem> extends java.lang.Object implements MapGroup.MapItemsCallback
MapGroup.MapItemsCallback.And, MapGroup.MapItemsCallback.Not, MapGroup.MapItemsCallback.Or| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<T> |
targetType |
| Constructor and Description |
|---|
OnItemCallback(java.lang.Class<T> targetType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onItemFunction(MapItem item) |
protected abstract boolean |
onMapItem(T item) |
public OnItemCallback(java.lang.Class<T> targetType)
public final boolean onItemFunction(MapItem item)
onItemFunction in interface MapGroup.MapItemsCallbackitem - the map item triggeredtrue if the item matched, false otherwise.protected abstract boolean onMapItem(T item)