23 lines
499 B
Java
23 lines
499 B
Java
package de.tr7zw.itemnbtapi;
|
|
|
|
import org.bukkit.block.BlockState;
|
|
|
|
public class NBTTileEntity extends NBTCompound {
|
|
|
|
private final BlockState tile;
|
|
|
|
public NBTTileEntity(BlockState tile) {
|
|
super(null, null);
|
|
this.tile = tile;
|
|
}
|
|
|
|
protected Object getCompound() {
|
|
return NBTReflectionUtil.getTileEntityNBTTagCompound(tile);
|
|
}
|
|
|
|
protected void setCompound(Object compound) {
|
|
NBTReflectionUtil.setTileEntityNBTTagCompound(tile, compound);
|
|
}
|
|
|
|
}
|