Interface DataAccessor
- All Known Implementing Classes:
BlockDataAccessor,EntityDataAccessor,StorageDataAccessor
public interface DataAccessor
-
Method Summary
Modifier and TypeMethodDescriptiongetData()getPrintSuccess(NbtPathArgument.NbtPath path, double scale, int value) Gets the message used as a result of querying the given path with a scale.getPrintSuccess(Tag nbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)voidsetData(CompoundTag other)
-
Method Details
-
setData
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getModifiedSuccess
Component getModifiedSuccess() -
getPrintSuccess
Gets the message used as a result of querying the given NBT (both for /data get and /data get path) -
getPrintSuccess
Gets the message used as a result of querying the given path with a scale.
-