Interface DataProviderWithId

Package world.mappable.runtime

interface DataProviderWithId

Provides any data.

Summary

Methods

Type and modifiers

Method and Description

java.lang.String

providerId()
Use the same id for the identical data, to prevent repeated loading of the same data into RAM and VRAM.

byte[]

load()
Returns data.

Methods

providerId

@AnyThread @NonNull
java.lang.String providerId()

Use the same id for the identical data, to prevent repeated loading of the same data into RAM and VRAM.

This method may be called on any thread. Its implementation must be thread-safe.


load

@WorkerThread @NonNull
byte[] load()

Returns data.

This method will be called on a background thread.