inventory-framework icon indicating copy to clipboard operation
inventory-framework copied to clipboard

Allow usage in abstract components

Open github-actions[bot] opened this issue 1 year ago • 0 comments

https://github.com/DevNatan/inventory-framework/blob/9c592c2787515566ea6fed0426046386144a43c0/inventory-framework-core/src/main/java/me/devnatan/inventoryframework/state/PaginationState.java#L35



    @Override
    public void stateRegistered(@NotNull State<?> state, Object caller) {
		// TODO Allow usage in abstract components
        if (!(caller instanceof RootView))
            throw new IllegalArgumentException("Pagination state can only be registered by RootView");


github-actions[bot] avatar Nov 14 '23 13:11 github-actions[bot]