src/main/java/de/dosmike/sponge/megamenus/api/elements/IIcon.java
static IIcon of(ItemStack stack) {
        if (stack==null) return null;
        return new IIcon() {
            ItemStackSnapshot display = stack.createSnapshot();
            @Override
            public ItemStackSnapshot render() {
                return display;
            }
        };
    }
/**
     * convenience function for retrieving a static IIcon from a ItemStack
     */
convenience function for retrieving a static IIcon from a ItemStack
convenience function for retrieving a static IIcon from a ItemStack
static IIcon of(ItemStack stack) {
        if (stack==null) return null;
        return new IIcon() {
            ItemStackSnapshot display = stack.createSnapshot();
            @Override
            public ItemStackSnapshot render() {
                return display;
            }
        };
    }
static IIcon of ( ItemStack stack ) { if ( stack == null ) return null ; return new IIcon ( ) { ItemStackSnapshot display = stack . createSnapshot ( ) ; @ Override public ItemStackSnapshot render ( ) { return display ; } } ; }
convenience function for retrieving a static IIcon from a ItemStack
convenience function for retrieving a static IIcon from a ItemStack