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