use this inside icapabilityprovider.getcapability to avoid unchecked cast warnings . example : return some_capability . cast instance ; use with caution ; concode_field_sep Callable<? extends T> factory concode_elem_sep String name concode_elem_sep IStorage<T> storage concode_field_sep T getDefaultInstance concode_elem_sep NBTBase writeNBT concode_elem_sep NBTBase writeNBT concode_elem_sep String getName concode_elem_sep IStorage<T> getStorage concode_elem_sep void readNBT concode_elem_sep void readNBT
R function ( T arg0 ) { return ( R ) arg0 ; }