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 data) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)voidsetData(CompoundTag tag)
-
Method Details
-
setData
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getModifiedSuccess
Component getModifiedSuccess() -
getPrintSuccess
-
getPrintSuccess
Gets the message used as a result of querying the given path with a scale.
-