Package net.kyori.adventure.util
Interface Codec.Encoder<D,E,X extends Throwable>
- Type Parameters:
D- the decoded typeE- the encoded typeX- the exception type
public static interface Codec.Encoder<D,E,X extends Throwable>
An encoder.
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
encode
Encodes.- Parameters:
decoded- the decoded value- Returns:
- the encoded output
- Throws:
X- if an exception is encountered while encoding- Since:
- 4.0.0
-