Package net.minecraft.command.impl.data
Class BlockDataAccessor
- java.lang.Object
-
- net.minecraft.command.impl.data.BlockDataAccessor
-
- All Implemented Interfaces:
IDataAccessor
public class BlockDataAccessor extends java.lang.Object implements IDataAccessor
-
-
Field Summary
Fields Modifier and Type Field Description private TileEntity
entity
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_NOT_A_BLOCK_ENTITY
private BlockPos
pos
static java.util.function.Function<java.lang.String,DataCommand.IDataProvider>
PROVIDER
-
Constructor Summary
Constructors Constructor Description BlockDataAccessor(TileEntity p_i47918_1_, BlockPos p_i47918_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundNBT
getData()
ITextComponent
getModifiedSuccess()
ITextComponent
getPrintSuccess(NBTPathArgument.NBTPath p_198922_1_, double p_198922_2_, int p_198922_4_)
ITextComponent
getPrintSuccess(INBT p_198924_1_)
void
setData(CompoundNBT p_198925_1_)
-
-
-
Field Detail
-
ERROR_NOT_A_BLOCK_ENTITY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_A_BLOCK_ENTITY
-
PROVIDER
public static final java.util.function.Function<java.lang.String,DataCommand.IDataProvider> PROVIDER
-
entity
private final TileEntity entity
-
pos
private final BlockPos pos
-
-
Constructor Detail
-
BlockDataAccessor
public BlockDataAccessor(TileEntity p_i47918_1_, BlockPos p_i47918_2_)
-
-
Method Detail
-
setData
public void setData(CompoundNBT p_198925_1_)
- Specified by:
setData
in interfaceIDataAccessor
-
getData
public CompoundNBT getData()
- Specified by:
getData
in interfaceIDataAccessor
-
getModifiedSuccess
public ITextComponent getModifiedSuccess()
- Specified by:
getModifiedSuccess
in interfaceIDataAccessor
-
getPrintSuccess
public ITextComponent getPrintSuccess(INBT p_198924_1_)
- Specified by:
getPrintSuccess
in interfaceIDataAccessor
-
getPrintSuccess
public ITextComponent getPrintSuccess(NBTPathArgument.NBTPath p_198922_1_, double p_198922_2_, int p_198922_4_)
- Specified by:
getPrintSuccess
in interfaceIDataAccessor
-
-