Interface DataAccessor
- All Known Implementing Classes:
BlockDataAccessor
,EntityDataAccessor
,StorageDataAccessor
public interface DataAccessor
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
getPrintSuccess
(NbtPathArgument.NbtPath pPath, double pScale, int pValue) Gets the message used as a result of querying the given path with a scale.getPrintSuccess
(Tag pNbt) Gets the message used as a result of querying the given NBT (both for /data get and /data get path)void
setData
(CompoundTag pOther)
-
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.
-