Class BlockDataAccessor
java.lang.Object
net.minecraft.server.commands.data.BlockDataAccessor
- All Implemented Interfaces:
DataAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntity(package private) static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final org.slf4j.Loggerprivate final BlockPosstatic 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)voidsetData(CompoundTag pOther)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ERROR_NOT_A_BLOCK_ENTITY
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_A_BLOCK_ENTITY -
PROVIDER
-
entity
-
pos
-
-
Constructor Details
-
BlockDataAccessor
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceDataAccessor
-
getData
- Specified by:
getDatain interfaceDataAccessor
-
getModifiedSuccess
- Specified by:
getModifiedSuccessin interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given NBT (both for /data get and /data get path)- Specified by:
getPrintSuccessin interfaceDataAccessor
-
getPrintSuccess
Gets the message used as a result of querying the given path with a scale.- Specified by:
getPrintSuccessin interfaceDataAccessor
-