Interface DataAccessor

All Known Implementing Classes:
BlockDataAccessor, EntityDataAccessor, StorageDataAccessor

public interface DataAccessor
  • Method Details

    • setData

      void setData(CompoundTag pOther) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getData

      CompoundTag getData() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getModifiedSuccess

      Component getModifiedSuccess()
    • getPrintSuccess

      Component getPrintSuccess(Tag pNbt)
      Gets the message used as a result of querying the given NBT (both for /data get and /data get path)
    • getPrintSuccess

      Component getPrintSuccess(NbtPathArgument.NbtPath pPath, double pScale, int pValue)
      Gets the message used as a result of querying the given path with a scale.