Interface DataAccessor

All Known Implementing Classes:
BlockDataAccessor, EntityDataAccessor, StorageDataAccessor

public interface DataAccessor
  • Method Details

    • setData

      void setData(CompoundTag other) 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 nbt)
      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 path, double scale, int value)
      Gets the message used as a result of querying the given path with a scale.