public static class Entitlements.EntityAndItem<T>
extends java.lang.Object
Constructor and Description |
---|
Entitlements.EntityAndItem(Entity entity,
T item) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity() |
T |
getItem() |
static <T> Entitlements.EntityAndItem<T> |
of(Entity entity,
T item) |
static <TT> com.google.common.reflect.TypeToken<Entitlements.EntityAndItem<TT>> |
typeToken(java.lang.Class<TT> type) |
public static <TT> com.google.common.reflect.TypeToken<Entitlements.EntityAndItem<TT>> typeToken(java.lang.Class<TT> type)
public Entity getEntity()
public T getItem()
public static <T> Entitlements.EntityAndItem<T> of(Entity entity, T item)