Package devs.beer.nativepackets.api
Interface NativeText
public interface NativeText
Version-neutral handle for one native text component.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumNBT data source used by an NBT-backed component. -
Method Summary
Modifier and TypeMethodDescriptiondefault <R> Rconvert(TextConverter<R> converter) Converts this native tree explicitly, caching only by converter identity for this handle's lifetime.default NativeTextKindkind()Returns the classified native content kind without converting the tree.Returns the exact adapter-native component.
-
Method Details
-
nativeHandle
Object nativeHandle()Returns the exact adapter-native component.- Returns:
- native component
-
kind
Returns the classified native content kind without converting the tree. -
convert
Converts this native tree explicitly, caching only by converter identity for this handle's lifetime.- Type Parameters:
R- destination type- Parameters:
converter- destination converter- Returns:
- converted root
-