Package devs.beer.nativepackets.api
Interface NativeValue
- All Known Subinterfaces:
NativeAttributeSnapshot,NativeBlockEntityType,NativeBlockState,NativeDialog,NativeItem,NativeMenuType,NativeMetadataEntry,NativeMobEffect,NativeNbt,NativeNumberFormat,NativeParticle,NativeRecipe,NativeRecipeBookSettings,NativeSound,NativeSpawnInfo
public interface NativeValue
Zero-copy wrapper around an exact-adapter native value.
Values obtained from packet views are borrowed for that view's lifetime.
Utility-created values follow the utility's ownership contract and are not
automatically dispatch-scoped. nativeHandle() neither copies the
value nor transfers ownership; retaining a raw handle does not make borrowed
data safe after the view expires.
-
Method Summary
-
Method Details
-
nativeHandle
Object nativeHandle()
-