TextureResourceResolver
class TextureResourceResolver
Implements: IResourceResolver
Package: dev.joid.lib.resource.resolver.impl · Module: core · Source: TextureResourceResolver.java
The resolver that turns a texture of the render bridge, owned or borrowed, into a resource.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| TextureResourceResolver() | Creates the resolver. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(Object input) | If true, the input is an ITexture. |
Resource | resolve(ResourceBuilder builder, Object input) | Returns a resource that shows the texture as it is, without decoding; while the texture lives, every call shares the same data, each in its own resource. |
Creation details
Section titled “Creation details”TextureResourceResolver
Section titled “TextureResourceResolver”TextureResourceResolver()
Creates the resolver.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(Object input)
If true, the input is an ITexture.
resolve
Section titled “resolve”Resource resolve(ResourceBuilder builder, Object input)
Returns a resource that shows the texture as it is, without decoding; while the texture lives, every call shares the same data, each in its own resource.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
