Class EntityDataAccessor
java.lang.Object
net.minecraft.server.commands.data.EntityDataAccessor
- All Implemented Interfaces:
DataAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Entity
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final Function
<String, DataCommands.DataProvider> -
Constructor Summary
Constructors -
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)
-
Field Details
-
ERROR_NO_PLAYERS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_PLAYERS -
PROVIDER
-
entity
-
-
Constructor Details
-
EntityDataAccessor
-
-
Method Details
-
setData
public void setData(CompoundTag pOther) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
setData
in interfaceDataAccessor
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getData
- Specified by:
getData
in interfaceDataAccessor
-
getModifiedSuccess
- Specified by:
getModifiedSuccess
in interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given NBT (both for /data get and /data get path)- Specified by:
getPrintSuccess
in interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given path with a scale.- Specified by:
getPrintSuccess
in interfaceDataAccessor
-