Interface IDataReader


@NonExtendable public interface IDataReader
Used to get data synced.
  • Method Summary

    Modifier and Type
    Method
    Description
    <D extends IData>
    D
    get(IData.Type<D> type)
    Returns typed data synced.
    <D extends IData>
    void
    Invalidate the current data instance of type D, making get(IData.Type) returns null until a new instance is synced.
    raw()
    Returns raw NBT data synced.
  • Method Details

    • raw

      Returns raw NBT data synced.
    • get

      @Nullable <D extends IData> D get(IData.Type<D> type)
      Returns typed data synced.
      Parameters:
      type - the type of the data.
    • invalidate

      <D extends IData> void invalidate(IData.Type<D> type)
      Invalidate the current data instance of type D, making get(IData.Type) returns null until a new instance is synced.
      Parameters:
      type - the type of the data