Package org.geysermc.geyser
Interface GeyserResources
- All Known Subinterfaces:
GeyserBootstrap
public interface GeyserResources
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable InputStreamgetResourceOrNull(String resource) Get an InputStream for the given resource path.default @NonNull InputStreamgetResourceOrThrow(@NonNull String resource) Get an InputStream for the given resource path, throws AssertionError if resource is not found.
-
Field Details
-
DEFAULT
-
-
Method Details
-
getResourceOrNull
Get an InputStream for the given resource path. Overridden on platforms that have different class loader properties.- Parameters:
resource- Resource to get- Returns:
- InputStream of the given resource, or null if not found
-
getResourceOrThrow
Get an InputStream for the given resource path, throws AssertionError if resource is not found.- Parameters:
resource- Resource to get- Returns:
- InputStream of the given resource
-