Interface GeyserResources

All Known Subinterfaces:
GeyserBootstrap

public interface GeyserResources
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GeyserResources
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable InputStream
    Get an InputStream for the given resource path.
    default @NonNull InputStream
    getResourceOrThrow(@NonNull String resource)
    Get an InputStream for the given resource path, throws AssertionError if resource is not found.
  • Field Details

  • Method Details

    • getResourceOrNull

      default @Nullable InputStream getResourceOrNull(String resource)
      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

      default @NonNull InputStream getResourceOrThrow(@NonNull String resource)
      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