Class Decoder<T>
java.lang.Object
dev.wyck.wrapper.decode.Decoder<T>
- Type Parameters:
T- the type produced by the decoder
Lazily resolves a decoder implementation while exposing only the Wyck type it produces.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Decoder<T> Creates a lazily resolved decoder provider.Decodes a Minecraft object with the lazily resolved decoder.handled()Gets every type key handled by the resolved decoder registry.booleanhandles(ResourceKey type) Gets whether the resolved registry has a decoder for a type key.Gets the decoder type key for a Minecraft object.
-
Method Details
-
create
-
decode
-
handles
Gets whether the resolved registry has a decoder for a type key.- Parameters:
type- the decoder type key- Returns:
- whether the type is handled
- Since:
- 3.3.0
-
handled
Gets every type key handled by the resolved decoder registry.- Returns:
- the handled type keys
- Since:
- 3.3.0
-
typeOf
Gets the decoder type key for a Minecraft object.- Parameters:
minecraftObject- the Minecraft object to inspect- Returns:
- the object's decoder type key
- Since:
- 3.3.0
-